This file contains 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
#!/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 |
This file contains 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
# 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; |
This file contains 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/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: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# | |
# 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" |
This file contains 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
#!/bin/bash | |
TEST_DIR="HW3-TestVectors" | |
rm_test_files() { | |
rm -rf \ | |
ciphertext \ | |
plaintext.pdf \ | |
plaintext \ | |
receiver_private_key \ |
This file contains 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
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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.