Skip to content

Instantly share code, notes, and snippets.

View stigmergik's full-sized avatar

Keani Kei stigmergik

View GitHub Profile

Keybase proof

I hereby claim:

  • I am stigmergik on github.
  • I am stigmergik (https://keybase.io/stigmergik) on keybase.
  • I have a public key ASDTSPqClCT0BBWB-DRxuf7izYCeoVsY_1AfgCxmY0WZFQo

To claim this, I am signing this object:

@stigmergik
stigmergik / torsocksify.rb
Created June 27, 2018 00:35
Moves `./my_binary` to `./my_binary.original` and creates a bash script at `./my_binary` that calls the original with `torsocks`, forwarding arguments
#!/usr/bin/env ruby
require 'fileutils'
files = ARGV
files
.map { |file| [File.dirname(file), File.basename(file)] }
.each do |relative_path, original_bin_arg|
# `path` means absolute path
path = File.expand_path(relative_path)
if original_bin_arg =~ /\.original$/
@stigmergik
stigmergik / ssb_id.md
Created June 30, 2018 01:56
My secure scuttlebutt id
@AEdl+eCGyKw5tJMZ27zhM9pXCnxmVfRutHjLWGCyhhE=.ed25519

#ssb #securescuttlebutt @stigmergik

-----BEGIN PGP MESSAGE-----
jA0EBwMC3bjNqJq3UhLa0u0BVwE2XuNHDcw3d3Fk5+T2pnR5n09jk4hT3p5if3aG
cPsbYTpstAld3VIAe6RebRgYjJ4kN8Xdrn2fJt/rODk8SLLY3gOdVnWa+3iIIr7o
Xppbyl+KYETix/4z/Dipfyh3ql5sXoVbEvZMggVTxzrn/XEX7fQ/c5c0Xvqby7eY
JKqodpuCRekD1OygHsaWxjhQF4am5C/1cLye0JhQv54KTK2rQMIW9TbX6rCS+43A
zhTf3uaVlQmcSmgWwpGhJ/2qrhYge1HTzlQ0timiBunbeEdhYJMekeyo0pFUSFpY
vCzJIuZ8t+4xHNwsGBaGe1pYU8EDvOogHXkbWE/WtFCKl33MWhPoYA4s4VyzDaVl
Tx6nm6OjBSLBfe5kVdcUUBcS9dELt6NsEehF1JFvUCEeIOGWJZ3Cj6ZLwI5WndKp
ot/sJydfTrRn4IViEKaWM4OhyqioJmR/qqFVJ5jtavpliL3WXtbrjLiOqcaP9bFb
@stigmergik
stigmergik / .bash_aliases
Last active July 8, 2018 05:14
How to search for packages that I can install with the GNU Guix package manager
# Add this to your ~/.bashrc or ~/.bash_aliases
# Then search with:
# xs <pattern>
# like
# xs ruby
#
# Requires ruby installed
# And the guix source code cloned locally somewhere from
# https://git.savannah.gnu.org/git/guix.git