Skip to content

Instantly share code, notes, and snippets.


Roman Tarnavski romant

View GitHub Profile
lrvick /
Last active Jul 28, 2021
My default canned response to all recruiters. Know what you want out of your career and articulate it specifically if you want to get it either at your current employer, or a different one.

I know exactly what I want in a long term role so I can save us some time.

For me to be willing to change jobs at this point I would expect:

  • A high level of autonomy where I am allowed to work weird hours.
  • Have my obsession for auditable everything be humored/tolerated
    • I prefer to work with open platforms like RISC-V and OpenPower and open operating systems like Linux, FreeBSD, OpenBSD, Sel4, etc
    • I am never asked to rely on any software I can't audit on any of my personal or company devices.
  • No need to go find clients myself or worry about the business side of the house
  • Travel/lodging covered for the 2-3 security conferences I try to attend every year.
View gist:9a2097c726584560fa13f6c1ae13abfb
# This tells kubecfg to read its config from the local directory
export KUBECONFIG=./kubeconfig
# Looking at the cluster
kubectl get nodes
kubectl get pods --namespace=kube-system
# Running a single pod
kubectl run --generator=run-pod/v1 kuard
kubectl get pods
louy / nginx.conf
Created Apr 28, 2016
Docker Nginx Config
View nginx.conf
daemon off;
user nginx;
worker_processes 1;
pid /var/run/;
events {
worker_connections 1024;
View gist:6406455d4a4f41442167
Feature: Sessions
As a client
I want to use the sessions api at $API/sessions
So that I may receive a session token
Scenario: User with only an email that hasn't been taken
Given A client connected to the service
When I try to login as a new user
find . -type f -print0 | xargs -0 grep -l "$1"
jhartikainen / commit-msg
Created Feb 6, 2015
ESLint git commit hook
View commit-msg
files=$(git diff --cached --name-only | grep '\.js$')
# Prevent ESLint help message if no files matched
if [[ $files = "" ]] ; then
exit 0
echo $files | xargs eslint
melekes /
Created Aug 30, 2013
Test coverage Dashing widget

Test coverage

Test coverage


Dashing widget to display test coverage.

The widget is based on JenkinsBuild, which shows you a completion percentage while Jenkins builds the project and zero in other cases. Actually, if you think about it, build takes only a small amount of time (of course, if your project is not building for half an hour). So we decided to find a more reasonable use of this state and show percentage of test coverage.


I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View mongoskin-demo.js
var mongo = require('mongoskin');
var db = mongo.db('');
// create index:
// key, unique, callback
db.collection('user').ensureIndex([['name', 1]], true, function(err, replies){});
// bind method: db.user ===> db.collection('user')