Skip to content

Instantly share code, notes, and snippets.

View AlexDev404's full-sized avatar
๐Ÿ‘พ
Ruby2D!

Immanuel Daviel A. Garcia AlexDev404

๐Ÿ‘พ
Ruby2D!
View GitHub Profile
@antlauzon
antlauzon / btc_keygen.py
Created December 10, 2017 04:53
offline 'paper wallet' bitcoin address generator
import base58
import hashlib
from fastecdsa import curve
from fastecdsa import keys
updhsh = lambda h, s: [h.update(s), h][1]
b58chk = lambda s: base58.b58encode(bytes(hexbyt(s)))
concat = lambda s1, s2: "{}{}".format(s1, s2)
hexbyt = lambda s: bytes(bytearray.fromhex(s))
@roycewilliams
roycewilliams / same-quad-list.txt
Last active May 20, 2024 15:35
same-quad-list.txt: a list of same-quad IPs by owner, with DNS status
#-----------------------------------------------------------------------
# same-quad-list.txt: a list of same-quad IPs by owner w/DNS status
#
# The CIDR network is the largest contiguous/bit-boundary-aligned block
# that is allocated to that entity (actual allocated range may be larger)
# NOTE: some ranges not yet converted to CIDR.
# Updates welcome - leave comment and/or ping [email protected]
#-----------------------------------------------------------------------
# For human efficiency, some records are repeated here as comments.
#
@ghaiklor
ghaiklor / build.sh
Last active December 20, 2022 05:51
Script for getting all the sources and building second stage boot loader
# Install pre-requisites
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y nasm
sudo apt-get install -y qemu
# Download the sources
curl https://gist.githubusercontent.com/ghaiklor/3ef5a07b3de1beb964555183dee18621/raw/59cb9ba42fd71631b0bc0c55e2a27c38f0e8ffaf/boot.asm > boot.asm
curl https://gist.githubusercontent.com/ghaiklor/d63e5183773770e07854b5d799ef3a44/raw/fcdc0652fa1c39c5e76379e1bd58ac49922feeeb/loader.asm > loader.asm
@ghaiklor
ghaiklor / boot.asm
Created October 30, 2017 17:30
Full implementation of boot.asm
[org 0x7C00]
[bits 16]
KERNEL_OFFSET equ 0x1000
mov [BOOT_DRIVE], dl
call load_boot
call execute_boot
load_boot:
@peschee
peschee / git_ssl_self_signed.md
Last active February 15, 2025 22:18
Disable SSL verification in git repositories with self-signed certificates

Sometimes, we have to access git repositories over SSL and the server only provides a self-signed certificate ๐Ÿ™ˆ. Although there are ways to increase the trust level for the self-signed certificate (https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html, https://confluence.atlassian.com/bitbucketserverkb/resolving-ssl-self-signed-certificate-errors-806029899.html), my recommendation is to just ignore SSL verification alltogether.

Prepend GIT_SSL_NO_VERIFY=true before every git command run to skip SSL verification. This is particularly useful if you haven't checked out the repository yet.

Run git config http.sslVerify false to disable SSL verification if you're working with a checked out repository already.

@timball
timball / de-amazon-kindle.sh
Created October 5, 2017 03:26
this makes the amazon kindle fire not terrible to use
# de-amazon-kindle.sh
#
# Based on savvytechwinner windows script ...
# https://forum.xda-developers.com/amazon-fire/general/amazon-fire-utility-tool-bloat-removal-t3641151
#
# ported to mac/linux/bash ... i guess technically this would work in windows
#
# requires:
# - dialog(1)
# - savvytechwinner's zip file w/ all the .apks to be sideloaded.
@williamli
williamli / Baidu TongJi + China Firewall = DDOS "Great Cannon"
Last active June 20, 2023 22:01
Baidu TongJi's Javascript Library (//hm.baidu.com/hm.js) Changes (by Firewall of China) to launch DDOS attack on enemy websites?
The Great Firewall of China seems to be hijacking Baidu Analytics (TongJi)'s Javascript code,
launching DDOS attacks on enemy websites from browsers.
Different hm.js (TongJi library) libraries are spotted and load interchangably.
An altered hm.js code is used when DDOS is observed.
More Info: https://stackoverflow.com/questions/45874555/baidu-tongji-analytics-is-directing-browsers-to-ddos-chinas-enemies
@triwav
triwav / roku-devices.md
Created July 25, 2017 16:11
Roku Device List

Roku Devices

Overview

Roku provides the leading operating system for TV. We design the firmware and cloud services to run optimally across a wide range of devices. When developing on Roku OS, it's important for your channel(s) to perform across our wide range of products.

Sections:

@JBlond
JBlond / bash-colors.md
Last active May 13, 2025 18:13 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 13, 2025 21:24
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example