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
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Is Virtual Box's EFI firmware failing to keep data between VM restarts? Have you tried both manual configuration and efibootmgr
to no avail?
Make a file called startup.nsh
containing your kernel boot line, e.g.
vmlinuz-linux root=/dev/sdXY initrd=/initramfs-linux.img
This will use EFISTUB to boot the kernel directly, see https://wiki.archlinux.org/index.php/EFISTUB#Using_UEFI_Shell. This still isn't really causing persisting changes (e.g. config changes via the NVRAM still don't persist) but at least this lets you boot EFI without fiddling with settings all the time.
I hereby claim:
- I am qguv on github.
- I am qguv (https://keybase.io/qguv) on keybase.
- I have a public key whose fingerprint is 65A6 6455 A2A5 CAC8 13E4 93FB FC13 890A 40FE EF7B
To claim this, I am signing this object:
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
#!/bin/bash | |
TEST_DIR="HW3-TestVectors" | |
rm_test_files() { | |
rm -rf \ | |
ciphertext \ | |
plaintext.pdf \ | |
plaintext \ | |
receiver_private_key \ |
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/env python3 | |
'''Created to answer the question: How does bitcoin mining work? Key | |
differences between this method and bitcoin's: | |
- This method doesn't actually store transactions. :-) | |
- This primes the hash function with the previous nonce solution, so solving | |
for the nth iteration necessarily requires a solution for the (n-1) | |
iteration and all iterations before it. Bitcoin primes the hash function | |
with the entire previous block, (which includes its nonce). This method is |
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
# | |
# 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" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/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: |