Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Free and Open Source Bugs (FOSB)

Aaron Esau Arinerron

:shipit:
Free and Open Source Bugs (FOSB)
View GitHub Profile
View final.py
#!/usr/bin/env python3
BOTTLES_PER_MONTH_PER_STUDENT = 156 / 12 # https://www.jerseyislandholidays.com/plastic-bottle-pollution-statistics
BOTTLE_PERCENT_PLASTIC = 0.291 # https://www.epa.gov/facts-and-figures-about-materials-waste-and-recycling/plastics-material-specific-data
BOTTLE_PERCENT_RECYCLED = 0.09 # https://www.greenmatters.com/p/what-percent-recycling-actually-gets-recycled
AVERAGE_PLASTIC_GRAMS_PER_BOTTLE = 19 # https://www.wastecare.com/usefulinfo/PET-Plastic-Water-Soda-Bottles-Bale-Weights.htm
AVERAGE_PLASTIC_GRAMS_PER_ID = 5 # https://www.uscreditcardguide.com/the-most-heavy-credit-cards-list/
while True:
@Arinerron
Arinerron / exploit2.py
Last active Nov 8, 2021
sir-markslot chal from damctf
View exploit2.py
#!/usr/bin/env python3
from pwn import *
print('------ TESTING VAL %d -=------' % int(sys.argv[1]))
while True:
p = remote('chals.damctf.xyz', 31314)
#p = remote('localhost', 9999)
#p = process('./sir-marksalot')
p.recvuntil('What would you like to do?\n')
View .vimrc
set number
set autoindent
set softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set pastetoggle=<F2>
inoremap <S-Tab> <C-d>
@Arinerron
Arinerron / config
Created Jun 18, 2019
important part of i3 config
View config
exec --no-startup-id xautolock -time 60 -locker 'i3lock -d -c 000000'
exec --no-startup-id xmodmap -e 'keycode 135 = Super_R' && xset -r 135
bindsym XF86AudioRaiseVolume exec amixer -q set Master 1%+ unmute
bindsym XF86AudioLowerVolume exec amixer -q set Master 1%- unmute
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioMute exec /usr/bin/mute
View teendevops.txt.asc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
contact information for arinerron on teendevops
discord: @arinerron#5687
slack (teendevops.slack.com): arinerron
xmpp: aaron@k7dxs.net
irc (freenode): arinerron
View GuessingGame.java
import java.util.*; // import everything in util
public class GuessingGame {
public static int min = 0, max = 100; // set min to 0 and max to 100
public static boolean running = true; // set this to false, and next time it loops, it will stop
public static Scanner scanner = null; // this will be initialized by `main`
public static Random rand = new Random(); // this will be used to get a random number later
public static void main(String[] args) {
View database.php
<?php
/* define the database class */
class Database {
public $host = 'localhost';
public $name = '';
public $user = '';
public $pass = '';
private $mysqli;
View .vimrc
set number
set autoindent
set softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
colors koehler
inoremap <S-Tab> <C-d>
View crypto
==QPJJjYxJ0UapGbtJmCVxENWVEdvw2Zu82bn9yL6MHc0RHa
View gist:970a4db0270c2585a1b1b317495a74ad
0,7.003,0,104.99,-4.375,1.237,0,7.003,3.378,1.237,1.237,2.145,2.1415,1.237,2.1415,-.003,3.378,1.237,2.1415,-1.237,-4.375,1.237,-2.1415,1.237,2.1415,1.237,-4.375,1.237,2.1415,2.1415,2.1415,9.1445,4.283,0.0006,2.1415,1.237,2.1415,-.003,0,104.99,3.378,1.237,-4.375,1.237,1.237,2.145,2.1415,2.1415,2.1415,-.003,2.1415,9.1445,9.1445,7.0027,2.1415,-.003,4.283,0.0006,2.1415,1.237,2.1415,-.003,-1.237,-2.1415,-4.375,1.237,1.237,2.145,2.1415,-.003,2.1415,7.0027,2.1415,1.237,-4.375,1.237,2.1415,2.1415,2.1415,9.1445,-7.003,0,2.1415,-1.237,-4.375,1.237,-2.1415,1.237.
2.1415,9.1445,-4.375,1.237,3.378,1.237,-4.375,1.237,4.283,0.0006,4.8615,7.0033,-4.375,1.237,2.1415,7.0027,9.1445,7.0027,2.1415,-.003,4.283,0.0006,4.283,0.0006,2.1415,1.237,0,7.003,4.283,0.0006,4.283,0.0006,2.1415,1.237,2.1415,-.003,-7.003,0,2.1415,-.003,2.1415,2.1415,4.8615,7.0033,0,-7.003,-7.003,0,9.1445,7.0027,2.1415,7.0027,2.1415,-.003,0,7.003,4.283,0.0006,2.1415,-.003,-7.003,0,4.283,0.0006,-4.375,1.237,4.8615,7.0033,0,7.003,2.1415,2.1415,2.1415,2.1415
1.237