Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Straub ben

View GitHub Profile
@ben
ben / README.md
Last active Jan 26, 2019
SCRIPT-8
View README.md
@ben
ben / bot.js
Created May 27, 2016
Something like Hubot, implemented on top of Botkit
View bot.js
require('dotenv').config()
var Fs = require('fs')
var Path = require('path')
var Botkit = require('botkit')
if (!process.env.SLACK_TOKEN) {
console.error('ERROR: this requires "SLACK_TOKEN" to be a valid Slack API token.')
process.exit(-1)
}
@ben
ben / checklist.md
Last active Nov 21, 2015
After-hours switchover
View checklist.md

Rolling forward

  • Set k8s load balancers to listen on ports 81 and 444:
    • welcome (a6478641c8f4411e599d106fa7745be6-898755358.us-west-1.elb.amazonaws.com)
    • huyang (a6442f4148f4411e599d106fa7745be6-1097607471.us-west-1.elb.amazonaws.com)
    • tenants (a6456bf648f4411e599d106fa7745be6-289499823.us-west-1.elb.amazonaws.com)
    • messaging (a518bc87b8f4411e599d106fa7745be6-242074411.us-west-1.elb.amazonaws.com)
    • huyangapi (ac85c06dd8ca111e599d106fa7745be6-165125648.us-west-1.elb.amazonaws.com)
  • pg_dump gridium from a k8s minion
  • docker-compose stop on docker1 and docker2
View gist:10672053
### Keybase proof
I hereby claim:
* I am ben on github.
* I am benstraub (https://keybase.io/benstraub) on keybase.
* I have a public key whose fingerprint is 2F50 F2DC FAF4 8271 F5FA F461 B815 AD70 262A E9FE
To claim this, I am signing this object:
@ben
ben / 38859f2_32
Last active Dec 22, 2015
Libgit2 build results, before and after #1840
View 38859f2_32
1>------ Build started: Project: libgit2_clar, Configuration: Debug Win32 ------
1> Building Custom Rule C:/Users/ben/Documents/GitHub/libgit2/CMakeLists.txt
1> CMake does not need to re-run because C:\Users\ben\Documents\GitHub\libgit2\build\CMakeFiles\generate.stamp is up-to-date.
1> Generating ../tests-clar/clar.suite
1> Written `clar.suite` (1235 tests in 205 suites)
1> precompiled.c
1> attr.c
1> attr_file.c
1> branch.c
1> buf_text.c
View test.c
#include "test.h"
extern int foo(char c);
int bar(char c) {
return foo(c);
}
View clone.c
#include "git2.h"
#include <stdio.h>
static void fetch_progress(
const git_transfer_progress *stats,
void *payload)
{
int fetch_percent =
(100 * stats->received_objects) /
stats->total_objects;
@ben
ben / Outline.md
Last active Dec 11, 2015
Resources from introductory class at PHP Benelux
View Outline.md
@ben
ben / gist:4081592
Created Nov 15, 2012
libgit2 summit notes
View gist:4081592

Roadmap to 1.0

What does 1.0 mean?

  • Public API stability
  • Consistency
  • Backporting fixes to past release branches
  • Semantic Versioning
  • Certain set of functionality
  • Vision: make it easy to do interesting things with git
You can’t perform that action at this time.