Skip to content

Instantly share code, notes, and snippets.

View gerred's full-sized avatar
:octocat:

Gerred Dillon gerred

:octocat:
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.100.102"
end
---
# kind: replicated
replicated_api_version: 2.9.2
name: "Learning Replicated"
#
# https://help.replicated.com/docs/packaging-an-application/application-properties/
#
properties:
let g:neoformat_rust_rustfmt = {
\ 'exe': 'cargo',
\ 'args': ['+nightly', 'fmt', '--', '--write-mode=plain'],
\ 'stdin': 1,
\ }
let g:neoformat_enabled_rust = ['rustfmt']
Plug 'sbdchd/neoformat'
let g:neoformat_only_msg_on_error = 1
@gerred
gerred / log_deployment.sh
Created January 25, 2018 19:47 — forked from Martlark/log_deployment.sh
Simple script to get logs from the pods of a deployment
#!/usr/bin/env bash
for p in $(kubectl get pods --all-namespaces | cut -f 1 -d ' '); do
echo ---------------------------
echo $p
echo ---------------------------
kubectl logs $p
done
@gerred
gerred / atom_clojure_setup.md
Created December 12, 2017 01:16 — forked from jasongilman/atom_clojure_setup.md
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

==============
Traceback (most recent call last):
File "/Users/gerred/.pyenv/versions/3.6.1/envs/opscasts/lib/python3.6/site-packages/zappa/cli.py", line 2256, in handle
sys.exit(cli.handle())
File "/Users/gerred/.pyenv/versions/3.6.1/envs/opscasts/lib/python3.6/site-packages/zappa/cli.py", line 391, in handle
self.init()
File "/Users/gerred/.pyenv/versions/3.6.1/envs/opscasts/lib/python3.6/site-packages/zappa/cli.py", line 1187, in init
self.check_venv()
File "/Users/gerred/.pyenv/versions/3.6.1/envs/opscasts/lib/python3.6/site-packages/zappa/cli.py", line 2224, in check_venv
autoload -U promptinit; promptinit
prompt pure
export NVM_DIR="/Users/gerred/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
export LSCOLORS="ExGxFxDxCxDxDxhbhdacEc"
alias l='ls -al'
alias ls='ls -G'
@gerred
gerred / script.lua
Created December 31, 2016 23:05 — forked from jansegre/script.lua
Very basic luajit from Rust.
-- script.lua
-- Receives a table, returns the sum of its components.
io.write("The table the script received has:\n");
x = 0
for i = 1, #foo do
print(i, foo[i])
x = x + foo[i]
end
io.write("Returning data back to C\n");
return x
(defproject test "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[cljs-ajax "0.5.8"]
[secretary "1.2.3"]
[reagent-utils "0.2.0"]
[reagent "0.6.0"]
[org.clojure/clojurescript "1.9.229" :scope "provided"]
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const autoprefixer = require('autoprefixer')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
module.exports = {
entry: ['./src/app.js', './src/elm/Main.elm'],
output: {
path: './dist',
filename: 'app.js'