Skip to content

Instantly share code, notes, and snippets.

View thegreatsunra's full-sized avatar

Dane Petersen thegreatsunra

View GitHub Profile
#!/bin/bash
# ensure running as root or exit
if [ "$(id -u)" != "0" ]; then
echo "run this as root or use sudo" 2>&1 && exit 1;
fi;
# for older versions of Raspbian, insure that apt-transport-https is installed first
echo -n "Installing prerequisites..."
apt-get update
@thegreatsunra
thegreatsunra / install_zk_sw.sh
Last active July 21, 2018 21:08
Zymkey installation for Resin.io Raspberry Pi Dockerfile
#!/bin/bash
## ensure running as root or exit
if [ "$(id -u)" != "0" ]; then
echo "run this as root or use sudo" 2>&1 && exit 1;
fi;
echo -n "Creating gpio group..."
groupadd gpio

Keybase proof

I hereby claim:

  • I am thegreatsunra on github.
  • I am thegreatsunra (https://keybase.io/thegreatsunra) on keybase.
  • I have a public key ASBuCX-B-4Mtv9GLBYM8zq3-tgrCOex5mCoDe9Q6CZNMIAo

To claim this, I am signing this object:

@thegreatsunra
thegreatsunra / default.txt
Created July 27, 2017 16:05
Nginx config for reverse proxying node app
server {
listen 80;
server_name __domain.com_or_public_IP_address__;
location / {
proxy_pass http://APP_PRIVATE_IP_ADDRESS:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@thegreatsunra
thegreatsunra / npm_install_g.md
Last active June 29, 2017 12:47
Global npm installs
  • aws-sdk
  • cordova
  • cordova-check-plugins
  • cordova-icon
  • electron
  • electron-osx-sign
  • eslint
  • ios-deploy
  • license-checker
  • node-gyp
@thegreatsunra
thegreatsunra / .hyper.js
Last active December 19, 2019 23:10
My Hyper Terminal settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 15,
// font family with optional fallbacks
@thegreatsunra
thegreatsunra / aliases.zsh
Last active February 17, 2018 17:02
zsh aliases
# Put this file in ~/.oh-my-zsh/custom/ and it will be loaded automatically
# Custom public aliases
alias aliases="code ~/.oh-my-zsh/custom/."
alias credentials="code ~/.aws"
alias brewupdate="brew update && brew upgrade"
alias bumpdeps="ncu -a && ncu -a && npm install"
alias bumpdepsandcommit="bumpdeps && commitdeps"
alias commitdeps="git add -A && git commit -m 'Bump deps' && git push"
alias desk="cd ~/Desktop"
@thegreatsunra
thegreatsunra / settings.json
Last active May 10, 2017 14:20
My User Settings for Visual Studio Code
{
"window.zoomLevel": -1,
"editor.tabSize": 2,
"editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 18,
"editor.renderWhitespace": "boundary",
@thegreatsunra
thegreatsunra / Preferences.sublime-settings
Last active March 10, 2017 14:44
My User Settings for Sublime Text 3
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme",
"create_window_at_startup": false,
"drag_text": false,
"font_face": "Source Code Pro",
"font_size": 16,
"ignored_packages":
[
"Vintage"
@thegreatsunra
thegreatsunra / .editorconfig
Created March 23, 2014 04:30
My default dotfiles when starting new projects
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference