Skip to content

Instantly share code, notes, and snippets.

View digitalnomad91's full-sized avatar
🌏
Hack the world

Andrew Corbin digitalnomad91

🌏
Hack the world
View GitHub Profile

Keybase proof

I hereby claim:

  • I am digitalnomad91 on github.
  • I am digitalnomad91 (https://keybase.io/digitalnomad91) on keybase.
  • I have a public key ASAOkl70w-_61f_i-1tSfBjPq1ngDGXF7xiodp03RPELVwo

To claim this, I am signing this object:

#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@digitalnomad91
digitalnomad91 / libtorrent-sequential-download.patch
Created April 28, 2021 15:19 — forked from sormy/libtorrent-sequential-download.patch
rtorrent/libtorrent sequential download patch
diff --git a/src/download/chunk_selector.cc b/src/download/chunk_selector.cc
index 850fec0f..248a29f9 100644
--- a/src/download/chunk_selector.cc
+++ b/src/download/chunk_selector.cc
@@ -82,7 +82,7 @@ ChunkSelector::update_priorities() {
m_sharedQueue.clear();
if (m_position == invalid_chunk)
- m_position = random() % size();
+ m_position = 0;

Keybase proof

I hereby claim:

  • I am digitalnomad91 on github.
  • I am digitalnomad91 (https://keybase.io/digitalnomad91) on keybase.
  • I have a public key ASCbO5_v6D3jxjhNRZvei3qrZ4Cq-JEIYoujEvt8f848NAo

To claim this, I am signing this object:

@digitalnomad91
digitalnomad91 / create_collection_curl.txt
Created May 26, 2022 23:33
Create collection curl request example
curl --location --request POST 'localhost:3005/collection/' \
--header 'Content-Type: application/json' \
--data-raw '{
"options": {
"serverless": false
},
"collection": {
"collectionId": "digitalnomad91",
"name": "digitalnomad91",
"networkId": "telos",
@digitalnomad91
digitalnomad91 / spf.py
Created October 1, 2022 03:49 — forked from LAKostis/spf.py
Check SPF records for expired Domains and DNS lookup depth
#!/usr/bin/env python3
# modified version of this snippet
# https://gist.github.com/TheRook/95f2b872bdc81bac2371
import dns.resolver
import dns.name
from urllib.parse import urlparse
@digitalnomad91
digitalnomad91 / .zshrc
Last active May 16, 2023 21:26
zshhrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
### export NVM stuff
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
#!/bin/bash
alias shopt='/usr/bin/shopt'
shopt -s expand_aliases
#zsh aliases
alias ohmyzsh="nano ~/.oh-my-zsh"
alias reload='source ~/.zshrc'
alias zshconfig='nano $HOME/.zshrc'
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
cat /etc/motd
neofetch
for f in /etc/update-motd.d/*; do
bash "$f"
done
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
}
nvm_echo() {
command printf %s\\n "$*" 2>/dev/null