Skip to content

Instantly share code, notes, and snippets.

View HarryZ10's full-sized avatar
👋
Just code fever..

Harry HarryZ10

👋
Just code fever..
View GitHub Profile
@HarryZ10
HarryZ10 / ap test.js
Created February 26, 2018 17:43
Guess-that-song game! via Studio.code.org
/* THIS PPOGRAM IS MADE FOR THE AP EXAM!
THIS GAME IS CALLED "Guess-that-song!" challenge!! GL;HF!!! */
/* VARIABLES for OTHER related things */
var playerScore = 0;
var moreTimeCount = 0;
var guessUserInput = getText("guessingInput");
/* VARIABLES for DIFFICULTY MODE related things */
@HarryZ10
HarryZ10 / TempConv.cpp
Last active March 18, 2022 04:00
CSIS 312: Lab 3
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
// Implement Temperature conversion from Celsius to Fahrenheit and Fahrenheit to Celsius
int main(int argc, char const *argv[])
@HarryZ10
HarryZ10 / corgi.js
Created August 11, 2022 17:30
Flappy Corgi (Flappy Bird Parody)
// EA Spawnpoint 2019
//"Corgi" demo
// Mechanic:
// Click anywhere on the screen for the dog to move to find its way into the doghouse
//dog
var speedX = 0;
var speedY = 0;
var positionX;
@HarryZ10
HarryZ10 / nclresources.md
Created October 19, 2022 22:00 — forked from TBye101/nclresources.md
NCL Resources and Tips

NCL Resources

Problem Area Resource/Tool Notes
OSINT Hack Control Has links to a scary amount of information gathering tools.
OSINT NCL Twitter/Cyber Kat's Website and Cyber Kat's Twitter In the past hints and even required parts of challenges have been found here
OSINT Sherlock Useful for finding online/social accounts
OSINT QRazyBox Good QR code reconstruction tool
Cryptography CyberChef Good general purpose cyber tool
Cryptography Cryptii Site with various cipher operations
@HarryZ10
HarryZ10 / code.gs
Created March 3, 2024 02:45
Gmail Parser
function pullEmailData() {
// Get the current spreadsheet
var ss = SpreadsheetApp.getActiveSheet();
// Array of labels to iterate through
var labels = ["B---University/Open Job Applications"];
for (var i = 0; i < labels.length; i++) {
var label = GmailApp.getUserLabelByName(labels[i]);
import sympy
def rsa_decrypt(ciphertext, d, n):
"""
Decrypts the RSA ciphertext using the private key (d, n).
Parameters:
- ciphertext (list): The ciphertext as a list of integers.
- d (int): The private exponent.
- n (int): The modulus.
import os
from pyzbar.pyzbar import decode
from PIL import Image
def decode_qrcodes(directory_path="./png", output_file="output.txt"):
concatenated_data, max_data_length = '', 0
# Get all PNG files in the directory and sort them
sorted_files = sorted(
print(''.join(chr(n ^ 129) for n in [210, 202, 216, 172, 198, 196, 204, 210, 172, 184, 180, 177, 177]))
import jwt
import datetime
payload = {
"username": "administrator",
"iat": datetime.datetime.utcnow(),
"exp": datetime.datetime.utcnow() + datetime.timedelta(minutes=5),
"iss": "cityinthe.cloud"
}