Skip to content

Instantly share code, notes, and snippets.

@uint0
uint0 / docker-compose.yaml
Created January 17, 2024 01:17
Start K8s API Server + etcd only in docker compose
version: '3'
services:
apisrv_init:
# Abuse the nginx image coz it has openssl installed ootb, is trusted, and is probably cached somewhere
# any image with openssl works here
image: nginx
entrypoint: /usr/bin/bash
command:
- -c
@uint0
uint0 / laravel_cookie_tool.py
Created February 6, 2022 12:42
A tool for decoding and encoding laravel cookies from python
@uint0
uint0 / Cargo.toml
Created July 14, 2021 12:39
Rust File Upload
[package]
name = "file-receiver"
version = "0.1.0"
authors = ["uint0 <uint0@zeta-mechanic>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "3"
@uint0
uint0 / bot.py
Created February 25, 2021 00:02
Notify a discord channel when someone logs into a minecraft server. Run it on the same machine as it needs to be able to read logs files
import os
import discord
import asyncio
import event_source
client = discord.Client()
async def activity_messenger_task():
await client.wait_until_ready()
print('Client is ready, activity task will begin running...')
@uint0
uint0 / requirements.txt
Last active February 21, 2021 02:32
A script for generating resource lists for create schematics
NBT==1.5.0
@uint0
uint0 / quiz_to_html.py
Created February 27, 2020 03:21
Creates a html file containing questions from a Udemy Practice Test
"""
Requirements: requests
Usage: python quiz_to_html.py <quiz_id> <access_token>
quiz_id can be found in the url of the practice problem typically after /quiz/
it should be a numeric
access_token is the value of the access_token cookie
Output: A HTML file is outputted to stdout. This can be piped into a file if nessecary.
@uint0
uint0 / README.md
Last active October 24, 2019 23:48
A script for converting yaml Cloudformation templates to a https://github.com/cloudtools/troposphere format

Tropopause

A script for converting yaml Cloudformation templates to a troposphere format.

A simple adaption of the troposphere cfn2py.py script to ingest CFN yaml files.

Outputs the converted file to stdout.

Installation

@uint0
uint0 / keybase.md
Created August 14, 2018 04:33
Keybase Proof

Keybase proof

I hereby claim:

  • I am uint0 on github.
  • I am uint0 (https://keybase.io/uint0) on keybase.
  • I have a public key ASCV1Eo0Olh0rK7sRBhVVYSPx3IE5C11wjNLQoJO6ESICgo

To claim this, I am signing this object: