Skip to content

Instantly share code, notes, and snippets.

View iterm-profile.json
{
"Working Directory" : "\/Users\/montag",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 1,
"Red Component" : 1,
"Blue Component" : 1
},
"Rows" : 25,
"Ansi 11 Color" : {
View .bashrc
# Extended history
export HISTFILESIZE=90000
export HISTSIZE=90000
export PROMPT_COMMAND='history -a'
# Don't log duplicates, and ignore commands that start with a space
export HISTCONTROL=erasedupes:ignorespace
# Show a timestamp
export HISTTIMEFORMAT='%Y-%m-%d %H:%M '
View .bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
if [ -f ~/.profile ]; then
source ~/.profile
fi
# Bash completion - March 30, 2018
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
@mmontag
mmontag / nes_noise_voice.cpp
Last active Mar 15, 2020
NES noise channel
View nes_noise_voice.cpp
class NoiseVoice {
// Invariant stuff
static const int fs = 44100; // sample rate
static const int ntsc = 3579545; // ntsc clock rate
static const int buffer[32767]; // fill randomly with 0s and 1s
static const int periods[] = { 4068, 2034, 1016, 762, ... }; // from nesdev wiki
int loop = 93; // or 32767 :)
float timestep; // can be a fraction less than 1
View Simple nodejs service on linode.md
#!/usr/bin/env node
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
View hello.md

hello there

{
  "foo": <bar>
}
View open6.html
<!DOCTYPE html>
<html lang="en" class="no-css3-filters no-focus-outline">
<head>
<meta charset="utf-8">
<title>Green Albums on Spotify
</title>
<meta name="google" value="notranslate">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-itunes-app" content="app-id=324684580, app-argument=https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU, affiliate-data=ct=Open&pt=54907">
<meta property="og:site_name" content="Spotify">
View open2.html
<!DOCTYPE html><html lang="en" class="no-css3-filters no-focus-outline"><head><meta charset="utf-8"><title>Green Albums on Spotify</title><meta name="google" value="notranslate"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="apple-itunes-app" content="app-id=324684580, app-argument=https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU, affiliate-data=ct=Open&pt=54907"><meta property="og:site_name" content="Spotify"><meta property="fb:app_id" content="134519659678"><meta property="description" content="x"><meta property="og:title" content="Green Albums, a playlist by Matt Montag on Spotify"><meta property="og:description" content="x"><meta property="og:url" content="https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU"><meta property="og:image" content="http://mosaic.scdn.co/640/79035af1d049e3ff86c9e29151c93c5370542ab317b0de92c9c7a86bc8de3112a5a6d91b4ced03cdbd2e4db75439df5c551d991bedcaf442091289cf7aca2ad7a480daafc9a4beb7cb2d6b
View -
<!DOCTYPE html><html lang="en" class="no-css3-filters no-focus-outline"><head><meta charset="utf-8"><title>Green Albums on Spotify</title><meta name="google" value="notranslate"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="apple-itunes-app" content="app-id=324684580, app-argument=https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU, affiliate-data=ct=Open&pt=54907"><meta property="og:site_name" content="Spotify"><meta property="fb:app_id" content="134519659678"><meta property="description" content="x"><meta property="og:title" content="Green Albums, a playlist by Matt Montag on Spotify"><meta property="og:description" content="x"><meta property="og:url" content="https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU"><meta property="og:image" content="http://mosaic.scdn.co/640/79035af1d049e3ff86c9e29151c93c5370542ab317b0de92c9c7a86bc8de3112a5a6d91b4ced03cdbd2e4db75439df5c551d991bedcaf442091289cf7aca2ad7a480daafc9a4beb7cb2d6b
View gist:10501742
### Keybase proof
I hereby claim:
* I am mmontag on github.
* I am montag (https://keybase.io/montag) on keybase.
* I have a public key whose fingerprint is 6AC8 D90D 9AA2 D878 9162 B1CB 80CC 03AC 1832 AD4D
To claim this, I am signing this object:
You can’t perform that action at this time.