Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
@CypherpunkSamurai
CypherpunkSamurai / main.go
Created April 20, 2025 11:09
OpenAI Key Checker
package main
import (
"bufio"
"flag"
"fmt"
"os"
"strings"
"sync"
"time"
@CypherpunkSamurai
CypherpunkSamurai / Makefile
Last active April 19, 2025 16:12
Golang Makefile Revised for GraphQL
# Golang Platform Independent Makefile
# This Makefile is designed to work on both Windows and Unix-like systems.
# Author: CyberPunkSamurai @github.com/CyberPunkSamurai
# License: MIT License (https://opensource.org/licenses/MIT)
# https://gist.github.com/CypherpunkSamurai/e9df70d6d30613f183706a4a69d24cd2
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
@CypherpunkSamurai
CypherpunkSamurai / twitter.gql
Created April 19, 2025 09:05
Twitter GraphQL Schema
type Tweet {
id: ID!
# The tweet text. No more than 140 characters!
body: String
# When the tweet was published
date: Date
# Who published the tweet
Author: User
# Views, retweets, likes, etc
Stats: Stat
@CypherpunkSamurai
CypherpunkSamurai / PortableRust.ps1
Last active April 18, 2025 19:17
Portable Rust
<#
.SYNOPSIS
Creates a portable Rust installation with customizable toolchain.
.DESCRIPTION
This script creates a self-contained, portable Rust installation that can be
moved between systems or run from external drives. Supports both GNU and MSVC toolchains.
.PARAMETER InstallDir
Directory where portable Rust will be installed. Default: .\PortableRust
@CypherpunkSamurai
CypherpunkSamurai / reverse-tether.sh
Created April 11, 2025 11:52 — forked from ncouture/reverse-tether.sh
Android reverse tethering over bridged SSH tap interface
#!/bin/bash
# Based on the scripts written by class101 of xda-developers.com:
# http://forum.xda-developers.com/showpost.php?p=57490025&postcount=205
#
# This script enables a secure tunnel for your android phone to "reverse tether"
# and access the internet/a private network via the following steps:
#
# 1. Establish a level 3 (TAP) tunnel from your local host to a remote server via SSH (tap0)
# 2. Establish a level 3 interface between your local host and your android phone via USB (usb0)
@CypherpunkSamurai
CypherpunkSamurai / RSS.md
Created April 11, 2025 10:50 — forked from thefranke/RSS.md
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@CypherpunkSamurai
CypherpunkSamurai / termux-ssh-server.sh
Last active April 10, 2025 06:58
Termux Easy SSH Server with SFTP
#!/data/data/com.termux/files/usr/bin/bash
# Update package list
pkg update -y
# Install OpenSSH, SFTP server, net-tools, and termux-tools
pkg install -y openssh openssh-sftp-server net-tools termux-tools
# Configure SSH server
cat > $PREFIX/etc/ssh/sshd_config << 'EOL'
@CypherpunkSamurai
CypherpunkSamurai / enable usb tethering from adb shell.txt
Created April 10, 2025 06:31
enable usb tethering from adb shell
adb shell am start -n com.android.settings/.TetherSettings && adb shell input keyevent 20 && adb shell input keyevent 20 && adb shell input keyevent KEYCODE_ENTER && sleep 2 && adb shell input keyevent 4
@CypherpunkSamurai
CypherpunkSamurai / Ubuntu and Debian Live ISO Builder Code.md
Created April 8, 2025 08:33
Ubuntu and Debian Live ISO Builder Code

Ubuntu / Debian Live ISO Builder Code

  1. Elementary OS - https://github.com/elementary/os (The GOAT of ISO Building Codebase)
  2. Cinnamon - https://github.com/ubuntucinnamon/iso-builder-devel (Fork of ElementaryOS Builder)
  3. VanillaOS - https://github.com/Vanilla-OS/live-iso (Fork of Cinnamon Builder)
  4. Rhino OS - https://github.com/rhino-linux/os (Fork of VannillaOS Builder)
  5. UbuntuBudgie - https://github.com/UbuntuBudgie/iso-builder (Fork of ElementaryOS Builder)
  6. QuadScope - https://github.com/Quadscope/live-image (Easy to Read and Learn Code)

Notable Mentions