(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "fguillen.mail+spam@gmail.com"
cd /develop/myrepo
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"runtime" | |
"runtime/debug" | |
"runtime/pprof" | |
"strconv" |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: uniqush-push | |
# Required-Start: $remote_fs $network | |
# Required-Stop: $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts uniqush-push | |
# Description: Starts Uniqush provides a unified push service for server-side notification to apps on mobile devices. | |
### END INIT INFO |
Gemfile.lock |
#!/bin/bash | |
rand() { | |
echo $(( $1 * RANDOM / 32768 )) | |
} | |
rand_element () { | |
local -a th=("$@") | |
echo "${th[$( rand ${#th[@]} )]}" | |
} |
# Boot from USB... | |
mkdir /mnt/arch | |
cd /mnt/arch | |
mount -t proc proc proc/ | |
mount -t sysfs sys sys/ | |
mount -o bind /dev dev/ | |
chroot . /bin/bash | |
mount -a | |
pacman -S linux |
#!/usr/bin/env ruby | |
# Usage | |
# $ docker-machine create my-machine123 -d virtualbox | |
# $ ruby <(curl -L https://git.io/vZT32) my-machine123 | |
# https://gist.github.com/hSATAC/ac91f6cdc88c5a12ed5a | |
require 'erb' | |
bootlocalsh = %Q(#/bin/bash |
javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})(); |
/*! | |
* | |
* Imgur CORS Image upload | |
* | |
* Author & Copyright: timdream (timdream@gmail.com; http://timdream.org/) | |
* License: MIT LICENSE | |
* | |
*/ | |
"use strict"; |