Skip to content

Instantly share code, notes, and snippets.

@alphacentory
alphacentory / rsync
Created August 13, 2013 22:08
quick snippet for rsync download
rsync -azve ssh [email protected]:/path/to/folder/ ./
@alphacentory
alphacentory / orchestrateService.js
Last active August 29, 2015 13:58
orchestrate service layer for node.
/** Make sure that you have orchesrtate added to your package.json inside of sail.js **/
/**
*
* @This is a service script written for sailsjs.com framework for nodejs.
* @Author Tory Adams
**/
var db = require("orchestrate")("your token");
{
name: "test",
children: [
{
name: "test",
children: [
{
name: "test",
children: [
{
@alphacentory
alphacentory / setup.sh
Last active January 14, 2017 20:53
go api bash script set up
#!/bin/bash
cd ${HOME}
if [[ $unamestr == "Darwin" ]]; then
echo "installing... homebrew..."
if ! which brew > /dev/null; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "installing... git... go..."
brew install git go
fi
@alphacentory
alphacentory / gofileformat.go
Created July 19, 2016 01:19
How I like my go files.
package name
import ()
var ()
const()
func init() {}
type custom struct
type custom2 struct