Skip to content

Instantly share code, notes, and snippets.

View qguv's full-sized avatar
vibing

Quint Guvernator qguv

vibing
View GitHub Profile
#!/bin/bash
# exit on first fail, die on unset variables, don't glob, pipes fail on first failure
set -euf -o pipefail
cd spb
git pull --force
make
rm -rf html
mkdir html
# spb
# everything redirects to the HTTPS, non-www subdomain
# redirect http(s)://www to https://
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
@qguv
qguv / multibuild.py
Created August 22, 2016 22:48
Build a buncha different versions
#!/usr/bin/env python3
from itertools import zip_longest
from os import chdir, environ, getcwd, makedirs
from pathlib import Path
from subprocess import CalledProcessError, check_call
from sys import argv, exit
def commits_from_file(filename):
with open(filename, 'r') as f:
@qguv
qguv / identity.ipynb
Created June 28, 2016 17:48
Identity on tumblr and reddit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qguv
qguv / config.x86_64
Created May 16, 2016 05:29
turing Kernel Configuration 20160515
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.6.0-rc7 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
#!/bin/bash
TEST_DIR="HW3-TestVectors"
rm_test_files() {
rm -rf \
ciphertext \
plaintext.pdf \
plaintext \
receiver_private_key \
@qguv
qguv / TestKnightPlace.hs
Created April 11, 2015 17:01
Knight Project Tests
module TestKnightPlace where
import Test.Hspec
import Data.Matrix (Matrix, matrix, mapCol, identity, getElem, zero)
import KnightPlace
-- a matrix of full of False with only one cell true
matrixOnly row col = matrix 4 4 (\(i, j) -> i == row && j == col)
-- a matrix of the given dimensions representing a function applied to each
@qguv
qguv / 2015-03-02.ipynb
Last active May 3, 2017 16:15
CMLS Classwork 2015-03-02
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qguv
qguv / electronics_lab05.ipynb
Created February 27, 2015 18:56
Electronics Lab 5, experiment 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.