Skip to content

Instantly share code, notes, and snippets.

View Woovie's full-sized avatar
™️

Jordan Banasik Woovie

™️
View GitHub Profile
@jakefhyde
jakefhyde / aws-external-cloud-provider-healthcheck.sh
Created February 20, 2024 22:43
Validates all Rancher and AWS infrastructure resources required for provisioning an RKE2/K3s cluster using the AWS out-of-tree external cloud-provider
#!/bin/bash
# shellcheck disable=SC2016
set -e
# Validates all Rancher and AWS infrastructure resources required for provisioning an RKE2/K3s cluster using the AWS
# out-of-tree external cloud-provider
display_help() {
@emesare
emesare / leclaimer.js
Last active February 25, 2024 16:16
Danks asset.party slot claimer for s&box. NO LONGER SUPPORTED
// ==UserScript==
// @name Le claimer
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to claim yourself access to a game that doesn't exist (its a hoax)
// @author Dank (Discord: Dank#9470)
// @match https://asset.party/get/developer/preview
// @icon https://www.google.com/s2/favicons?sz=64&domain=asset.party
// @grant none
// ==/UserScript==
@superseb
superseb / rke2-commands.md
Last active May 29, 2024 17:42
RKE2 commands

RKE2 commands

  • Updated on May 29 to accommodate etcd container not having /bin/sh available anymore.

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@david-wm-sanders
david-wm-sanders / pipfreeze
Created September 4, 2017 01:20
Powershell Command to pip freeze properly
.\venv\Scripts\pip freeze | Out-File -Encoding UTF8 requirements.txt
@simonw
simonw / recover_source_code.md
Last active May 30, 2024 00:39
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@subfuzion
subfuzion / curl.md
Last active May 31, 2024 09:45
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@gokulkrishh
gokulkrishh / media-query.css
Last active June 1, 2024 03:01
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@obfusk
obfusk / break.py
Last active May 1, 2024 20:32
python "breakpoint" (more or less equivalent to ruby's binding.pry); for a proper debugger, use https://docs.python.org/3/library/pdb.html
import code; code.interact(local=dict(globals(), **locals()))
@ripter
ripter / gist:4270799
Created December 12, 2012 19:29 — forked from hashmal/gist:874792
Added check for boolean.
-- Print contents of `tbl`, with indentation.
-- `indent` sets the initial level of indentation.
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
elseif type(v) == 'boolean' then