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
@jramiresbrito
jramiresbrito / wsl2_android_device_via_wifi_or_usb.md
Last active July 19, 2025 12:48
Connect Android Devices to WSL2 with WIFI or USB
@dmknght
dmknght / sublimetext_4121_crack.py
Last active January 19, 2022 05:37
Patch binary of sublimtext amd64 linux build 4121
import os
sublime_binary_path = "/tmp/sublime_text"
version_magic_string = "/updates/4/stable_update_check?version=4121&platform=linux&arch=x64"
sz_magic_string = 67
version_magic_string_offset = 0x000106bd # (Real offset from xxd)
is_file_read = os.access(sublime_binary_path, os.R_OK)
if not is_file_read:
@opastorello
opastorello / gist:05f02f902339ebc27ea7f20c1838b066
Created November 4, 2021 06:43
Cracking Sublime Text Build (4121)
# Cracking Sublime Text ( Build 4121 ) Tutorial Analysis
---
Two main changes to be made for best experience. This can be done with script.
### License Key
While it is possible to deduce the format of the license key, there is available ones online to show. Analyse and see that it is still that same format. The main part is the verification of the hash values from the license key that we want to always be "correct". This is also the key that this tutorial will use.
```
@krabs-github
krabs-github / JavaScript - Determine if Hex Color is Light or Dark.js
Last active September 2, 2025 12:51
[JavaScript - Determine if Hex Color is Light or Dark] JavaScript - Determine if Hex Color is Light or Dark #JavaScript
function lightOrDark(color) {
// Check the format of the color, HEX or RGB?
if (color.match(/^rgb/)) {
// If HEX --> store the red, green, blue values in separate variables
color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);
r = color[1];
g = color[2];
@Slaynash
Slaynash / Program.cs
Last active July 20, 2025 17:37
NSISBI Extractor (Unity Installer Extractor)
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
namespace UnityNSISReader
{
class Program
customSocketX = 0;
function printEvent(event) {
console.log(event)
var eventArray = new Uint8Array(event)
console.log(String.fromCharCode.apply(null, eventArray))
}
(function() { //https://stackoverflow.com/a/62839570/5682822
var OrigWebSocket = window.WebSocket;
@EricFillion
EricFillion / gist:e0205f9cb9f501191384cf917a9df0f3
Last active March 17, 2023 07:00
GPT-Neo For Answering Questions
# pip install happytransformer
from happytransformer import HappyGeneration
happy_gen = HappyGeneration("GPT-NEO", "EleutherAI/gpt-neo-125M")
result = happy_gen.generate_text("What is natural language processing?")
print(result.text)
# ----------------------------
# Result:
@akexorcist
akexorcist / android.yml
Created April 3, 2021 20:06
Android CI Workflow for GitHub Actions - Unit Test Job
#...
jobs:
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
@nathan818fr
nathan818fr / haproxy.cfg
Last active August 4, 2025 09:48
Decoding the Minecraft handshake with HAProxy (protocol version, hostname, next-state) to choose which backend to use.
global
lua-load /path/to/haproxy_minecraft.lua
[...]
defaults
[...]
frontend mc_listener
bind *:25565
mode tcp
@shadow443
shadow443 / megafetch.sh
Created March 28, 2021 22:13 — forked from zanculmarktum/megafetch.sh
Get download url from mega.nz
#!/bin/bash
# Copyright 2018, 2019, 2020 Azure Zanculmarktum
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.