Skip to content

Instantly share code, notes, and snippets.

View rahulsprajapati's full-sized avatar
🎧
Music + Coffee + Code

Rahul Prajapati rahulsprajapati

🎧
Music + Coffee + Code
View GitHub Profile

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

'use strict';
module.exports = function(grunt) {
// load all grunt tasks matching the `grunt-*` pattern
// Ref. https://npmjs.org/package/load-grunt-tasks
require('load-grunt-tasks')(grunt);
grunt.initConfig({
// Fontello Icons
// Note: This is one time running task, so run grunt after update assets/fontello/config.json file
// Ref. https://npmjs.org/package/grunt-fontello
fontello: {
@rahulsprajapati
rahulsprajapati / pre-commit
Created June 17, 2016 20:40 — forked from Ritesh-patel/pre-commit
WordPress Plugin pre-commit
#!/bin/bash
# WordPress Plugin pre-commit hook
set -e
message="Checking staged changes..."
git_status_egrep='^[MARC].+'
for i; do
case "$i"
@rahulsprajapati
rahulsprajapati / androidPurchaseReceipt.json
Created February 16, 2016 16:09 — forked from pauly4it/androidPurchaseReceipt.json
All code for Validating Android In-App Purchases With Laravel blog post: http://blog.goforyt.com/validating-android-app-purchases-laravel/
{
"receipt": {
"type": "android-playstore",
"id": "12345678901234567890.1234567890123456",
"purchaseToken": "purchase token goes here",
"receipt": "{"orderId":"12345678901234567890.1234567890123456","packageName":"com.example.app","productId":"com.example.app.product","purchaseTime":1417113074914,"purchaseState":0,"purchaseToken":"purchase token goes here"}",
"signature": "signature data goes here"
}
}