Skip to content

Instantly share code, notes, and snippets.

View charanrajtc's full-sized avatar

charanrajtc

View GitHub Profile
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: uwall
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog $network
# X-Start-Before: vmware
@charanrajtc
charanrajtc / keybase.md
Created June 23, 2016 07:44
Verifying myself: I am charanrajtc on Keybase.io

Keybase proof

I hereby claim:

  • I am charanrajtc on github.
  • I am charanrajtc (https://keybase.io/charanrajtc) on keybase.
  • I have a public key ASAlvJaI4Sgnhw0Uz3blkSVMJW9BojMsVO1Yzt9reiL__go

To claim this, I am signing this object:

@charanrajtc
charanrajtc / vcenter-bootstrap
Created June 8, 2016 09:17
vertically align boot strap row center of the page
.vcenter {
min-height: 100%; /* Fallback for vh unit */
min-height: 100vh; /* You might also want to use
'height' property instead.
Note that for percentage values of
'height' or 'min-height' properties,
the 'height' of the parent element
should be specified explicitly.
var underscore = angular.module('underscore', []);
underscore.factory('_', function() {
return window._; //Underscore must already be loaded on the page
});
var app = angular.module('app', ['underscore']);
app.controller('MainCtrl', ['$scope', '_', function($scope, _) {
init = function() {
_.keys($scope);
}
@charanrajtc
charanrajtc / jshintsails.setup
Created December 27, 2015 11:21
Sails js grunt tasks jshint setup
I use npm to run my mocha tests so will skip the first part of your question.
I added jshint to 0.10 as follows
in tasks/config add a file jshint.js
module.exports = function(grunt) {
grunt.config.set('jshint', {
all: ['api/**/*.js', 'test/**/*.js', 'data/**/*.js']