This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "0.0.1", | |
"title": "Artist Advance API" | |
}, | |
"securityDefinitions": { | |
"auth0": { | |
"type": "oauth2", | |
"flow": "implicit", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get remove -y docker docker-engine | |
apt-get update | |
apt-get install -y \ | |
linux-image-extra-$(uname -r) \ | |
linux-image-extra-virtual | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
import mongoose from 'mongoose'; | |
const Schema = mongoose.Schema; | |
const ${1:${TM_FILENAME/(.+)\..+|.*/$1/:SchemaName}}Schema = new Schema({ | |
name: { type: 'String', required: true } | |
}); | |
export default mongoose.model('${1:SchemaName}', ${1:SchemaName}Schema); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enter the hostname that you'd like to create:" | |
read HOSTNAME | |
# Can be defined as an environment variable | |
if [ -z "$DO_TOKEN" ]; then | |
echo "Enter your Digital Ocean access token:" | |
read DO_TOKEN | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Enter site name, e.g. 'hello' if you want to create 'hello.staging.properdesign.rs'" && \ | |
read SITE && \ | |
docker run -d -P \ | |
--link properstaging_db_1:mysql \ | |
--restart=always \ | |
-e "VIRTUAL_HOST=$SITE.staging.properdesign.rs" \ | |
-e "WORDPRESS_DB_NAME=$SITE" \ | |
-e "PRODUCTION=true" \ | |
-v /www/$SITE/uploads:/var/www/html/wp-content/uploads \ | |
-v /www/$SITE/plugins:/var/www/html/wp-content/plugins \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enter the hostname that you'd like to create:" | |
read HOSTNAME | |
# Can be defined as an environment variable | |
if [ -z "$DO_TOKEN" ]; then | |
echo "Enter your Digital Ocean access token:" | |
read DO_TOKEN | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enter the hostname that you'd like to create:" | |
read HOSTNAME | |
if [ -z "$DO_TOKEN" ]; then | |
echo "Enter your Digital Ocean access token:" | |
read DO_TOKEN | |
fi | |
if [ -z "$PUBLIC_KEYS" ]; then | |
echo "Enter your public keys followed by Ctrl-D:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var sys = require('util'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = process.env['TWITTER_CONSUMER_KEY']; | |
var _twitterConsumerSecret = process.env['TWITTER_CONSUMER_SECRET']; | |
console.log("_twitterConsumerKey: %s and _twitterConsumerSecret %s", _twitterConsumerKey, _twitterConsumerSecret); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -vzre ssh --delete $sourcedir $destdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate; chmod +x /usr/local/bin/rsub |
NewerOlder