Skip to content

Instantly share code, notes, and snippets.

View jamesadney's full-sized avatar

James Adney jamesadney

View GitHub Profile
package main
import (
"fmt"
)
type Stack struct {
top *Element
size int
}
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
mQINBFFQjx0BEADNCMt521/feo2454HbuK56Pz3dJFnFQym0sdKnSvJ+y0+nNxGi
xs4jw/n4Nm8kIaxs+mTGCuVcDPQ2gqWETv8f9Q9uoSF6OXXTdy2A2YHIIRpH0+nC
aXnkMl19mp9fgBP5L6oYjLYLWc6x2wtmr4lSMAiFHZRkhUSX2213WWIyuHHHIYaR
6UIabsUbObSPcPjMjUbJ5oGq3e73HFuC+BumKaNBgJCfkemFBV6iQAd3hoQTWokf
zrlmwx2q+gDwReIsOCqQ5uzd37VUyrC8N5jcHIIzrtpKXxgWkhXkZHfotTpvG+Bx
BiZWZ3kK5S+hHLMYW4bpnXJFEv2qiASYsXSMsH2NN/TUWaPurj+mxwpFab2KIT1o
n72GN7BYTNqB1/VCGZCgHvclXmPbJRZTaIRPrMY2b/yCTH2YbUYnNuCnVchQSjpS
  1. use rails --database=postgresql myapp to create app

  2. create postgres role that you want to use

  3. in .env set PGUSER and PGPASSWORD env vars

  4. set up database.yml without username or password for test and devel.

  5. use foreman

{
"auto_complete": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"font_face": "source code pro",
"font_size": 10,
"highlight_line": true,
"ignored_packages":
[
{
"translate_tabs_to_spaces": true,
"tab_size": 2
}
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;

Keybase proof

I hereby claim:

  • I am jamesadney on github.
  • I am jamesadney (https://keybase.io/jamesadney) on keybase.
  • I have the public key with fingerprint 19BB E939 28D2 D7D8 14AA  AB5B 563E 5E07 07A6 9C7A

To claim this, I am signing this object:

# Supports the default controls in the way I thought was logical.
#
# A is jump
# B is sneak
# X is drop
# Y is chat
# Scroll with the DPAD
# RT is left click
# LT is right click
# Left joystick is WASD
@jamesadney
jamesadney / xctu-ubuntu-install.sh
Created December 20, 2015 22:34
Fix: XCTU won't start on Ubuntu 14.04
# Fix XCTU on Ubuntu 14.04 amd64
#
# I installed xctu in $HOME/.local
sudo apt-get install libswt-gtk-3-jni:i386 libswt-gtk-3-java:i386
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/