Setting up Dokku with DigitalOcean and Namecheap
..or how I made my own heroku in a few hours for $3.98.
#! /usr/bin/env bash | |
#################################################### | |
# Required Libraries | |
# | |
# library name | commands used | verified version | |
# ------------------------------------------------ | |
# ffmpeg | ffmpeg/ffprobe | 3.1.4 3.2 | |
# gpac | mp4box | 0.6.1 | |
# mp4v2 | mp4chaps | 2.0.0 |
#!/usr/bin/env python | |
""" | |
i3t.py -- list i3wm windows, get next window id, wrap/loop around | |
Configuration (``.i3/config``):: | |
set $i3t_alt_tab ~/-dotfiles/src/i3t/i3t.py n | |
set $i3t_alt_shift_tab ~/-dotfiles/src/i3t/i3t.py p | |
bindsym Mod1+Tab exec exec $i3t_alt_tab | |
bindsym Mod1+Shift+Tab exec $i3t_alt_shift_tab |
/* Side notes for calling out things | |
-------------------------------------------------- */ | |
/* Base styles (regardless of theme) */ | |
.bs-callout { | |
margin: 20px 0; | |
padding: 15px 30px 15px 15px; | |
border-left: 5px solid #eee; |
<?php | |
/** | |
* @author Kristaps Karlsons <[email protected]> | |
* Licensed under MPL 1.1 | |
*/ | |
function mc_status($host,$port='25565') { | |
$timeInit = microtime(); | |
// TODO: implement a way to store data (memcached or MySQL?) - please don't overload target server | |
$fp = fsockopen($host,$port,$errno,$errstr,$timeout=10); |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.