Skip to content

Instantly share code, notes, and snippets.

@co-l
co-l / miracle-morning.sh
Created May 14, 2019 07:33
Miracle Morning in Kubuntu with autocommit on GIT
#!/bin/bash
# miracle-morning.sh: creates a journal per month for the writing part of the miracle morning, and automatically pushed it to git
MONTH=$(date +"%Y-%m")
DAY=$(date +"%Y-%m-%d")
# ~/miracle-morning should be a git repository
kate ~/miracle-morning/journal/$MONTH.md
cd ~/miracle-morning
@co-l
co-l / gist:7f98bb69a860e7816f296dea4eedf470
Created November 30, 2017 11:18
0x1e60b2e238b8D5881AC6e73ae430f73f54bAb3Fe
0x1e60b2e238b8D5881AC6e73ae430f73f54bAb3Fe
0x9a775F3C73669881d700cfB059055bA789a1EcB5
// npm install chai express supertest
var fs = require('fs')
var expect = require('chai').expect
var express = require('express')
var supertest = require('supertest')
describe('file sending', function() {
doTest('image/png') // works
doTest('audio/mpeg') // fails