Skip to content

Instantly share code, notes, and snippets.

View battleoverflow's full-sized avatar
:octocat:

BattleOverflow battleoverflow

:octocat:
  • ~
View GitHub Profile
@battleoverflow
battleoverflow / sort.rs
Last active April 19, 2024 04:02
Sorting algorithm written in Rust for the LaurieWired 2023 Halloween Sorting Challenge
use std::io;
/*
Gist: https://gist.github.com/battleoverflow/d93e13f89667951c713ec2d840c96cf2
Author(s): battleoverflow (https://github.com/battleoverflow)
This code is for the LaurieWired 2023 Halloween Sorting Challenge!
Unfortunately, it didn't get featured, but I'll still share it here. Enjoy!
*/
@battleoverflow
battleoverflow / snake.bas
Created September 11, 2023 05:27
Snake game written in BASIC for the Apple II
10 HOME
20 LET S = 1
25 REM CONFIGURE SCREEN INFO
30 LET W = 40: LET H = 24
40 GOSUB 2000
50 DIM X(100): DIM Y(100)
60 X(S) = 20: Y(S) = 12
70 GOSUB 3000
80 FOR N = 1 TO 1000: NEXT N
90 GOTO 70
@battleoverflow
battleoverflow / set_member_public.sh
Last active May 19, 2023 17:10
This bash script sets the authenticated member of an organization as public using the GitHub API
# Currently, GitHub truncates membership searches to around ~50k members under the "People" tab in the UI.
# This can make it difficult to set a membership to public if the organization is larger than this (most notably, EpicGames).
# This bash script sets the authenticated member of an organization as public using the GitHub API.
# Set your account information
ORG=""
USER=""
TOKEN=""
SET_PUBLIC=$(curl -L \
@battleoverflow
battleoverflow / slack_rm.py
Last active March 6, 2023 16:17
Basic CLI script for deleting messages and most recent replies on Slack for a specific channel
import slack_sdk, time, argparse
from slack_sdk.errors import SlackApiError
# Example usage
# python3 slack_rm.py -t "xoxb-xxxx" -c "xxxx" -v
"""
Basic CLI script for deleting messages and most recent replies on Slack for a specific channel.
Requires appropiate bot permissions on the Slack side.
"""
@battleoverflow
battleoverflow / evaluate_hash.py
Created September 29, 2022 16:46
Simple CLI tool for evaluating hashes
# Utilizes the InQuest Labs API: https://labs.inquest.net/docs/?python#api-dfi-search-hash-source
from os.path import exists
import requests, json
class EvaluateHash:
def validate_input():
print("\nAvailable options: md5, sha1, sha256, sha512\n")
@battleoverflow
battleoverflow / scanner.ps1
Created March 23, 2022 19:43
Powershell Port Scanner (one-liner)
foreach ($r in 1..254) { Test-NetConnection -Port $r }