Skip to content

Instantly share code, notes, and snippets.

View math280h's full-sized avatar
:shipit:
I code.... I think...

Mathias V. Nielsen math280h

:shipit:
I code.... I think...
View GitHub Profile
@math280h
math280h / more-ore.py
Last active June 13, 2022 01:41
More Ore weak spot auto-finder/clicker (https://syns.studio/more-ore/)
import cv2
import numpy as np
import pyautogui
import time
import keyboard
print("Started.... Waiting to take screenshot")
time.sleep(5)
while True:
@math280h
math280h / delete_iam_user.sh
Created February 7, 2022 17:56 — forked from kgmoore431/delete_iam_user.sh
Delete an IAM user with AWS CLI
#!/bin/bash
profile="$1"
user_name="$2"
echo "Removing user: ${user_name}"
echo "Deleting Access Keys:"
keys=("$(aws iam list-access-keys --user-name "${user_name}" --profile "${profile}" | jq -r '.AccessKeyMetadata[] | .AccessKeyId')")
if [[ "${#keys}" -gt "0" ]]; then
@math280h
math280h / dynamic-secret-names.yaml
Last active July 4, 2024 09:41
Dynamic Secrets in Github Workflows
name: Build
on:
push:
branches:
- main
jobs:
prepare:
runs-on: ubuntu-latest
steps:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@math280h
math280h / create_country_code_csv.py
Last active August 16, 2020 00:45
Create Country Phone Code CSV
import requests
import json
import csv
# Gather Codes & Names
print("Gathering Data")
country_codes = requests.get("http://country.io/phone.json")
country_names = requests.get("http://country.io/names.json")
country_iso = requests.get("http://country.io/iso3.json")