Skip to content

Instantly share code, notes, and snippets.

View voldmar's full-sized avatar

Volodymyr Epifanov voldmar

View GitHub Profile
@voldmar
voldmar / brew-total.zsh
Last active March 25, 2016 12:27
Brew command for total updating all your installed packages including casks
#!/usr/bin/env zsh
# Put it to /usr/local/bin/brew-total and use as `brew total`
brew update && brew upgrade --all && brew cleanup
brew cask list | xargs brew cask install && brew cask cleanup
caskroom=/opt/homebrew-cask/Caskroom
for cask in $caskroom/*
do
@voldmar
voldmar / fill.clj
Created March 27, 2017 13:39
Filling PDF AcroForm with Clojure and iText 7 community edition POF
#!/usr/bin/env boot
; vim: set ft=clojure:
(set-env! :dependencies
'[[com.itextpdf/forms "7.0.2"]])
(import
'[com.itextpdf.forms PdfAcroForm]
'[com.itextpdf.kernel.pdf PdfDocument PdfReader PdfWriter]
'[java.io IOException])