Skip to content

Instantly share code, notes, and snippets.

@evil5hadow
evil5hadow / breachcompilation.txt
Created December 19, 2017 12:33
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@evil5hadow
evil5hadow / gist:4c2f1c032743f978ad545df02ed54f83
Created April 13, 2018 13:07 — forked from calkan/gist:eaad0bc4458da16a72dd
Michael Hoffman's crazy bash_history backer upper on git
1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is:
https://github.com/calkan/bash_history.git
2 - Create .history directory and initialize it for the repo:
mkdir $HOME/.history
cd $HOME/.history
git init
touch README.md
@evil5hadow
evil5hadow / S3 buckets copy.md
Created May 21, 2018 15:41 — forked from ushu/S3 buckets copy.md
Copy between S3 buckets w/ different accounts

This is a mix between two sources:

basically the first resource is great but didn't work for me: I had to remove the trailing "/*" in the resource string to make it work. I also noticed that setting the policy on the source bucket was sufficient. In the end these are the exact steps I followed to copy data between two buckets on two accounts

Basically the idea there is:

  • we allowe the destination account to read the source bucket (in the console for the source account)
  • we log as the destination and start the copy
@evil5hadow
evil5hadow / Documentation.md
Created July 9, 2018 14:51 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@evil5hadow
evil5hadow / sources.list
Created August 2, 2018 07:45
Ubuntu 18.04 Bionic default /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@evil5hadow
evil5hadow / personal-backup.sh
Created August 6, 2018 13:49 — forked from erincerys/personal-backup.sh
Backup directories and directory listings to a LUKS container and sync everything to S3
#!/bin/bash
## Description:
# Sync files to and create lists of directory contents in a LUKS container volume and upload it to S3
# Good for periodic backup jobs
# Supports rate limiting, encryption in transit and at rest and file path exclusions
## Usage:
# bash $0
@evil5hadow
evil5hadow / gist:f9377b943d6b40608e63ed7fed80e6c8
Created August 7, 2018 13:33
Enable FIDO U2F in Firefox Quantum
https://www.yubico.com/2017/11/how-to-navigate-fido-u2f-in-firefox-quantum/
While the FIDO U2F experience in Firefox is limited at the moment, turning it on is very simple. It only takes three steps.
1. Type about:config into the Firefox browser.
2. Search for “u2f”.
3. Double click on security.webauth.u2f to enable U2F support. (value should be set to True)
@evil5hadow
evil5hadow / gist:2041bef894c646b78fc3d2f06b7def25
Created August 7, 2018 13:39
Firefox: Enable First Party Isolation
[https://www.ghacks.net/2017/11/22/how-to-enable-first-party-isolation-in-firefox/]
1. Load the URL about:config?filter=privacy.firstparty.isolate in the Firefox address bar.
2. Double-click on privacy.firstparty.isolate to set the preference to true.
@evil5hadow
evil5hadow / .screenrc
Created August 7, 2018 21:13 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
# Updated: 2018.08.28
# CTRL + ← or → move to next/previous screen window
# SHIFT + ← or → move to next/previous terminator window
#
# C-a :sessionname
#
### screen as an answering machine!
#