Skip to content

Instantly share code, notes, and snippets.

View spilth's full-sized avatar
👽
spilth.org

Brian Kelly spilth

👽
spilth.org
View GitHub Profile
@spilth
spilth / django.md
Created April 5, 2018 14:35
Django Cheatsheet

Django Cheatsheet

Install Python

$ brew install pyenv
$ eval "$(pyenv init -)"
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ pyenv install --list
$ pyenv install 2.7.14
@spilth
spilth / rubymine-overview.md
Last active February 16, 2018 14:22
RubyMine Overview
  • Command + Shift + O = open file/class
    • Fuzzy Finder
  • Command + Shift + T = Navigate between test and implementation
    • Move Right...
  • Code Navigation
    • Command + Click class/variable
    • Option + Up/Down Arrow = Increase/Decrease Text Selection
    • Option + Shift + Up/Down Arrow = Move Code Up/Down
  • Refactoring Shortcuts
  • Shift + F6 = Rename Class/Method/Variable/File
@spilth
spilth / vsc-preferences.cson
Last active January 8, 2018 22:42
Visual Studio Code Preferences
{
// My eyes are old
"editor.fontSize": 16,
// Save files when they lose focus
"files.autoSave": "onFocusChange",
// Bump up the UI (my eyes are old)
"window.zoomLevel": 1,
@spilth
spilth / android-emulator-homebrew.sh
Last active November 14, 2022 17:44
Android Emulator with Homebrew
touch ~/.android/repositories.cfg
brew cask install caskroom/versions/java8
brew cask install android-sdk
brew cask install intel-haxm
brew install qt
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
sdkmanager "platform-tools" "platforms;android-27" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;27.0.0" "system-images;android-27;google_apis;x86" "emulator"
avdmanager create avd -n test -k "system-images;android-27;google_apis;x86"
/usr/local/share/android-sdk/tools/emulator -avd test
@spilth
spilth / python-cheatsheet.md
Created August 30, 2017 13:50
Python Cheatsheet

Python Cheatsheet

Python Version Manager

Use Homebrew to install pyenv and pyenv-virtualenv:

$ brew install pyenv
$ brew install pyenv-virtualenv

Raspbian

Setup

$ sudo systemctl enable ssh
$ sudo systemctl start ssh
$ sudo apt-get install vim --yes
$ sudo apt-get install tmux --yes
$ sudo apt-get install rbenv --yes

Keybase proof

I hereby claim:

  • I am spilth on github.
  • I am spilth (https://keybase.io/spilth) on keybase.
  • I have a public key whose fingerprint is A650 37B6 043B 912F 278C E15D B5F8 2588 8BDF 987E

To claim this, I am signing this object:

@spilth
spilth / java-todo.md
Last active December 11, 2020 16:08
Java Developer To Do List

This is a collection of tasks/exercises/experience I want to have accomplished as a Java Developer. I'm leaving the tasks undone so that others can easily copy this list and track their own progress.

If you have suggested additions, please leave a comment below.

  • Create a Maven project using the command-line
  • Test Driven Development using a testing framework
    • JUnit
    • Hamcrest Matchers
  • Behavior Drive Development using a framework
  • Cucumber
@spilth
spilth / maven-dash.sh
Created November 29, 2016 16:45
Install the Javadocs for all your Maven dependencies into Dash
#!/usr/bin/env bash
OLDIFS=$IFS
IFS=":"
mvn dependency:list -DoutputFile=dependencies.txt -q
grep jar dependencies.txt | sed 's/^ *//;s/$//' > dependencies-fixed.txt
while read groupId artifactId packaging version scope
do