Skip to content

Instantly share code, notes, and snippets.

View gschick3's full-sized avatar

Galen Schick gschick3

  • Kansas City, MO
View GitHub Profile
@gschick3
gschick3 / rss-feed.opml
Last active August 26, 2025 01:46
Custom Feedolin RSS Feed
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>feedolin</title>
</head>
<body>
<outline text="News" title="News">
<outline type="rss" text="AP News" title="AP News" xmlUrl="https://feedx.net/rss/ap.xml" htmlUrl=""/>
<outline type="rss" text="BBC World News" title="BBC World News" xmlUrl="https://feeds.bbci.co.uk/news/world/rss.xml" htmlUrl=""/>
@gschick3
gschick3 / exploit.c
Last active March 12, 2024 05:59
printf exploit
// Sources:
// https://stackoverflow.com/questions/64042652/is-printf-unsafe-to-use-in-c
// https://cs155.stanford.edu/papers/formatstring-1.2.pdf
#include <stdio.h>
char name[100];
char getPass() {
int value = 'G';
@gschick3
gschick3 / pig-latin.bf
Created February 9, 2024 21:22
BF Pig Latin
, Takes first letter input
> , Takes possible second letter input
[ Loops input until there are no more letters
. > , Reads letter moves on and takes next input
]
<
[ Loops back to beginning
<
]
@gschick3
gschick3 / seasons.cpp
Created January 20, 2024 17:37
Check which season it is, one line only
#include <iostream>
#include <string>
using namespace std;
int main() {
string inputMonth;
int inputDay;
cin >> inputMonth >> inputDay;
@gschick3
gschick3 / kunai-instructions.md
Last active December 14, 2023 21:44
Setting up KUNAI Static Analyzer on Ubuntu
  • Kunai instructions for Ubuntu (does not work with Kali):
    1. Prepare for install
      1. sudo apt update
      2. sudo apt full-upgrade
      3. sudo apt install libstdc++-12-dev
      4. sudo apt install g++
    2. Download KUNAI-static-analyzer
    3. Enter kunai-lib directory
    4. Run the following commands to install Kunai binary into your local libraries:
      1. cmake -B build -S .
@gschick3
gschick3 / find_pairs.rs
Last active March 19, 2024 05:47
O(n) solution to Find Pairs LeetCode
// Given an array of integers, find all unique pairs of two numbers within the array that add up to the target number.
use std::collections::HashMap;
fn main() {
println!("{:?}", find_pairs(vec![2, 7, 11, 15], 9));
println!("{:?}", find_pairs(vec![3, 4, 5, 6, 7], 10));
println!("{:?}", find_pairs(vec![-1, 0, 1, 2, -1, -4], 0));
println!("{:?}", find_pairs(vec![1, 1, 1, 1], 2));
println!("{:?}", find_pairs(vec![0, 0], 0));