Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blurbdust on github.
  • I am blurbdust (https://keybase.io/blurbdust) on keybase.
  • I have a public key whose fingerprint is 8260 87AF 5C66 53F0 BAAC A1C5 E4CE 747D EA55 8A13

To claim this, I am signing this object:

use std::env;
fn main() -> std::io::Result<()>{
let together = "Good morning ".to_owned();
print!("{}", together);
match env::var("USER") {
Ok(val) => print!("{}", val),
Err(e) => print!("err: {}", e),
@blurbdust
blurbdust / main.py
Last active February 11, 2019 23:20
CPRE.331 Lab3 Part 1
#!/usr/bin/env python3
import subprocess
rotors = [['VZBRGITYUPSDNHLXAWMJQOFECK'],
['AJDKSIRUXBLHWTMCQGZNPYFVOE'],
['ESOVPZJAYQUIRHXLNFTGKDCMWB']]
original_rotors = rotors
charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@blurbdust
blurbdust / main.py
Last active February 11, 2019 23:21
CPRE.331 Lab 3 Part 2
#!/usr/bin/env python3
class Salsa:
def __init__(self,r):
assert r >= 0
self._r = r # number of rounds
self._mask = 0xffffffff # 32-bit mask
def __call__(self,key=[0]*32,nonce=[0]*8,block_counter=[0]*8):
#print(len(key))
assert len(key) == 32
@blurbdust
blurbdust / main.py
Created February 13, 2019 18:40
CPRE.331.Lab4.Part1
#-*- coding: utf8 -*-
#!/usr/bin/env python3
#Initial permute matrix for the datas
PI = [58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
@blurbdust
blurbdust / test.js
Last active February 15, 2019 22:13
test
document.write("gist blurbdust");
@blurbdust
blurbdust / main.py
Created February 20, 2019 18:29
CPRE.331.Lab5.Part2
from secretsharing import PlaintextToHexSecretSharer
def recover_flag(msgs):
print(PlaintextToHexSecretSharer.recover_secret(msgs))
def print_results():
msgs = []
recover_flag(msgs[::4])
recover_flag(msgs[1::4])
recover_flag(msgs[2::4])
@blurbdust
blurbdust / setup.rtl8812au.sh
Last active March 29, 2019 02:05
CPRE 231 Lab 9 Driver Script
#!/bin/bash
apt-get update
apt-get install -y bc build-essential git cmake dkms linux-image-4.19.0-kali4-amd64 linux-headers-4.19.0-kali4-amd64
git clone https://github.com/blurbdust/rtl8812au
cd rtl8812au
./dkms-remove.sh
./dkms-install.sh
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
804341497441255424
3240985277
491532627
4556567547
4815201574
55217069
1027567260012097537
256491073
17173775
33861425
@blurbdust
blurbdust / PKGBUILD
Created April 26, 2019 00:37
Apache Flink PKGBUILD modified from current AUR
# Maintainer: Tao Meng ("mtunique") <oatgnem [at] gmail.com>
pkgname=apache-flink
pkgver=1.8.0
pkgrel=2
pkgdesc="Apache Flink is an open source platform for distributed stream and batch data processing"
arch=("i686" "x86_64")
url="http://flink.apache.org"
license=("APACHE")
depends=('java-environment>=7' 'openssh')