Skip to content

Instantly share code, notes, and snippets.

# Specify analysis options.
#
# Until there are meta linter rules, each desired lint must be explicitly enabled.
# See: https://github.com/dart-lang/linter/issues/288
#
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
# See the configuration guide for more
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
#
# There are other similar analysis options files in the flutter repos,
var Fs = require('fs');
var Hapi = require('hapi');
var Http2 = require('http2');
var options = {
key: Fs.readFileSync('./ssl/site.key');
cert: Fs.readFileSync('./ssl/site.crt');
};
var server = new Hapi.Server();
@csandeep
csandeep / index.js
Created June 30, 2015 17:03
sqlizer_test
var sqlizr = require('sqlizr');
var Sequelize = require('sequelize');
var passportLocalSequelize = require('passport-local-sequelize');
var sequelize = new Sequelize("sqlizer_test","","",{
dialect: 'sqlite',
storage: './sqlizer_test.sqlite3'
}
);
@csandeep
csandeep / reset_ios_sim.sh
Created April 2, 2015 03:54
Reset iOS Simulator
killall 'iOS Simulator'
xcrun simctl list | awk -F "[()]" '{ for (i=2; i<NF; i+=2) print $i }' | grep '^[-A-Z0-9]*$' | xargs -I uuid xcrun simctl erase uuid
@csandeep
csandeep / gist:a230a8a4bba51eb5e316
Created February 6, 2015 18:33
UUID of a mobile provosioning profile
/usr/libexec/PlistBuddy -c 'Print UUID' /dev/stdin <<< $(security cms -D -i path_to_mobileprovision)
@csandeep
csandeep / .emacs
Created October 21, 2014 15:57
Emacs dot file
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
(global-set-key "\C-x\C-m" 'execute-extended-command)
(global-set-key "\C-c\C-m" 'execute-extended-command)
(global-set-key "\C-h\C-f" 'cperl-perldoc-at-point)
(global-set-key "\C-l" 'goto-line)
(ido-mode)

Keybase proof

I hereby claim:

  • I am csandeep on github.
  • I am csandeep (https://keybase.io/csandeep) on keybase.
  • I have a public key whose fingerprint is 73D7 6591 235F 35C4 6901 EFF9 C5B7 1CEF 3505 D99A

To claim this, I am signing this object:

# from http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
gem install nomad-cli
@csandeep
csandeep / install_buildbot.sh
Last active August 29, 2015 13:57
how to install buildbot on os x 10.9 with apple llvm 5.1
#!/bin/bash
# from http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
# from http://docs.buildbot.net/current/tutorial/firstrun.html
cd
mkdir -p tmp/buildbot
cd tmp/buildbot
virtualenv --no-site-packages sandbox
@csandeep
csandeep / gist:9488653
Created March 11, 2014 15:52
Modal DigitalColor Meter
lldb; attach DigitalColor Meter; expr (void)[[[NSApp windows] firstObject] setLevel:5]