Skip to content

Instantly share code, notes, and snippets.


Goscha Graf JustGoscha

Block or report user

Report or block JustGoscha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JustGoscha / index.html
Created Feb 11, 2019
justGoscha #artvsartist
View index.html
<a href="">
<div id="container">
JustGoscha / countcommits.js
Last active Apr 17, 2018
Counting commits in all subfolders per User
View countcommits.js
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) => {
JustGoscha / sh
Created Jul 27, 2016
Creepy fun on Mac terminal
View sh
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' &
JustGoscha / gist:fc19c8585446936cdba4
Last active Aug 29, 2015
NodeJS server configuration best practices
View gist:fc19c8585446936cdba4
#Best practices when running Node.js with port 80 (Ubuntu / Linode):
# Running stuff in background, handling child processes, storing PIDs etc.:
# Git for website management
JustGoscha / webaudioBufferCreation.js
Last active Jun 8, 2018
Dynamically create a WebAudio buffer (with noise) and play it!
View webaudioBufferCreation.js
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;
You can’t perform that action at this time.