Skip to content

Instantly share code, notes, and snippets.

curl -kL http://install.perlbrew.pl| sed "/\$PERLBREWDOWNLOAD/{N;s|$|sed -i -r '/@INC/ s/([)][}])/ vendorlib vendorarch\\\1/' \\\$LOCALINSTALLER\n|}" | bash
@spicyjack
spicyjack / gist:9c1876bc6a3d79ad73a25c0a96f97789
Created September 15, 2016 04:41
Customization for the taglist VIM plugin
" ===================================================================
" taglist VIM plugin customization
" ===================================================================
"
" Extend the Perl mappings to do Rexfiles as well (batch, task)
let tlist_perl_settings = 'perl;b:batch;t:task;'
\ . 'c:constant;l:label;'
\ . 'p:package;s:subroutine'
# API Codex #
## API Document URLs ##
- _BitBucket_
- https://developer.atlassian.com/bitbucket/api/2/reference/resource/
- https://confluence.atlassian.com/bitbucket/use-the-bitbucket-rest-apis-222724129.html
- _GitHub_
- https://developer.github.com/v3/
- _GitLab_
- http://docs.gitlab.com/ce/api/README.html
#!/bin/sh
while true;
do
read LINE
grep -R "$LINE" /path/to/files
done
@spicyjack
spicyjack / outbrain_stylist_rules.css
Created June 6, 2017 15:18
Outbrain Stylist rules
.ob_container {display: none !important;}
.ob_holder {display: none !important;}
.ob_org_header {display: none !important;}
.ob-pixels {display: none !important;}
.ob_strip_container {display: none !important;}
.ob_what {display: none !important;}
.ob-widget {display: none !important;}
.ob-widget-header {display: none !important;}
.ob-widget-section {display: none !important;}
.ob-widget-items-container {display: none !important;}
@spicyjack
spicyjack / fun_with_spam.txt
Created June 13, 2017 22:12
Assure TRANSITION AND TURNING Point of Human Civilization
From: Hari Kotadia <hari.kotadia@ymail.com>
Envelope Recipient: fuckthisshit@example.com
To: fuckthisshit@example.com
Subject: TRYING to Build Sustainable Planetary FUTURE but with NO FOUNDATION - (UNO/GOVs/ EDUs /IGOs /NGOs /MNCs).
Date: 13 Jun 2017 06:43 (GMT -07:00)
@spicyjack
spicyjack / gist:242ec58707c770028189ad86d8921bba
Created November 9, 2017 18:28
Put VIM swap/undo/backup files in a central place
" Put plugins and other things (dictionaries) in this dir (also on Windows)
" https://stackoverflow.com/questions/5700389
" http://vim.wikia.com/wiki/Automatically_create_tmp_or_backup_directories
" https://coderwall.com/p/sdhfug/vim-swap-backup-and-undo-files
let vimDir = '$HOME/.vim'
let &runtimepath.=','.vimDir
" backup: backups are for wimps ;-)
let myBackupDir = expand(vimDir . '/backup')
if isdirectory(myBackupDir)
define hook-quit
set confirm off
end
target remote :3333
load
break led_roulette::main
continue
@spicyjack
spicyjack / rustwasm_setup.md
Created September 13, 2018 22:31
RustWASM setup steps
  • Setup for the Rust WASM "Game of Life" demo
    • cargo install wasm-pack
    • cargo install cargo-generate
    • npm should already be installed
  • Cloning the "Game of Life" demo
    • cargo generate --git https://github.com/rustwasm/wasm-pack-template
      • You'll be prompted for the target output directory name
        • wasm-game-of-life; this will be called $WASM_GOL below
  • Set up the wasm-bindgen workflow
    • cd $WASM_GOL