I hereby claim:
- I am kukrimate on github.
- I am kukrimate (https://keybase.io/kukrimate) on keybase.
- I have a public key ASDepDqI6kQNj30v7VUTrNJBSaimOPVT2VQmkLj5iH2BUQo
To claim this, I am signing this object:
from Crypto.Util.number import GCD, bytes_to_long, long_to_bytes | |
class CRT: | |
def __init__(self, p, q): | |
self.p_p_inv = p * pow(p,-1,q) | |
self.p_q = p * q | |
def calc(self, a, b): | |
x = a + (b - a) * self.p_p_inv | |
return x % self.p_q |
#include <assert.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* Round to the nearest power of 2 >= to size */ | |
static inline size_t round_pow2(size_t size) | |
{ | |
size_t newsize = 1; |
#!/usr/bin/python3 | |
import sympy | |
from fractions import * | |
from copy import copy | |
def def_vec(n): | |
class vec: | |
def __init__(self, elements): | |
self.elements = [ Fraction(0) for i in range(n) ] |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Create a Windows Vista/7/8/10 USB installer from an ISO under Linux/Unix | |
if [ $UID -gt 0 ]; then | |
echo "You must run this as root" >&2 | |
exit 1 | |
fi | |
if [ "$#" -lt 1 ]; then | |
echo "Usage: create_winusb.sh <iso> [device]" >&2 |
Get-AppxPackage | ForEach-Object { | |
$answer = Read-Host -Prompt "Do you want to remove $($_.Name)?" | |
if ($answer -like "y*") { | |
Remove-AppxPackage -Package $_.PackageFullName | |
} | |
} |
import struct | |
import sys | |
import binascii | |
# ISO9660 block size | |
iso_blocksize = 0x800 | |
# El Torito block | |
torito_block = 0x11 |
#!/bin/bash | |
# This script builds a (hopefully) working gcc based cross compiler | |
# Update to latest stable release | |
BINUTILS_VERSION=2.27 | |
GMP_VERSION=6.1.2 | |
MPFR_VERSION=3.1.5 | |
MPC_VERSION=1.0.3 | |
ISL_VERSION=0.16.1 | |
GCC_VERSION=6.3.0 |
#!/bin/bash | |
# This script builds a (hopefully) working gcc based cross compiler | |
# Update to latest stable release | |
BINUTILS_VERSION=2.27 | |
GMP_VERSION=6.1.2 | |
MPFR_VERSION=3.1.5 | |
MPC_VERSION=1.0.3 | |
ISL_VERSION=0.16.1 | |
GCC_VERSION=6.3.0 |
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
import requests | |
import json | |
import time | |
import datetime | |
def getBusDepartures(stopCode): |