Skip to content

Instantly share code, notes, and snippets.

gino8080 gino8080

Block or report user

Report or block gino8080

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
@gino8080
gino8080 / update_git_repos.sh
Created Aug 1, 2018 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
View update_git_repos.sh
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@gino8080
gino8080 / SqlDataReaderExtensions.cs
Created Jun 21, 2018 — forked from syed-afraz-ali/SqlDataReaderExtensions.cs
Convert SqlDataReader to Json String
View SqlDataReaderExtensions.cs
// Requires Newtonsoft.Json to create JSON String
public static String ToJson(this SqlDataReader rdr)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
using (JsonWriter jsonWriter = new JsonTextWriter(sw))
{
jsonWriter.WriteStartArray();
View exportjson.js
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@gino8080
gino8080 / Gruntfile.js
Created Sep 28, 2016 — forked from jshawl/Gruntfile.js
Grunt + Sass + Autoprefixer
View Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options:{
style:'compressed'
},
files: {
'css/style.css' : 'scss/style.scss'
@gino8080
gino8080 / multi-ipn.php
Created Jul 1, 2016 — forked from anointed/multi-ipn.php
Paypal multiple IPN's
View multi-ipn.php
<?php
/*
* This is a PayPal IPN (Instant Payment Notification) broadcaster
* Since PayPal does not provide any straightforward way to add
* multiple IPN listeners we'll have to create a central IPN
* listener that will broadcast (or filter and dispatch) Instant
* Payment Notifications to different destinations (IPN listeners)
*
* http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/
*
View iTerm2 Complete CheatSheet.md

Basic Moves

Function Shortcut
Move back one character Ctrl + b
Move forward one character Ctrl + f
Delete current character Ctrl + d
Delete previous character Backspace
Undo Ctrl + -
You can’t perform that action at this time.