Skip to content

Instantly share code, notes, and snippets.

@drkarl
drkarl / maven tips.sh
Last active Nov 6, 2018 — forked from kra3/maven tips.sh
Speed up maven build times.
View maven tips.sh
# 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
View copy_clipboard_cygwin.sh
#Copy to your .zshrc
#Copy to clipboard
function cp(){
echo $1 > /dev/clipboard
}
#Paste from clipboard
function pb(){
cat /dev/clipboard
@drkarl
drkarl / .taskrc
Last active Jan 13, 2021
How to add Jira tasks to taskwarrior and open browser from command line
View .taskrc
#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
View .vimrc
" vimrc.vim - Extension of vim-sensible plugin with less sensible defaults.
" Maintainer: Adam Stankiewicz <sheerun@sher.pl>
" Version: 2.0
if exists("g:loaded_vimrc") || &cp
finish
else
let g:loaded_vimrc = 1
end
View hardening_usbarmory.md

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.

@drkarl
drkarl / font.sh
Created Aug 3, 2017 — forked from kepbod/font.sh
Installing font for powerline
View font.sh
#!/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
View gist:02c1207ab643ff2c155e388c57e511d4

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.
View vimwiki-cheatsheet.md

VimWiki Cheatsheet

[number] refers to the wiki number, set by the order in your vimrc. The default is 1.

Wiki Management

  • [number] <leader> ww - open wiki index file
  • [number] <leader> wt - open wiki index file in new tab
  • <leader> ws - list and select available wikis
  • <leader> wd - delete wiki page
@drkarl
drkarl / Applications.md
Created Jul 18, 2017 — forked from magarcia/Applications.md
List of applications for finally move to Linux with a command line environment
View Applications.md
@drkarl
drkarl / Applications.md
Created Jul 18, 2017 — forked from magarcia/Applications.md
List of applications for finally move to Linux with a command line environment
View Applications.md