Skip to content

Instantly share code, notes, and snippets.

View cori's full-sized avatar
🏠
Scruggs!

cori schlegel cori

🏠
Scruggs!
View GitHub Profile
@cori
cori / 1.js
Last active August 29, 2015 14:25 — forked from mxriverlynn/1.js
options.change && options.change();
Verifying that "raincoder.id" is my Blockstack ID. https://onename.com/raincoder
@cori
cori / curl.md
Created April 6, 2018 18:22 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@cori
cori / glitch-init.sh
Last active January 27, 2019 04:42
init file to set up glitch env
#! /bin/bash
# this script adds ~3Mb to your glitch container's /app directory
# `wget https://gist.githubusercontent.com/cori/9a39a672ca8f0297e59436d58ce3393c/raw -O glitch-init.sh`
# `chmod +x glitch-init.sh`
# `./glitch-init.sh`
# `source ~/.bashrc`
# install bash-it
if [ -d ~/.bash_it ]; then
source ~/.bashrc
@cori
cori / settings.json
Created July 11, 2018 13:24
VS Code settings for eslint options blob (specifically disable no-console)
{
"eslint.options": { "rules":{"no-console": 0} }
}
@cori
cori / ddns.conf
Created September 15, 2018 13:53
location of the ddns configuration file on a QNAP TS-253-A
/mnt/HDA_ROOT/.config/ddns.conf
config segment looks like
[iwantmyname]
username = [email protected]
enable = 1
ip4 =
update_url = https://iwantmyname.com/basicauth/ddns?hostname=%HOST%
password = ****
pass_criteria = nochg,good
@cori
cori / webrick_start.sh
Created September 21, 2018 03:17 — forked from gautamk/webrick_start.sh
Start webrick server to serve files in the local directory
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
@cori
cori / echo.rb
Created September 25, 2018 02:38 — forked from dtchepak/echo.rb
Simple Ruby HTTP server to echo whatever GET or POST requests come through. Largely based on https://www.igvita.com/2007/02/13/building-dynamic-webrick-servers-in-ruby/.
# Reference: https://www.igvita.com/2007/02/13/building-dynamic-webrick-servers-in-ruby/
require 'webrick'
class Echo < WEBrick::HTTPServlet::AbstractServlet
def do_GET(request, response)
puts request
response.status = 200
end
def do_POST(request, response)
puts request
@cori
cori / glitch-bookmarklets.js
Created May 17, 2019 19:01
Glitch-y bookmarklets
javascript:let domain = window.prompt('Domain?');window.location = `https://glitch.com/edit/#!/${domain}`
javascript:let domain = window.prompt('Domain?');window.location = `https://glitch.com/~${domain}`;
javascript:let domain = window.prompt('Domain?');window.location = `https://glitch.com/edit/#!/remix/${domain}`
javascript:let domain = window.prompt('Domain?');window.location = `https://glitch.com/edit/console.html?${domain}`
javascript:document.location = 'https://glitch.com/edit/#!/' + document.location.hostname.replace('.glitch.me','');
@cori
cori / jon-roam-daily-template.md
Created April 6, 2020 11:51 — forked from jborichevskiy/jon-roam-daily-template.md
The daily template Jon uses for Roam Research https://roamresearch.com/
  • Weekly Agenda (created on a different day, and embedded with /Block Reference)
  • [[Morning Questions]] [[2/24 -- 3/1/2020]]
    • {{[[slider]]}} How many hours of sleep did I get?
    • [[What's one thing top of mind today?]]
    • [[What's the one thing I need to get done today to make progress?]]
  • Agenda
    • {{[[TODO]]}} 2 hours focused time
    • {{[[TODO]]}} Read 30 minutes #goal-learning #habit
  • Health & self-care
  • {{[[TODO]]}} 30 minutes outside #goal-health #habit