Skip to content

Instantly share code, notes, and snippets.

View dennohpeter's full-sized avatar
🦀
Rust`edSoul

Dennoh Peter dennohpeter

🦀
Rust`edSoul
View GitHub Profile
@LukeMathWalker
LukeMathWalker / audit.yml
Last active September 23, 2025 17:36
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
let ip_addresses = [];
let port_numbers = [];
request("https://sslproxies.org/", function(error, response, html) {
if (!error && response.statusCode == 200) {
const $ = cheerio.load(html);
$("td:nth-child(1)").each(function(index, value) {
ip_addresses[index] = $(this).text();
});
@tarun-ssharma
tarun-ssharma / Enabling case-insensitive auto-complete for terminal in MacOS BigSur.md
Last active July 21, 2025 14:42
Enable case-insensitive auto-complete whilst giving preference to actual matches

Add these two lines to your ~/.zshrc file:

zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
autoload -Uz compinit && compinit

Tested on:

MacOS BigSur Version 11.5.1
@quan118
quan118 / gist:33b81f6aa612272669ba07c8fe63f296
Created March 28, 2022 08:12
Ether js signedTypeData & metamask sig utils signedTypeData_v4 sample
const {signTypedData, SignTypedDataVersion} = require("@metamask/eth-sig-util");
const ethers = require("ethers");
const domain = {
name: "name",
version: "1",
verifyingContract: "0xB6Fa4E9B48F6fAcd8746573d8e151175c40121C7",
chainId: 1,
};
@dabit3
dabit3 / demoday.md
Last active September 5, 2025 11:15
How to Give a Killer Pitch or Hackathon Demo