Acquire::socks::proxy "socks5://server:port";
To keep apt.conf clean and avoid problems at Linux upgrade I created a new file (/etc/apt/apt.conf.d/12proxy) and added the config file to it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
## Use openssl. Use hex not base64, special characters suck in passwords | |
# the number refers to the number of bytes, so with 2 hex characters per byte, this is a 32 character password. | |
openssl rand -hex 16 | |
## Just straight up urandom. Give me 5 32 char alpha-numeric passwords | |
tr -cd '[:alnum:]' < /dev/urandom | fold -w 32 | head -n 5 | |
tr -cd 'a-zA-Z0-9' < /dev/urandom | fold -w 32 | head -n 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
#-- Dave Wallraff | |
# First things first, I'm the realest... | |
### backup everything in 1password | |
# curl -sL dwallraff.com/1password | bash | |
# wrap in a function for curl|bash | |
do_stuff() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
## Copy all docs from 1password | |
mkdir files || exit | |
# Get all current (non-trashed) doc UUIDs and titles | |
# shellcheck disable=2016 | |
op list documents | jq -r '. as $in | keys[] | select($in[.].trashed=="N") as $res | [$in[$res].uuid, $in[$res].overview.title] | @json' > files/docs_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
## Copy all item metadata from 1password | |
# Get all item UUIDs | |
# shellcheck disable=2016 | |
op list items | jq -r '.[].uuid' > items_list | |
# Loop over list and save off all the metadata | |
TODAY=$(date "+%Y%m%d") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
#-- Dave Wallraff | |
# First things first, I'm the realest... | |
### personal jumpbox bootstrap script | |
# curl -L dwallraff.com/jumpbox | bash | |
# wrap in a function for curl|bash | |
do_stuff() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Encrypt (GPG) | |
tar hcz <dir> | gpg --batch --cipher-algo AES256 --symmetric --output <filename>.tar.gz.enc | |
## Decrypt (GPG) | |
gpg --no-verbose --quiet --batch --cipher-algo AES256 --decrypt <filename>.tar.gz.enc | tar xvz | |
## Encrypt (SSL) | |
tar cz <dir> | openssl enc -e -aes-256-cbc -salt -md sha256 -out <filename>.tar.gz.enc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
#-- Dave Wallraff | |
# First things first, I'm the realest... | |
### bootstrap crostini container | |
# curl -sL dwallraff.com/bootstrap | bash | |
# wrap in a function for curl|bash | |
do_stuff() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
{ "keys": ["ctrl+shift+G"], "command": "find_all_under" } | |
] |