Skip to content

Instantly share code, notes, and snippets.

@matteofumagalli1275
matteofumagalli1275 / jellyfinMonitor.ps1
Last active June 21, 2025 09:15
Prevent Jellyfin From going to sleep if a client is connected
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
function Drink-Espresso {
# Credits to https://den.dev/blog/caffeinate-windows/
Write-Host "[info] Currently ordering a double shot of espresso..."
$Signature=@"
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern void SetThreadExecutionState(uint esFlags);
"@
@namazso
namazso / SuperReturn.c
Last active June 21, 2025 08:44
SuperReturn
// Return, but across multiple frames.
//
// This function unwinds the given number of frames, then sets the return value provided, emulating as if this number
// of functions returned, with the last one returning the value provided in RetVal. Can be used to hook a callee when
// you don't have a convenient way to hook it directly and actually just want to stub it out with a return value.
//
// @param FramesToSkip The number of frames to skip, starting from the current frame.
// @param RetVal The value to return from the last frame.
// @param Context Context to start from, in case you want to SuperReturn from somewhere deeper.
DECLSPEC_NOINLINE void SuperReturn(
@changjonathanc
changjonathanc / anthropic_oauth.py
Created June 21, 2025 03:51
Anthropic OAuth CLI - Simplified Claude Code spoof demo
#!/usr/bin/env python3
import argparse
import base64
import hashlib
import json
import os
import secrets
import sys
import time
@BlueSkyXN
BlueSkyXN / BaiduPan-Checkin.py
Created August 8, 2024 02:13
BaiduPan-Checkin.py
import requests
import time
import re
import os
# 从环境变量中获取 Cookie
COOKIES = os.environ.get('BAIDU_COOKIE', '')
HEADERS = {
'Connection': 'keep-alive',
@rakibulinux
rakibulinux / FreeRADIUS-daloRADIUS.sh
Last active June 21, 2025 08:26
How to Install FreeRADIUS and daloRADIUS on Ubuntu 20.04 LTS
#!/bin/sh
sudo apt-get update -y
sudo apt-get upgrade -y
#Install Apache
sudo apt-get install apache2
#Install PHP
sudo apt-get install php libapache2-mod-php php-gd php-common php-mail php-mail-mime php-mysql php-pear php-db php-mbstring php-xml php-curl
@yisibl
yisibl / git-branch.md
Last active June 21, 2025 08:20
在Mac、Linux 终端显示 Git 当前所在分支

在Mac、Linux 终端显示 Git 当前所在分支

  1. 进入你的home目录
cd ~
  1. 编辑.bashrc文件
@theanam
theanam / crux1_start.gcode
Last active June 21, 2025 07:51
Tronxy Crux 1 Start G-Code for cura
; Tronxy Crux1 Start Code
; Forked from the Tronxy XY 2 Pro Start code on cura
; Improvement: Start nozzle and bed heating together
; Imorovement: Fixed purge line (XY2 version was for a bigger bed and would draw out of build area)
; Bugfix: On glass bed Crux 1, the nozzle would bump on the retainer trying to draw the purge line. Fixed in this version.
; Cleanup: Removed all ABL related code since Crux 1 does not have ABL.
G21 ; Set units to millimeters
G90 ; Set all axis to Absolute
M82 ; Set extrusion to Absolute
M107 ; Disable all fans
@kiding
kiding / ☔️.js
Created June 16, 2025 04:43
기상청 초단기예측 Scriptable 스크립트
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: magic;
/**
* 그래프 Y축 최대. 단위: mm/h
* @see https://youtu.be/WnWCoLJKvCU
*/
const MAX_blnd = 2;
/**
class Player
{
public string Name { get; private set; }
public float WeaponCooldown { get; private set; }
public float MovementDirectionX { get; private set; }
public float MovementDirectionY { get; private set; }
public int Age { get; private set; }
public int WeaponDamage { get; private set; }
public float MovementSpeed { get; private set; }
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy