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 | |
# 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 |
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
0x1e60b2e238b8D5881AC6e73ae430f73f54bAb3Fe |
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
0x9a775F3C73669881d700cfB059055bA789a1EcB5 |
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
// 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 |