Skip to content

Instantly share code, notes, and snippets.

View kotx's full-sized avatar

Kot C kotx

View GitHub Profile
import random
def generate(length):
try:
get_char = unichr
except NameError:
get_char = chr
# Update this to include code point ranges to be sampled
include_ranges = [
(0x30, 0x39), # numbers
@kotx
kotx / README.md
Last active June 14, 2018 01:28
NSelenium - An automated script for nationstates challenges

NSelenium is a selenium script in python for nationstates challenges. It automates the challenges, provided that you login first.

This was made in an hour or two, so you'll most likely experience bugs. If you find any, feel free to make a comment!

This script supports matchmaker, random world and region. Simply change

btn = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.NAME, "matchmaker")))

to

This file has been truncated, but you can view the full file.
0000;<control>;Cc;0;BN;;;;;N;NULL;;;;
0001;<control>;Cc;0;BN;;;;;N;START OF HEADING;;;;
0002;<control>;Cc;0;BN;;;;;N;START OF TEXT;;;;
0003;<control>;Cc;0;BN;;;;;N;END OF TEXT;;;;
0004;<control>;Cc;0;BN;;;;;N;END OF TRANSMISSION;;;;
0005;<control>;Cc;0;BN;;;;;N;ENQUIRY;;;;
0006;<control>;Cc;0;BN;;;;;N;ACKNOWLEDGE;;;;
0007;<control>;Cc;0;BN;;;;;N;BELL;;;;
0008;<control>;Cc;0;BN;;;;;N;BACKSPACE;;;;
0009;<control>;Cc;0;S;;;;;N;CHARACTER TABULATION;;;;
@kotx
kotx / README.md
Last active November 21, 2022 23:00
CyberChef recipe for Cloudflare's "email protection"

CyberChef Link

All this does is extract the string (e.g. 0a676f6d7f6763644a676f6d7f246e6f7c) and XOR's the remainder by the first byte (0a).

@kotx
kotx / SimpleFade.cs
Created June 29, 2020 16:57
Simple CanvasRenderer fade script for Unity
using UnityEngine;
namespace Kano.Unity
{
public class SimpleFade : MonoBehaviour
{
public EaseMode Mode;
[Min(0.1f)]
public float FadeDuration = 1;
@kotx
kotx / KeyBind.java
Last active December 11, 2022 22:21
Dumb Fabric keybind thing.
package moe.whip.pilot.keys;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.options.KeyBinding;
@Environment(EnvType.CLIENT)
public class KeyBind extends KeyBindBase {
private KeyBinding keyBinding;
private boolean pressed;
@kotx
kotx / TranslatableEnum.java
Last active July 26, 2020 21:59
Once again I have done something dumb
@Environment(EnvType.CLIENT)
public enum TranslatableEnum {
ONE("enum.modid.translatable.one");
TWO("enum.modid.translatable.two");
private final String key;
TranslatableEnum(final String key) {
this.key = key;
}
/// <summary>
/// Rewrite URL API version segment if it exists
/// </summary>
public class UrlSegmentApiVersionStripMiddleware {
private static readonly string DEFAULT_API_VERSION_PREFIX = "v";
private readonly string _apiVersionVersion;
private readonly RequestDelegate _next;

Keybase proof

I hereby claim:

  • I am kotx on github.
  • I am kot (https://keybase.io/kot) on keybase.
  • I have a public key ASCVWwA66l0eCtzkpPuo26hDy0_LtjXUERIEG6DYcigjrQo

To claim this, I am signing this object:

bookmark this

javascript:(function() {navigator.clipboard.readText().then(x => navigator.clipboard.writeText(atob(x)))}());