Skip to content

Instantly share code, notes, and snippets.

View avin's full-sized avatar
🐒
Code Monkey

Avin Lambrero avin

🐒
Code Monkey
View GitHub Profile
@woyejec
woyejec / Readme.md
Created October 6, 2025 07:45
CkeyRun command detail

Explaination of irm https://ckey.run/ | iex

This command irm https://ckey.run/ | iex do the job. But I also did not want to run it because of security reason. So look what it do.

You can manuallly do what the ckey.run do.

Short answer: Hook the jvm using ja-netfilter agent by modifying *.vmoptions file

Long Answer:

@loskiq
loskiq / 3x-ui.md
Last active March 16, 2026 19:54
xray

Generate self-signed certificate

openssl req -x509 -keyout /etc/ssl/certs/3x-ui.key -out /etc/ssl/certs/3x-ui.pem -newkey rsa:4096 -sha256 -days 3650 -nodes -new

Generate self-signed certificate with Subject Alternative Name

openssl req -x509 -keyout /etc/ssl/certs/3x-ui.key -out /etc/ssl/certs/3x-ui.pem -newkey rsa:4096 -sha256 -days 3650 -nodes -new -addext "subjectAltName=DNS:*.domain.com"
@muhammetozeski
muhammetozeski / PlayListCreatorForAllVideosOfAChannel.js
Last active January 12, 2025 15:00
A simple tampermonkey script for creating a playlist for all videos of a channel. Navigate to a video and click the button inside the tampermonkey. The code is written by gpt4o
// ==UserScript==
// @name Create A playlist full fill with all videos of a channel
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Modify YouTube Channel ID and open new URL in foreground tab with button click
// @author Your Name
// @match https://www.youtube.com/*
// @grant GM_registerMenuCommand
// ==/UserScript==
@Codycody31
Codycody31 / caprover-volume-backup.sh
Last active July 27, 2025 15:37
Backup volumes for CapRover
#!/bin/bash
# List all volumes starting with 'captain--'
volumes=$(docker volume ls -q | grep '^captain--')
totalvolumes=$(echo "$volumes" | wc -l)
backedupvolumes=0
echo "Starting backup of $totalvolumes volumes."
# Create a tarball of these volumes
@real-jiakai
real-jiakai / ssh-snippets.md
Last active January 11, 2025 14:04
ssh工具代码脚本片段

1、debian、ubuntu更新并升级软件包

apt update && apt upgrade -y

2、docker compose重新部署

docker compose down && docker compose up -d
@demirdegerli
demirdegerli / ubuntu_debloater.sh
Last active March 25, 2026 10:53
Ubuntu Debloater
#!/bin/sh
if [ "$(whoami)" != "root" ]; then
echo "Please run this script as root."
exit
fi
printf "This script will\n\n- Remove Snap\n- Install the deb version of Firefox\n- Install Flatpak\n- Optionally replace Ubuntu Desktop with GNOME\n\n"
read -p "Continue? (Y/n) " start_prompt
case $start_prompt in
[nN] | [nN][oO] )
exit
@m3y54m
m3y54m / terminal-proxy-settings.md
Last active March 20, 2026 09:26
Set Proxy in Terminal (Bash, CMD, PowerShell, etc.)
@anchan828
anchan828 / README.md
Last active April 1, 2025 14:23
This is an improvement to allow @nestjs/typeorm@8.1.x to handle CustomRepository. I won't explain it specifically, but it will help in some way. https://github.com/nestjs/typeorm/pull/1233

You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x.

1. EntityRepository -> CustomRepository

@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}

@Med-H
Med-H / esbuild.md
Last active November 29, 2023 10:03
esbuild with hot reload, typescript server as well as eslint server

An extremely fast JavaScript bundler written in Go.

structure path

  • public
    • favicon.ico
    • locales
  • ...
@carlhannes
carlhannes / debounce.ts
Last active September 12, 2025 14:51
ES6 Async Debounce JavaScript & TypeScript Helper Functions
// ES6 Async version of the "classic" JavaScript Debounce function.
// Works both with and without promises, so you can replace your existing
// debounce helper function with this one (and it will behave the same).
// The only difference is that this one returns a promise, so you can use
// it with async/await.
//
// I've converted this into a TypeScript module, and added a few more
// features to it, such as the ability to cancel the debounce, and also
// execute the function immediately, using the `doImmediately` method.
//