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
<header> | |
#ArtVsArtist | |
<h1> | |
<a href="https://twitter.com/justgoscha"> | |
justGoscha | |
</a> | |
</h1> | |
</header> | |
<div id="container"> |
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 util = require('util') | |
const path = require('path') | |
const fs = require('fs') | |
const fsStat = util.promisify(fs.stat) | |
const exec = util.promisify(require('child_process').exec); | |
fs.readdir('.', async (err, files) => { |
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
nohup /bin/bash -c 'WORDS=("please help me" "i am so alone" "i am lonely" "pssssst" "hello" "hey, listen."); while [ 1 = 1 ]; do say "${WORDS[$[ $[ RANDOM % ${#WORDS[@]} ]]]}" -v Whisper -r 1.5; sleep 3; done' & |
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
#Best practices when running Node.js with port 80 (Ubuntu / Linode): | |
http://stackoverflow.com/questions/16573668/best-practices-when-running-node-js-with-port-80-ubuntu-linode | |
# Running stuff in background, handling child processes, storing PIDs etc.: | |
http://mywiki.wooledge.org/ProcessManagement#How_do_I_kill_a_process_by_name.3F__I_need_to_get_the_PID_out_of_ps_aux_.7C_grep_.... | |
# Git for website management | |
http://toroid.org/ams/git-website-howto | |
http://programmers.stackexchange.com/questions/210851/how-to-make-a-git-push-update-files-on-your-web-host | |
http://stackoverflow.com/questions/883878/update-website-with-a-single-command-git-push-instead-of-ftp-drag-and-dropping |
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 AudioContext = AudioContext || webkitAudioContext || mozAudioContext; | |
var context = new AudioContext(); | |
var node = context.createBufferSource() | |
, buffer = context.createBuffer(1, 4096, context.sampleRate) | |
, data = buffer.getChannelData(0); | |
for (var i = 0; i < 4096; i++) { | |
data[i] = Math.random(); | |
} | |
node.buffer = buffer; |