Skip to content

Instantly share code, notes, and snippets.

View streak.css
body {
font-family: 'Avenir Next', system-ui;
}
h1 {
color: #ec3750;
}
img {
animation: spin 10s linear infinite;
View encoding.md

Ideal vp9 encoding:

ffmpeg -i <source> -c:v libvpx-vp9 -pass 1 -b:v 1000K -threads 1 -speed 4 \
  -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 \
  -g 9999 -aq-mode 0 -an -f webm /dev/null


ffmpeg -i <source> -c:v libvpx-vp9 -pass 2 -b:v 1000K -threads 1 -speed 0 \
  -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 25 \
  -g 9999 -aq-mode 0 -c:a libopus -b:a 64k -f webm out.webm
View octopi-share.mb
1. Install samba:
```
// https://www.raspberrypi.org/documentation/remote-access/samba.md
$ sudo apt update -y
$ sudo apt install samba samba-common-bin smbclient cifs-utils -y
```
2. Create folder & backup old files
```
$ cd ~/.octoprint
$ mv uploads uploads.bak && mkdir uploads # optional
View github_usernames.js
last_page = false
usernames = []
function nextPage(lastPage=false) {
newUsernames = Array.from(document.querySelectorAll('.user-list-item>div>div>a')).map(a => a.innerText)
usernames = usernames.concat(newUsernames)
lastPage = document.querySelector('.next_page').className.split(' ').indexOf('disabled') != -1
if(!lastPage) {
setTimeout(() => {
View gist:3b02f7125d9a90f936389c78f3c0846a
"dns.hackclub.com"
"max.hackclub.com"
"admin.hackclub.com"
"wootton.hackclub.com"
"wl.hackclub.com"
"statehigh.hackclub.com"
"ctrl-alt-tec.hackclub.com"
"spp.hackclub.com"
"proxy.hackclub.com"
"ship.hackclub.com"
@maxwofford
maxwofford / nginx.conf
Created Sep 3, 2017 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
View nginx.conf
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
View writeup.md

Here's a few of the click counts on each of the links:

  • 77 on the starting treasure hunt page
  • 22 on the default link
  • 40 on the advanced link

I want to give a quick shout out to @harrison for helping brainstorm and create elements of this hunt. Putting this together took a bunch of work, and I can't say how grateful I am that so many people participated.


View writeup.md

Here's the write up on the first treasure-hunt.

The first clue was announced in #annoucements.

The link redirects to a file on Dropbox.

The file looks corrupted though.

View notif
#!/bin/sh
echo "Hey! This is a notification from The Hack Series." | twilio-sms $1
sleep 1
echo "We're excited to see you at 1PM today at Make School (1547 Mission St, San Francisco, CA 94103)." | twilio-sms $1
sleep 1
echo "We'll be starting sharply at 1PM, so please plan to arrive 5 minutes early. Don't forget to bring a laptop (unless we've individually talked to you about this already)!" | twilio-sms $1
sleep 1
echo "If you have any questions, please don't hesitate to text or call Zach at 310-801-7309. See you soon!" | twilio-sms $1
View notes.org

Hack Camp 2016 session 1 day 6

  • Walk will be in afternoon
  • Feedback will not be in intro talk
  • Task breakdown
    • Selynna
      • Morning energizer
      • Lunch
      • Afternoon walk
    • Max
      • Brainstorming