Skip to content

Instantly share code, notes, and snippets.

View nopolabs's full-sized avatar

Dan Revel nopolabs

View GitHub Profile
@nopolabs
nopolabs / previous-git-tag.sh
Last active September 28, 2016 19:13 — forked from kjantzer/previous-git-tag.sh
Get Previous Git Tag (the one before the latest tag on trunk)
# http://stackoverflow.com/a/28818420/484780
git describe --abbrev=0 --tags `git rev-list --first-parent --tags --skip=1 --max-count=1`
@nopolabs
nopolabs / pcat
Last active September 21, 2023 16:57 — forked from tazjel/pcat
sudo apt-get install python-pygments && alias pcat="pygmentize -f terminal256 -O style=native -g"
@nopolabs
nopolabs / login.rb
Created December 11, 2011 03:21 — forked from amscotti/login.rb
Sample of Sinatra authentication
require 'rubygems'
require 'bcrypt'
require 'haml'
require 'sinatra'
enable :sessions
userTable = {}
helpers do
@nopolabs
nopolabs / gist:1354281
Created November 10, 2011 06:41 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;