Skip to content

Instantly share code, notes, and snippets.

View ckcr4lyf's full-sized avatar
🦀

Raghu Saxena ckcr4lyf

🦀
View GitHub Profile
@ckcr4lyf
ckcr4lyf / README.md
Created April 30, 2024 18:35
Source code for Encrypted Client Hello stuffs on MyWaifu
@ckcr4lyf
ckcr4lyf / guide.md
Created April 12, 2024 10:52
Revanced Guide

Setup Revanced

This gist is just to collect all the links etc. to make it easy. I will try and keep it updated if something changes.

Steps

This assumes a clean phone with no trace of ReVanced or MicroG.

  1. Download Revanced Manager: https://revanced.app/download
  2. Disable YouTube default app in Android Settings
@ckcr4lyf
ckcr4lyf / script.sh
Last active September 27, 2023 10:10
Convert all FLAC files in directory to ALAC (m4a) via ffmpeg
#!/bin/bash
for file in *.flac; do
input="$file"
output="${file%.flac}.m4a"
ffmpeg -i "$input" -c:v copy -acodec alac "$output"
done
echo "Conversion complete."

Network Setup / Topology

Assuming internet facing server (VPS) is Public IP 1.2.3.4 , which is VPN server internally at 10.10.0.1

Assuming home PC is VPN client internally at 10.10.0.2 (Public IP doesn't matter)

We want to expose home PC port 6969 to the internet via the VPS's port 6969.

+---------------------+                   +----------------------+                       +----------------------+
@ckcr4lyf
ckcr4lyf / node_ipc_malware.md
Last active May 26, 2022 00:12
Explanation of the malware in node-ipc
@ckcr4lyf
ckcr4lyf / qbit.md
Last active May 20, 2021 04:58
Installing qbittorrent on USB

qBittorrent on USB Shared Boxes

This guide needs basic terminal (SSH) knowledge.

Setup

cd ~/.apps
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.1_v1.2.11/amd64-glibc-qbittorrent-nox -O qbittorrent-nox
chmod +x qbittorrent-nox
"workbench.colorTheme": "Default High Contrast",
"workbench.colorCustomizations": {
"[Default High Contrast]": {
"editor.background": "#070025",
"editor.foreground": "#037cbd",
"editor.lineHighlightBorder": "#ff00ff",
"editor.selectionBackground": "#ffb4f5a4",
"selection.background": "#008000",
"statusBarItem.remoteBackground": "#f807d800",
"activityBar.background": "#070025",
@ckcr4lyf
ckcr4lyf / carmen.py
Created October 17, 2020 02:24
An example solution for A1 Q2
# COMP1117 A1Q2 sample solution
# By Raghu Saxena
result = []
previous_letter = 'a'
input_letter = input()
count = 0
while input_letter != '!':
if input_letter == previous_letter:
@ckcr4lyf
ckcr4lyf / random_rename.js
Created May 16, 2020 14:52
Rename files in a given path to random hex string (removes extension)
#!/usr/bin/env node
const fs = require('fs');
const crypto = require('crypto');
if (process.argv.length < 3){
console.log(`Missing path`);
process.exit(1);
}
const path = process.argv[2];