Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rindek on github.
  • I am rindek (https://keybase.io/rindek) on keybase.
  • I have a public key ASDkGzeqlIE2jTKr0erKUY4Zzg25HdsLAc3S-sjzg0x8lwo

To claim this, I am signing this object:

@rindek
rindek / docker-compose-nginx.yml
Created November 16, 2017 10:08
Basic docker-compose config file to run nginx-proxy
version: '3.2'
services:
nginx:
image: jwilder/nginx-proxy:latest
container_name: nginx_proxy
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/ssl/web:/etc/nginx/certs
- /etc/nginx/vhost.d:/etc/nginx/vhost.d
@rindek
rindek / .proxy.pac
Created June 26, 2013 10:49
.proxy.pac
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.dev")) {
return "PROXY localhost:3000";
}
if (shExpMatch(host, "*.dev2")) {
return "PROXY localhost:3001";
}
if (shExpMatch(host, "*.dev3")) {
return "PROXY localhost:3000";
}
@rindek
rindek / pango.rb
Created June 14, 2013 14:14
brew formula for pango-1.32.5
require 'formula'
class Pango < Formula
homepage 'http://www.pango.org/'
url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.32/pango-1.32.5.tar.xz'
sha256 '7d7bc99c3d9b580cb4fe787fe47824e56e39534b9040e1c8a2a159248d8e5821'
option 'without-x', 'Build without X11 support'
depends_on 'pkg-config' => :build
@rindek
rindek / .proxy.pac
Created November 21, 2012 08:39
.proxy.pac
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.dev")) {
return "PROXY localhost:3000";
}
if (shExpMatch(host, "*.dev2")) {
return "PROXY localhost:3001";
}
if (shExpMatch(host, "*.dev3")) {
return "PROXY localhost:3000";
}
@rindek
rindek / gist:3713592
Created September 13, 2012 11:02
Kittens!
25.times {
x = rand(10..50) * 10
y = rand(10..50) * 10
url = "http://placekitten.com/#{x}/#{y}"
output = "kitten_#{x}_#{y}.jpg"
`wget "#{url}" -O "#{output}"`
}
@rindek
rindek / pre-commit-hook
Created March 28, 2012 12:56
pre-commit hook which will check for any binding.pry or invalid files before commiting
#!/bin/bash
## START PRECOMMIT HOOK
files_modified=`git status --porcelain | egrep "^(A |M |R ).*" | awk ' { if ($3 == "->") print $4; else print $2 } '`
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"
## use ruby defined in project
source .rvmrc
for f in $files_modified; do