Skip to content

Instantly share code, notes, and snippets.

View allenluce's full-sized avatar

Allen Luce allenluce

  • Seattle, WA
View GitHub Profile
$ pwd
/tmp/x
$ ls -l
total 24
-rw-r--r-- 1 allenluce wheel 13 Dec 8 22:51 a file
-rw-r--r-- 1 allenluce wheel 4 Dec 8 22:47 another file
-rw-r--r-- 1 allenluce wheel 26 Dec 8 22:47 files
$ cat a\ file
Hey devs! I got a chance to look a little at the work being done in the lesson-creation-deliver repo and have a few recommendations for you:
1) Do not merge into your feature branch!
Doing so convolutes Git history and destroys one of the most valuable
tools available for diagnosing bugs. Instead, use rebase. This keeps
history clean and keeps your changes separate from those on other
branches.
2) Write commit messsages! Make them LONG, make them VERBOSE, and explain why you did EVERYTHING that you did in the commit!
My process for (many) code reviews:
1) Make sure there are tests or test changes as may be necessary.
2) Check out the code.
3) Run all the tests and look for failures.
4) Run the code on a panel and check that the feature works (or bug is gone).
5) Revert the non-test code and re-run tests, looking for a failure.
6) Read the actual code and see if it makes sense.
7) Look for obvious bugs in the code.
8) Look for inefficiencies in the code.
<config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.4.xsd">
<TUNNEL gossip_router_hosts="${jgroups.tunnel.gossip_router_hosts:10.20.30.162[12001]}"/>
<PING/>
<MERGE3/>
<FD/>
@allenluce
allenluce / atlas.png
Last active August 22, 2019 15:00
Flappy Bird resources
atlas.png
awsmfa () {
# Remove the old [default] section
sed -i.bak '/^\[default\]/,/# End of \[default\]/d' ~/.aws/credentials
# Get new token && append to credentials
aws sts get-session-token \
--serial-number arn:aws:iam::769885837224:mfa/allen.luce \
--token-code `otp promethean-aws` \
--duration-seconds 129600 \
--profile mfa | \
jq -r '.Credentials
Checking spot prices for c5.18xlarge instance type.
AWS Zone Hourly Rate
------------------------ ------------
eu-north-1a $0.982800
eu-north-1b $0.982800
eu-north-1c $0.982800
ca-central-1a $1.040800
ca-central-1b $1.040800
ap-south-1a $1.043200
../mmap-object.cc: In static member function ‘static Nan::NAN_PROPERTY_SETTER_RETURN_TYPE SharedMap::PropSetter(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_PROPERTY_SETTER_ARGS_TYPE)’:
../mmap-object.cc:323:64: error: no matching function for call to ‘boost::unordered::unordered_map<boost::container::basic_string<char, std::char_traits<char>, boost::interprocess::allocator<char, boost::interprocess::segment_manager<char, boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>, boost::interprocess::iset_index> > >, Cell, hasher, s_equal_to, boost::interprocess::allocator<std::pair<boost::container::basic_string<char, std::char_traits<char>, boost::interprocess::allocator<char, boost::interprocess::segment_manager<char, boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>, boost::interprocess::iset_index> > >, Cell>, boost::interprocess::segment_manager<char, boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>, boost::interprocess::iset_index> > >
This file has been truncated, but you can view the full file.
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict'
const bounds = require('binary-search-bounds')
module.exports = createStateMachine
function ACState (symbols, children, next, value) {
this.s = symbols
gb kkk dx pal
gb kkk dx raj
gb kkk dx saj
gb kkk dx sal
gb kkk dx zak
gb kkk dy pal
gb kkk dy raj
gb kkk dy saj
gb kkk dy sal
gb kkk dy zak