Skip to content

Instantly share code, notes, and snippets.

@drkarl
drkarl / gist:e0a258a9731c941175b9e1614c4a2436
Created December 13, 2016 10:15 — forked from grugq/gist:7713916
The text from: http://dee.su/uploads/baal.html On Underground Communications
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Undercover communication
It should be obvious by now, that the only way to communicate
stealthily and securely is to avoid raising suspicion to the
level at which the authorities might consider it worthwhile
to put you under active surveillance (e.g., park a van with
TEMPEST equipment by your apartment).

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@drkarl
drkarl / gpgmutt.md
Created December 12, 2016 14:38 — forked from bnagy/gpgmutt.md
Mutt, Gmail and GPG

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service
@drkarl
drkarl / Applications.md
Created July 18, 2017 11:21 — forked from magarcia/Applications.md
List of applications for finally move to Linux with a command line environment
@drkarl
drkarl / Applications.md
Created July 18, 2017 11:21 — forked from magarcia/Applications.md
List of applications for finally move to Linux with a command line environment

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
@drkarl
drkarl / font.sh
Created August 3, 2017 11:31 — forked from kepbod/font.sh
Installing font for powerline
#!/usr/bin/env bash
printf '\033[0;34m%s\033[0m\n' "Installing font for statusline..."
mkdir $HOME/.fonts
wget -O $HOME/.fonts/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf
fc-cache -vf $HOME/.fonts
mkdir $HOME/.fonts.conf.d
wget -O $HOME/.fonts.conf.d/10-powerline-symbols.conf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
@drkarl
drkarl / hardening_usbarmory.md
Created April 13, 2018 08:44 — forked from yann2192/hardening_usbarmory.md
Hardening USB Armory

Hardening the USB Armory

As a good crypto nerd, I usually use an entirely encrypted linux FS: / but also /boot using grub LUKS support. It's a good setup but it's not perfect, the BIOS and the bootloader are not protected.

I recently got a USBArmory and I wanted to apply the same (or a better) setup.

I found some useful links but no clear howto. So this is my setup.

#Copy to your .zshrc
#Copy to clipboard
function cp(){
echo $1 > /dev/clipboard
}
#Paste from clipboard
function pb(){
cat /dev/clipboard
@drkarl
drkarl / maven tips.sh
Last active November 6, 2018 10:54 — forked from kra3/maven tips.sh
Speed up maven build times.
# rip off from https://zeroturnaround.com/rebellabs/your-maven-build-is-slow-speed-it-up/
# in .bashrc
set MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
# add -DdependencyLocationsEnabled=false to retain fewer outgoing connections.
# compile all modules
mvn -T 1C install -offline