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:
I hereby claim:
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 |
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; |
I hereby claim:
To claim this, I am signing this object:
curl --location --request POST 'localhost:3005/collection/' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"options": { | |
"serverless": false | |
}, | |
"collection": { | |
"collectionId": "digitalnomad91", | |
"name": "digitalnomad91", | |
"networkId": "telos", |
#!/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 | |
# 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 |