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 / Termux SSH Server.md
Created January 18, 2025 14:37
Create a SSH Server in Termux

Termux SSH Server

pkg upgrade
pkg install openssh

TO edit port (default is 8022) vi $PREFIX/etc/ssh/sshd_config

Port 2222
@CypherpunkSamurai
CypherpunkSamurai / KVM_in_WSL2.md
Created January 18, 2025 14:02 — forked from startergo/KVM_in_WSL2.md
KVM on WSL2 Windows 11
  • In WSL2 run:
sudo apt update
sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils cpu-checker \
network-manager iptables-persistent linux-headers-generic \
qemu uml-utilities virt-manager git \
wget libguestfs-tools p7zip-full make dmg2img tesseract-ocr \
tesseract-ocr-eng genisoimage vim net-tools screen firewalld libncurses-dev -y
sudo apt install virt-manager
sudo addgroup kvm
@CypherpunkSamurai
CypherpunkSamurai / wsl2_android_device_via_wifi_or_usb.md
Created January 18, 2025 10:37 — forked from jramiresbrito/wsl2_android_device_via_wifi_or_usb.md
Connect Android Devices to WSL2 with WIFI or USB
@CypherpunkSamurai
CypherpunkSamurai / ZTE F50 Enable ADB.md
Created January 18, 2025 08:35
中兴F50 启用 ADB / ZTE F50 Enable ADB

中兴F50 启用 ADB / ZTE F50 Enable ADB

curl 'http://192.168.0.1/goform/goform_set_cmd_process' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Accept-Language: en-US,en' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
 -H 'Cookie: JSESSIONID=d8th4erv3wd6y7ebkuapdxsw' \
@CypherpunkSamurai
CypherpunkSamurai / outbound-email-with-cloudflare.md
Created January 12, 2025 19:29 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@CypherpunkSamurai
CypherpunkSamurai / readme.md
Last active December 31, 2024 03:49
jDownloader Portable with jPortable (Portableapps Java)

jDownloader Portable with jPortable (Portableapps Java)

  1. Download jDownloader Portableapps Exe and jPortable
  2. Extract it to a folder.
  3. Extract jPortable into ./App/OpenJDKJRE64.
  4. Edit .\App\AppInfo\Launcher\JDownloaderPortable.ini

Edit or Add the following configs under each category

[Launch]
@CypherpunkSamurai
CypherpunkSamurai / ollama_portable.bat
Created December 24, 2024 08:01
Ollama Portable Windows
@echo off
title Ollama Portable
set OLLAMA_ORIGINS=*
set OLLAMA_HOST=0.0.0.0
set userprofile=%cd%\data
set localappdata=%cd%\data\AppData\Local
cmd /k ollama.exe
@CypherpunkSamurai
CypherpunkSamurai / remove all docker images.txt
Last active December 21, 2024 23:13
Docker Remove All Images
docker rm -f $(docker ps -qa); docker volume rm $(docker volume ls -q); docker rmi -f $(docker images -q)
@CypherpunkSamurai
CypherpunkSamurai / install_tailwind_vite.sh
Created December 19, 2024 19:43
Install Tailwind in ViteJS
pnpm install -D tailwindcss postcss autoprefixer
pnpx tailwindcss init -p
cat > tailwind.config.js <<EOF
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
@CypherpunkSamurai
CypherpunkSamurai / launch.json
Created December 18, 2024 17:26
VSCode Vite launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node-terminal",
"name": "Run Script: dev",
"request": "launch",
"command": "npm run dev",
"cwd": "${workspaceFolder}",
"internalConsole": "integratedTerminal",