Skip to content

Instantly share code, notes, and snippets.

@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.

" vimrc.vim - Extension of vim-sensible plugin with less sensible defaults.
" Maintainer: Adam Stankiewicz <[email protected]>
" Version: 2.0
if exists("g:loaded_vimrc") || &cp
finish
else
let g:loaded_vimrc = 1
end
@drkarl
drkarl / .taskrc
Last active April 2, 2022 13:08
How to add Jira tasks to taskwarrior and open browser from command line
#Add to .taskrc
#New UDA jira
uda.jira.type=string
uda.jira.label=Jira
#Add the new UDA to any existing or new report, i.e. to the next report
report.next.columns=id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.remaining,until.remaining,jira,description,urgency
report.next.labels=ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Jira,Description,Urg
#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
@drkarl
drkarl / README.md
Last active January 29, 2025 06:38 — forked from disler/README.md
Use Meta Prompting to rapidly generate results in the GenAI Age

Meta Prompting

In the Generative AI Age your ability to generate prompts is your ability to generate results.

Guide

Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.

Replace {{user-input}} with your own input to generate prompts.

Use mp_*.txt as example user-inputs to see how to generate high quality prompts.