Skip to content

Instantly share code, notes, and snippets.

View bradylove's full-sized avatar

Brady Love bradylove

  • Pivotal
  • Highlands Ranch, CO
View GitHub Profile

Steps to get running on heroku

  • Create your application
package main

import (
	"os"
	"net/http"
class Client
import "java.net.InetAddress"
def create_host(nameserver)
addrs = []
addrs << InetAddress.getByName(nameserver.addr_v4) if nameserver.addr_v4
addrs << InetAddress.getByName(nameserver.addr_v6) if nameserver.addr_v6
command = JavaImport::Se::HostCreateCommand.new(
nameserver.name.to_java,
"""
test code for motor class
[email protected]
solenerotech.wordpress.com
this test is done using:
ESC: turnigy plush30
Motor: turnigy D2830 1000kv
@bradylove
bradylove / gist:66635f5ebbd320ee2e98
Created October 5, 2014 14:56
Remove unwanted packages from Raspbian
sudo apt-get purge xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* alsa* nano python-pygame python-tk python3-tk scratch tsconf xdg-tools desktop-file-utils
@bradylove
bradylove / gist:6892356
Last active December 25, 2015 01:08
Sublime settings
{
"auto_complete_commit_on_tab": true,
"caret_style": "wide",
"color_scheme": "Packages/Tubsted Color Schemes/Tubsted.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": false,
"font_face": "Hermit",
"font_size": 9,
"highlight_line": true,
[0x7f82b8006c78] stream_filter_httplive stream: Reloading HLS live meta playlist
[h264 @ 0x7f82b8dc89c0] Missing reference picture
[h264 @ 0x7f82b8dc89c0] decode_slice_header error
[h264 @ 0x7f82b8dc89c0] concealing 1728 DC, 1728 AC, 1728 MV errors
[h264 @ 0x7f82b8dc8ea0] mmco: unref short failure
[h264 @ 0x7f82b8dc8ea0] Missing reference picture
[h264 @ 0x7f82b8dc8ea0] Missing reference picture
[h264 @ 0x7f82b8dc8ea0] Missing reference picture
[h264 @ 0x7f82b8dc9500] reference picture missing during reorder
[h264 @ 0x7f82b8dc9500] Missing reference picture
@bradylove
bradylove / ZRANGE.go
Created September 4, 2013 09:47
Playing with Redis in Go
package main
import (
"fmt"
"github.com/garyburd/redigo/redis"
)
func main() {
c, err := redis.Dial("tcp", ":6379")
if err != nil {
@bradylove
bradylove / keypair_gen.go
Last active December 21, 2015 00:09
Generates RSA KeyPair and writes to file in PEM format.
package main
import (
"crypto/rsa"
"crypto/rand"
"crypto/x509"
"encoding/pem"
"os"
"fmt"
)
@bradylove
bradylove / gist:6207719
Last active December 20, 2015 22:49
My solution to http://reddit.com/r/dailyprogrammer challenge #130
// My solution to http://reddit.com/r/dailyprogrammer challenge #130
package main
import (
"fmt"
"os"
"math/rand"
"time"
)
@bradylove
bradylove / tmux.el
Last active May 16, 2023 14:54
Send commands to a tmux pane from emacs :)
(setq tmux-session-name 0)
(setq tmux-window-name 1)
(setq tmux-pane-name 1)
(defun tmux-exec (command)
"Execute command in tmux pane"
(interactive)
(shell-command
(format "tmux send-keys -t %s:%s.%s '%s' Enter" tmux-session-name tmux-window-name tmux-pane-name command)))