Skip to content

Instantly share code, notes, and snippets.

Jaroslaw Filiochowski jarfil

Block or report user

Report or block jarfil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jarfil
jarfil / ca.md
Created Oct 17, 2018 — forked from soarez/ca.md
How to setup your own CA with OpenSSL
View ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@jarfil
jarfil / vpn_psk_bingo.md
Created Oct 9, 2017 — forked from kennwhite/vpn_psk_bingo.md
Most VPN Services are Terrible
View vpn_psk_bingo.md

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

View onename id
Verifying that +jarfil is my blockchain ID. https://onename.com/jarfil
@jarfil
jarfil / start_menu-move_entries.sh
Last active May 16, 2019
Clean up Start Menu entries in Windows, Cygwin
View start_menu-move_entries.sh
#!/bin/bash
# generic processing (DEPRECTED)
#rm -f "*/Uninstall.lnk"
#rm -f "*/Uninstall *.lnk"
# ===
# Start Menu
function do_move_1 {
@jarfil
jarfil / docker-update-prune.sh
Last active Oct 7, 2015
Docker: update + remove old unused images
View docker-update-prune.sh
#!/bin/bash
# for every named image
docker images | sed "1d" | cut -d " " -f1 | sort -n | uniq | grep -v '^<none>$' |
while read f ; do
# pull latest image, skip pruning if can't pull
if ! docker pull "$f" ; then continue ; fi
# get latest image id
IMAGE_ID=`docker images "$f" | sed "1d;2q" | sed 's/^[^ ]* *[^ ]* *//;s/ .*$//'`
if [ "x$IMAGE_ID" == "x" ] ; then continue ; fi
@jarfil
jarfil / java-update-links.sh
Last active May 8, 2019
Auto-recreate Java links for latest versions. Windows, Cygwin as admin
View java-update-links.sh
@jarfil
jarfil / auto-apt-get.sh
Created May 2, 2015
Automate apt-get avoiding major damage, suitable for cron
View auto-apt-get.sh
#!/bin/bash
EMAIL="example@example.com"
DEVEL=false
# clean downloaded packages if none pending for dist-upgrade
if ! $DEVEL ; then apt-get --assume-no dist-upgrade && apt-get clean ; fi
# update, upgrade, autoremove
apt-get --assume-yes update
@jarfil
jarfil / apt-pkg-releases.sh
Created Apr 26, 2015
Check version of a package in available releases
View apt-pkg-releases.sh
#!/bin/bash
PKG="$1"
for f in stable testing unstable experimental ; do
echo -n "$f - "
apt-cache show $PKG/$f 2>/dev/null | grep "Version:" || echo
done
View painting2sprites.sh
#!/bin/bash
# painting2sprites - A simple script to read an ORA, resize and trim output PNGs.
INPUT_FILE="$1"
OUTPUT_DIR="$2"
RESIZE_SCALE="25%"
if [ "$2" == "" ]; then
View setaliases.sh
### CYGWIN
# Sublime Text 3
# https://cygwin.com/cygwin-ug-net/using-effectively.html
# https://scotch.io/tutorials/open-sublime-text-from-the-command-line-using-subl-exe-windows
# https://stackoverflow.com/questions/7131670/make-bash-alias-that-takes-parameter
sublimetext() {
"C:/Program Files/Sublime Text 3/subl.exe" "$(cygpath -pw "$1")" $*
You can’t perform that action at this time.