Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ltfschoen
ltfschoen / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js Recaptcha Solver in Browser | Automatically solves Recaptcha in browser by engageub | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
@ltfschoen
ltfschoen / setup-mac.sh
Last active January 15, 2024 10:13
setup mac
* Setup
* Create an use a non-root Standard user account and sign-in with it
* https://apple.stackexchange.com/questions/192365/is-it-ok-to-use-the-root-user-as-a-normal-user
* Change sudo timeout https://www.maketecheasier.com/edit-sudoers-file-linux/
* Add user to sudoers file. Login as root. Type `sudo visudo` and add to bottom of file `<USERNAME> ALL=(ALL) ALL`
* Enable mac Firewall
* Remove icons not wanted by uncheck 'Keep in Dock'
* Directory structure: code/src/<github-repo>/<username>
* Install Riot chat: https://riot.im/desktop.html
* Add to ~/.gitexcludes `.DS_Store`
@ltfschoen
ltfschoen / mycrypto.md
Last active November 22, 2023 06:21
mycrypto macos
@ltfschoen
ltfschoen / tmux.md
Created August 28, 2023 01:40
wip - tmux notes
docker exec -w /multix/squid --user=root -it multix-ui-dev /bin/sh
apk add --update tmux

# new Tmux session and window
# references:
# * https://gist.github.com/michaellihs/b6d46fa460fa5e429ea7ee5ff8794b96
# * https://dev.to/iggredible/useful-tmux-configuration-examples-k3g

# commands
@ltfschoen
ltfschoen / find-larg-files.md
Created May 10, 2023 01:54
find large files on macos

find . -size +200M -exec du -hs {} ;

@ltfschoen
ltfschoen / launch.sh
Created March 7, 2017 04:03
Shell script that generates separate Terminal tabs to run a Ruby on Rails web server then automatically opens associated webpage in your web browser
#!/bin/bash
# File: ~/launch.sh
# Original Code Reference: http://dan.doezema.com/2013/04/programmatically-create-title-tabs-within-the-mac-os-x-terminal-app/
# New-BSD License by Original Author Daniel Doezema http://dan.doezema.com/licenses/new-bsd/
# Modified by Luke Schoen in 2017 to include loading new tabs for Rails Server and automatically open webpage in browser.
# References: https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html
@ltfschoen
ltfschoen / dh-rococo-local.md
Last active February 23, 2022 14:44
DataHighway rococo-local

I am using an Apple macOS with M1 processor when following the steps here https://docs.substrate.io/tutorials/v3/cumulus/start-relay/ I am using the versions specified here https://docs.substrate.io/tutorials/v3/cumulus/start-relay/#software-versioning (i.e. polkadot v0.9.16, substrate-parachain-template polkadot-v0.9.16 and Polkadot-JS Apps v0.103.2-8 from https://github.com/polkadot-js/apps/commit/0b6e52733181392e823f7c37e833f4f5fd6b16ef)

First I installed Substrate and Rust:

curl https://getsubstrate.io -sSf | bash -s -- --fast
wget -O - https://sh.rustup.rs | sh -s -- -y
PATH=$PATH:/root/.cargo/bin
@ltfschoen
ltfschoen / error-endow-genesis.md
Last active February 20, 2022 12:34
Errors in polkadot-launch after combining a JSON file with other accounts to be endowed at genesis

I am using an Apple macOS with M1 processor when following the steps here https://docs.substrate.io/tutorials/v3/cumulus/start-relay/ I am using the versions specified here https://docs.substrate.io/tutorials/v3/cumulus/start-relay/#software-versioning (i.e. polkadot v0.9.16, substrate-parachain-template polkadot-v0.9.16)

First I installed Substrate and Rust:

curl https://getsubstrate.io -sSf | bash -s -- --fast
wget -O - https://sh.rustup.rs | sh -s -- -y
PATH=$PATH:/root/.cargo/bin
rustup update stable
@ltfschoen
ltfschoen / chain_def_westlake.json
Created December 22, 2021 23:04
chain_def_westlake.json
This file has been truncated, but you can view the full file.
{
"name": "DataHighway Westlake Mainnet",
"id": "westlake",
"chainType": "Live",
"bootNodes": [
"/ip4/3.127.123.230/tcp/30333/p2p/12D3KooWPSVWEpuNPKE6EJBAMQQRCrKG4RTfyyabFRjT4xqMkuH5",
"/ip4/3.65.196.4/tcp/30333/p2p/12D3KooWPZqAuWSez5uomot7GZvpuRQK198zqLYrLLZt5W7bvqPb",
"/ip4/3.123.21.153/tcp/30333/p2p/12D3KooWAjdURBpSsRVWbvnGRbsqykvueM6Vuoe4x7MhV6cxTtje",
"/ip4/18.184.76.132/tcp/30333/p2p/12D3KooWCWZc5L6ypCFcvDdGeGwsw9Mo4nniCwiVuU5MB6ApA4ZT",
"/ip4/3.124.189.68/tcp/30333/p2p/12D3KooWJ1F4BsNgeaVkZVPw2kRhHxAtJuUqeEik2R7dv9ttgPcv",