Skip to content

Instantly share code, notes, and snippets.

View therebelrobot's full-sized avatar
A girl made of PLA and caffeine

Aster Haven therebelrobot

A girl made of PLA and caffeine
View GitHub Profile
storage_postgres:
container_name: storage_postgres
image: ubuntu
volumes:
- /var/lib/postgresql/data
command: echo
postgres:
container_name: db_postgres
image: postgres:9.4
{
"level": "info",
"message": "Server listening on port: 3001"
}
{
"level": "error"
}
{
"tags": [
"express",
@therebelrobot
therebelrobot / index.html
Created January 7, 2016 01:58
Github repo test
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body id="github-app">
<div class="row">
<div class="col-sm-3">

Manual Install:

  • SkyFonts
  • 7zX
  • AirDroid
  • Android Studio
  • AnyBar
  • aText
  • Atom
  • Better Window Manager
@therebelrobot
therebelrobot / app.js
Last active December 15, 2015 19:02
Galileo - Express Example
var express = require('express')
var analytics = require('mashape-analytics')
var app = express()
var agent = analytics('SERVICE_TOKEN', {
limits: {
bodySize: 1000000 // in bytes, default 0b, 1000000 = 1M
}
})
firstPromise().then(function(resultsArray){
var promiseArray = []
_.forEach(resultsArray, function(result){
promiseArray.push(new Promise(function(resolve, reject){
// do async call using result
resolve(asyncResults)
}))
})
return Promise.all(promiseArray)
}).then(function(asyncResultsArray){
@therebelrobot
therebelrobot / nightmare-test.js
Created October 19, 2015 20:47
Nightmare test
var expect = require('chai').expect
require('mocha-generators').install()
require('dotenv').load()
var Nightmare = require('nightmare')
/* Definitions for JS Standard */
/* global beforeEach, afterEach, describe, it */
describe('Reports page', function () {
@therebelrobot
therebelrobot / force-download.js
Created August 21, 2015 20:06
Force file download, Express
var temp = require('temp').track();
temp.open({suffix: ‘.csv'}, function (err, info) {
if (!err) {
fs.write(info.fd, csvdata);
fs.close(info.fd, function (err) {
res.download(info.path, ‘filename.csv');
});
}
});
@therebelrobot
therebelrobot / Reformat Badge SD card
Created May 9, 2015 16:41
OpenWest Extended badge
sudo diskutil eraseDisk MS-DOS BADGE MBRFormat /dev/disk2

Install Java, Cassandra & Kong on Ubuntu 14.04

$ sudo su
# curl -L http://git.io/vUvmI | sh
# sudo kong start && exit
wget -O kong.sh http://git.io/vJABW