Skip to content

Instantly share code, notes, and snippets.

heliostatic / justfile
Last active May 10, 2019
mastodon docker justfile
View justfile
git fetch
update VERSION:
git stash
git checkout v{{VERSION}}
git stash pop
sed 's/:v[0-9]\.[0-9]\.[0-9]/:v{{VERSION}}/g' docker-compose.yml
heliostatic / output.txt
Created Nov 12, 2017
./ -d -v
View output.txt
[/Users/ - Honore de Balzac.epub] =====================================================
[/Users/bc..ns - Honore de Balzac.epub] Testing '/DIRECTORY/Balzac, Honore de/Lost Illusions - Honore de Balzac.epub' for corruption...
[/Users/bc..ns - Honore de Balzac.epub] tr: Illegal byte sequence
[/Users/bc..ns - Honore de Balzac.epub] The file has a '.epub' extension, testing with 7z...
[/Users/bc..ns - Honore de Balzac.epub] File passed the corruption test, looking for ISBNs...
[/Users/bc..ns - Honore de Balzac.epub] Searching file '/DIRECTORY/Balzac, Honore de/Lost Illusions - Honore de Balzac.epub' for ISBN numbers...
[/Users/bc..ns - Honore de Balzac.epub] usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
[/Users/bc..ns - Honore de Balzac.epub] [-e pattern] [-f file] [--binary-files=value] [--color=when]
[/Users/bc..ns - Honore de Balzac.epub] [--context[=num]] [--directories=action] [--label] [--line-buffered]
[/Users/bc..ns - Honore de Balzac.epub] [--null] [

Keybase proof

I hereby claim:

  • I am heliostatic on github.
  • I am heliostatic ( on keybase.
  • I have a public key whose fingerprint is 8F4C 15D0 978F C7DE 2854 1C74 DC86 6032 6CF5 12E9

To claim this, I am signing this object:

heliostatic / gist:3001755
Created Jun 27, 2012 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts
View gist:3001755

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
heliostatic / main.rb
Created Oct 26, 2011 — forked from daz4126/main.rb
Short, Long and Pretty Urls - Using Sinatra & DataMapper to demonstrate different types of urls
View main.rb
require 'sinatra'
require 'data_mapper'
require 'slim'
require 'digest/sha1'
DataMapper.setup(:default, ENV['DATABASE_URL'] || File.join("sqlite3://",settings.root, "development.db"))
class Note
include DataMapper::Resource
property :id, Serial
heliostatic /
Created May 19, 2011 — forked from bergie/
Falsy Values tutorials
View show
# Usage: show <local-port> <subdomain>
function show() {
ssh -tR 1080:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80: localhost"
heliostatic / ride4ruby.rb
Created Jan 11, 2011
The least OO of all possible solutions.
View ride4ruby.rb
# Ride4Ruby challenge
# details:
require 'open-uri'
require 'JSON'
require 'pp'
require 'net/http'
States = %w{Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware District of Columbia Florida Georgia Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming}
View Slightly optimized version of the ‘Device Scale UI elements in iOS Mobile Safari’ script by 37signals
// Provides a device_scale class on iOS devices for scaling user
// interface elements relative to the current zoom factor.
// Copyright (c) 2010 37signals.
// Slightly optimized by Mathias Bynens <>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
View rails_test_box_prepackaged
# Copy paste this file in your terminal
# The following will create a dir which contains the rails repo.
# You can start edit this later on. It will also create a Gemfile and a Vagrantfile.
# It will run bundle and it will # download and activate the virtualbox that contains
# everything you need to start # testing.
mkdir rails_test_box
cd rails_test_box
git clone git://
You can’t perform that action at this time.