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 | |
""" | |
This script reads from "urls.txt", which is assumed to be the list of | |
firetowers from http://nhlr.org/. | |
From there, it parses all of the webpages, and builds up a "firetowers.kml" file, | |
which contains the points from the urls found. | |
Estimated runtime: 15 to 30 minutes, depending on the time slept. |
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
services: | |
ctfd: | |
image: ctfd/ctfd | |
ports: | |
- "4500:8000" | |
environment: | |
- UPLOAD_FOLDER=/var/uploads | |
- LOG_FOLDER=/var/log/CTFd | |
- DATABASE_URL=sqlite:///ctfd.db | |
- WORKERS=1 |
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
<?php | |
namespace App\Models\Labels\Tapes\Brother; | |
class TZe_12mm_A extends TZe_12mm | |
{ | |
// this file lives at /var/www/html/snipeit/app/Models/Labels/Tapes/Brother/TZe_12mm_A.php | |
private const BARCODE_SIZE = 5.00; | |
private const BARCODE_MARGIN = 0.60; | |
private const TEXT_SIZE_MOD = 1.00; |
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 pwn import * | |
realpath = "/home/sarge/Documents/bcctf/challenge/calling_convention" | |
elf = ELF(realpath) | |
# create a ropchain | |
rop = ROP(elf) |
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 | |
# These are all of the things that I install on Fedora linux. | |
set -e # exit on first error | |
sudo dnf update --refresh | |
# install chrome | |
sudo dnf install fedora-workstation-repositories |
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 | |
set -e | |
# this script: | |
# 1. downloads downloads drivers for USB to UART (requires GUI input) | |
# 2. installs Xcode command line tools with homebrew | |
# 3. installs Arduino IDE and adds it to the dock | |
# 4. downloads Arduino CLI | |
# 5. adds board support for ESP32s | |
# |
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 | |
set -e | |
# contains no hidden info, fyi | |
YOUR_ONEDRIVE_SHARE_LINK="https://mymailnku-my.sharepoint.com/:u:/g/personal/sargentz1_mymail_nku_edu/EVMxZ0hCDfZMnKpeqHpVpZQB-utsXsOBxYgVWtQuhyLUig?e=hPj1Zq&download=1" | |
install_path="/tmp/install_pygoat" | |
mkdir -p "$install_path" | |
cd "$install_path" |
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
# A quick hacky function to see the other ActiveRecord objects necessary to create an ActiveRecord object. | |
# There might be a better way to do this natively. | |
# these are both one line so they can be quickly found with Ctrl+R | |
def _needs(obj) = (if obj.nil? then return obj end; props = obj.class.columns.map(&:name).filter{_1.ends_with?("_id") && _1 != "reference_id"}.map{_1.gsub('_id', '')}; if props.nil? || props.size == 0 then return obj else return [obj, props.map{_needs(obj.send(_1.to_sym))}.reject{_1.nil?}].compact end) | |
def needs(obj) = _needs(obj).flatten.map(&:class).map(&:name).uniq | |
# Usage: | |
needs User.last # => ["User", "AccountType", "WhateverOtherClass", ...] |
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/ruby | |
# This script backs up the save data for the game N++. | |
# It is only tested on Fedora Workstation 36. | |
# | |
# There is a rare bug in the game where save data gets corrupted, | |
# but the game is so long that many people still encounter it. | |
# | |
# I recommend running this script on a regular interval with cron. | |
# |
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/sh | |
echo "running playit with the config file under './playit_config/config.txt'" | |
playit --config-file ./playit_config/config.txt |
NewerOlder