Skip to content

Instantly share code, notes, and snippets.

View bcomnes's full-sized avatar
👽

Bret Comnes bcomnes

👽
View GitHub Profile
@bcomnes
bcomnes / Sample
Last active August 29, 2015 14:07
Selectable LaTeX Scopes in TextMate 2
\documentclass{report}
\title{Sections and Chapters}
\author{Bret Comnes}
\date{\today}
\begin{document}
\maketitle
\part{(-1) part name} % (fold)
\label{prt:part_name}
@bcomnes
bcomnes / package.json
Last active August 29, 2015 14:12
Tests, coverage, CI and auto testing scripts and reps. Live linting provided by the editor.
{
"scripts": {
"tape": "tape test/*.js",
"test": "npm run tape | tap-spec",
"cover": "istanbul cover tape test/*.js | tap-spec",
"submitCover": "cat coverage/lcov.info | codeclimate",
"travis": "npm run cover && npm run submitCover",
"dev": "nodemon -i coverage --exec 'npm run cover --silent'"
},
"devDependencies": {
diff --git a/node_modules/node-gyp/lib/install.js b/node_modules/node-gyp/lib/install.js
index 6f72e6a..ebc4e57 100644
--- a/node_modules/node-gyp/lib/install.js
+++ b/node_modules/node-gyp/lib/install.js
@@ -39,7 +39,7 @@ function install (gyp, argv, callback) {
}
}
- var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'http://nodejs.org/dist'
+ var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'https://iojs.org/dist'
@bcomnes
bcomnes / jsfmt.sublime-settings
Created February 17, 2015 03:44
jsfmt.sublime-settings
{
// autoformat on save
"autoformat": true,
// array of extensions for autoformat
"extensions": ["js", "sublime-settings"],
// options for jsfmt
"options": {
"preset": "default",
@bcomnes
bcomnes / .screenrc
Last active August 21, 2022 10:33
ssh agent forwarding in tmux and gnu screen
# Fix agent forwarding
# https://gist.github.com/martijnvermaat/8070533
# http://techblog.appnexus.com/2011/managing-ssh-sockets-in-gnu-screen/
# See .ssh/rc for socket linking
unsetenv SSH_AUTH_SOCK
setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock.$HOSTNAME
[2015-05-14 13:21:57] <chrisdickinson> bret: tl;dr on node/iojs – io.js project continues to release as usual until convergence repo is ready, next major version after current io.js major version will be new node – i.e., if io.js releases v3.0.0, node will release v4.0.0 and development will continue from there
[2015-05-14 13:22:26] <bret> !m chrisdickinson
[2015-05-14 13:22:31] <chrisdickinson> io.js TC and governance is adopted by node foundation as the "TSC" which sits under the foundation board
[2015-05-14 13:23:05] <chrisdickinson> all existing node core members join the TSC (so, julien gilli, orangemocha, wyatt preul, et al, join the TC)
[2015-05-14 13:23:10] <chrisdickinson> sorry, TSC.
[2015-05-14 13:23:16] <chrisdickinson> we earned ourselves a new letter in the process!
[2015-05-14 13:23:19] <ogd> chrisdickinson: what does tsc stand for
[2015-05-14 13:23:32] <chrisdickinson> technical steering committee
[2015-05-14 13:23:36] <bret> techical support committee :troll:
[2015-05-14 13:23:43] <bret> (jk
@bcomnes
bcomnes / index.html
Created May 19, 2015 00:41
Fragmention example
<!DOCTYPE html>
<html>
<head>
<title>Fragmention</title>
<script async src="//cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
<script async src="//cdn.rawgit.com/chapmanu/fragmentions/4e44a80756add65e25f3913d1352154a49525bdd/fragmention.min.js"></script>
<style type="text/css">
body {
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
@bcomnes
bcomnes / ansible-examples.yml
Last active March 2, 2021 06:25
Ansible Yaml Syntax Exampls
---
# Thanks halberom!
# http://blog.halberom.co.uk/ansible_yaml_syntax.html
- hosts: foo
tasks:
- name: single line plain style
file: path=/tmp/foo state=touch
- name: multi line plain style
file: path=/tmp/foo
description "ipfs daemon"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
limit nofile 524288 1048576
limit nproc 524288 1048576
chdir /home/jbenet
exec start-stop-daemon --start --chuid jbenet --exec /home/jbenet/go/bin/ipfs daemon
respawn