Skip to content

Instantly share code, notes, and snippets.

View erikzrekz's full-sized avatar
🤹
Working

Eriks Reks erikzrekz

🤹
Working
View GitHub Profile
@erikzrekz
erikzrekz / command.sh
Last active December 27, 2017 13:12
Fresh Mac Commands
defaults write com.apple.screencapture location /Users/...
killall SystemUIServer
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
# Log out and log back in to see ^ take effect
@erikzrekz
erikzrekz / websockets.js
Created July 26, 2018 21:09
Polo Websockets
/*
To run:
- npm install ws && npm install autobahn
- node websocket {ws, wss} {v1, v2} {if v2 --> channels}
*/
var protocol = process.argv[2];
var api = process.argv[3];
@erikzrekz
erikzrekz / gist:d1222b9e086b916956e9392dca1c37d0
Last active February 22, 2019 22:52
test-cloudflare-page.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style>
@font-face {
font-family: "proxima-regular";
font-style: normal;
font-weight: normal;