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
server { | |
listen 443 default_server ssl http2; | |
// server_name if you need it | |
// don't forget your SSL configuration | |
location ~ ^/([^/]+)/ { | |
resolver 127.0.0.11; | |
proxy_pass http://$1/; | |
} |
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
// | |
// I just found out that we have a bunch of NSFW emoji in our bulk-imported set of >4000 emoji. | |
// Rather than weed them out, I want to start with a blank slate. This code does that. | |
// | |
// Navigate to your "Custom Emoji" page, the one with all the delete buttons. | |
// Delete one of them and acknowledge that it's going away forever. | |
// Then open the JavaScript console and paste this in. | |
// | |
// At some point your JavaScript console will start spewing errors. | |
// Reload the Emoji page, delete one emoji by hand again, and paste this in again to resume. |
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
# while await-change *.c; do make && ./run; done | |
await_change () { | |
ts=/tmp/await-change.$$ | |
: >$ts | |
while sleep 0.3; do | |
for fn in "$@"; do | |
if [ $fn -nt $ts ]; then | |
rm -f $ts | |
return |
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
FROM alpine | |
RUN apk --no-cache add tmux sudo vim less | |
RUN echo 'ALL ALL=NOPASSWD: ALL' | tee /etc/sudoers.d/house-is-a-rockin | |
WORKDIR /usr/local/src | |
RUN apk --no-cache add build-base git | |
RUN git clone https://github.com/dirtbags/fluffy | |
RUN make -C fluffy install DESTDIR=/usr/local |
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
<!DOCTYPE html> | |
<!-- Crummy DJ software in pure JavaScript --> | |
<!-- I wrote in on Chrome using Mozilla documentation, so in theory it'll work on either. --> | |
<!-- 2017 Neale Pickett --> | |
<!-- Placed in the Public Domain --> | |
<html> | |
<head> | |
<script> | |
function loadFile(deck, e) { | |
// Having the user select the file is how you get local files without upsetting CORS. |
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
foreground=yes | |
debug=7 | |
pid= | |
[slashnet] | |
client = yes | |
accept = 38697 | |
connect = us.slashnet.org:6697 |
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
;;; rcirc.el --- default, simple IRC client. | |
;; Copyright (C) 2005-2014 Free Software Foundation, Inc. | |
;; Author: Ryan Yeske <[email protected]> | |
;; Maintainers: Ryan Yeske <[email protected]>, | |
;; Deniz Dogan <[email protected]> | |
;; Keywords: comm | |
;; This file is part of GNU Emacs. |
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
[slashnet] | |
client = yes | |
accept = 58697 | |
connect = us.slashnet.org:6697 |
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
;; | |
;; ssh | |
;; | |
(require 'comint) | |
(require 'shell) | |
(defgroup ssh nil | |
"Secure shell interface" | |
:group 'processes | |
:group 'unix) |
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
#! /usr/bin/python | |
import smbus | |
import time | |
import random | |
bus = smbus.SMBus(1) | |
address = 0x71 | |
chars = " \"'(),-01234567890ABCDEFGHIJLNOPQRSTUY_`cehiou" |