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
module.exports.connections = { | |
yourDB: { | |
host: 'mongodb02.prod.whatever.com', | |
port: 27017, | |
database: 'somedb', | |
schema : true, | |
replSet: { | |
servers: [ | |
{ | |
host: 'mongodb01.prod.whatever.com' |
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
Verifying that +luislobo is my openname (Bitcoin username). https://onename.com/luislobo |
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
git checkout <feature-branch> | |
git pull | |
git checkout <release-branch> | |
git pull | |
git merge --no-ff <feature-branch> | |
git push | |
git tag -a branch-<feature-branch> -m "Merge <feature-branch> into <release-branch>" | |
git push --tags | |
git branch -d <feature-branch> | |
git push origin :<feature-branch> |
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
<?php | |
/** | |
* MIME types. | |
* | |
* This file contains most commonly used MIME types | |
* according to file extension names. | |
* | |
* @author Qiang Xue <qiang.xue@gmail.com> | |
* @link http://www.yiiframework.com/ | |
* @copyright 2008-2013 Yii Software LLC |
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
// Require the default sails singleton (this is the same Sails instance you use globally in your app) | |
var sails = require('sails'); | |
// setup | |
before(function(done) { | |
sails.lift({ | |
// You can customize the port if you want (or use sails.load instead if you are testing using the VRI/sails.request() or just need access to the ORM, etc.) | |
// port: 4000, |
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
grep version `find -iname lodash -type d -exec find {} -iname package.json \;` |
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
class A { | |
constructor(name){ | |
this.name = name; | |
} | |
static create(name){ | |
return new this(name); | |
} |
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
const stream = require('stream'); | |
const request = require('request'); | |
const AWS = require('aws-sdk'); | |
const s3 = new AWS.S3(); | |
const BUCKET = 'mybucket'; | |
const KEY = 'luis/yourvideo.mp4'; | |
request.get('https://yoursite/yourvideo.mp4') | |
.pipe(uploadFromStream()) |
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
install.txt ⬡ 8.12.0 | |
apt install build-essential --no-install-recommends | |
apt install git mc zsh byobu i3 dunst i3lock i3blocks i3status --no-install-recommends | |
apt install firefox --no-install-recommends | |
apt install xinit --no-install-recommends | |
apt install htop --no-install-recommends | |
# dbus-x11 required by terminator | |
apt install dbus-x11 terminator --no-install-recommends | |
apt install feh gsimplecal i3status htop volumeicon-alsa arandr curl keychain ttf-dejavu fonts-font-awesome pavucontrol scrot gnome-calculator gnome-disk-utility gdebi j4-dmenu-desktop \ | |
--no-install-recommends |
OlderNewer