Skip to content

Instantly share code, notes, and snippets.

Nick James nicksort

  • San Francisco | Portland
Block or report user

Report or block nicksort

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View welcome.sh
#!/bin/env bash
ruby_v='2.4.2'
pg_v='postgres@9.6'
redis_v='redis@4.0'
elastic_v='elasticsearch@6.2'
nginx_v='nginx@1.14'
# brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@nicksort
nicksort / approver.yml
Last active May 9, 2018
SQS structure sign-off service
View approver.yml
provider: # s3, gcs
storage_location: # s3 location, gcs location
version: <generated schema vers>
approvals:
require_staging: true
required: 2
total: 1
team_a: 0
team_b: 1
structure:
View elastic_stats.sh
#!/bin/bash
# check elastic stats
curl -XGET 'http://localhost:9200/_nodes/stats/os,process?pretty=true'
View postgres_9_5_aws_linux.sh
#!/bin/bash
yum install -y postgresql95 postgresql95-server postgresql95-libs postgresql95-contrib postgresql95-devel
View gist:beffcad9e4ef7c04c173
/*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public License,
* version 2.0. See the APACHE20 and GPL2 files for the text of the licenses,
* or the following URLs:
@nicksort
nicksort / gist:e75bfec47b2f2c49b886
Created Mar 13, 2016 — forked from mrdoob/gist:1325393
ffmpeg: recording the screen.
View gist:e75bfec47b2f2c49b886
ffmpeg -f x11grab -b 1M -bt 2M -r 30 -s 512x512 -i :0.0+1,53 -an kinect.webm
View shortener note
/^\b((?:https?:\/\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))$/
@nicksort
nicksort / Arduino Song
Created Feb 8, 2013
Arduino Star Wars Song for Piezo
View Arduino Song
**/
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
@nicksort
nicksort / underscore mustache conversion
Created Jan 24, 2013
underscore mustache style syntax conversion...
View underscore mustache conversion
_.templateSettings = {
interpolate : /\{\{(.+?)\}\}/g
}
@nicksort
nicksort / Apache mod_gizip stuff gzip
Created Jan 15, 2013
Apache 1.3 Gzip mod_gzip stuff..
View Apache mod_gizip stuff gzip
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_min_http 1000
mod_gzip_minimum_file_size 300
You can’t perform that action at this time.