This file contains hidden or 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
| require('dotenv').config() | |
| const http = require('http') | |
| const express = require('express') | |
| const app = express() | |
| // Routes | |
| app.get('/', function (req, res, next) { | |
| console.log('got request') | |
| setTimeout(function timeoutDone () { |
This file contains hidden or 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
| Vim Colorschemes archive (ones I like) | |
| 'NLKNguyen/papercolor-theme' | |
| 'chriskempson/vim-tomorrow-theme' | |
| 'cormacrelf/vim-colors-github' | |
| 'jeffkreeftmeijer/vim-dim' | |
| 'jnurmine/Zenburn' | |
| 'lsdr/monokai' | |
| 'morhetz/gruvbox' | |
| 'nanotech/jellybeans.vim' |
This file contains hidden or 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/sh | |
| find . -name node_modules -prune -or -name package-lock.json -exec sed --in-place=.backup --separate 's|http://|https://|g' {} + |
This file contains hidden or 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
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif | |
| exec "source " . expand('<sfile>:p:h') . "/default-light.vim" | |
| let colors_name = "dim" |
This file contains hidden or 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
| <html> | |
| <body> | |
| hello | |
| </body> | |
| </html> |
This file contains hidden or 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
| " capture the current interface style | |
| let g:apple_interface_style=system("defaults read -g AppleInterfaceStyle") | |
| " run code based on the current interface style | |
| if g:apple_interface_style ==? "dark\n" | |
| set bg=dark | |
| elseif g:apple_interface_style ==? "light\n" | |
| set bg=light | |
| endif |
This file contains hidden or 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
| ffmpeg -f avfoundation -r 23.999981 -s "1280x720" -i "0" out2.mp4 |
This file contains hidden or 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
| find . -type f -iname '*.mp3' -exec ffmpeg -i {} ffout/{}.mp4 \; |
This file contains hidden or 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 { readFileSync } = require('fs'); | |
| function loadAsJson (path) { | |
| return JSON.parse(readFileSync(path)); | |
| } | |
| module.exports = loadAsJson; |
This file contains hidden or 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 fs = require('fs') | |
| const url = require('url') | |
| const querystring = require('querystring') | |
| const http = require('http') | |
| const rcLocation = process.env.STREAMRC_PATH | |
| if (!rcLocation) { | |
| console.error('no STREAMRC_PATH, exiting') | |
| process.exit(1) | |
| } |