Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@Ratismal
Ratismal / hasteflake.js
Last active August 7, 2019 22:34
converts a snowflake into a hastebin-like token
const data = [
"12345",
"12346",
"22346",
"21345"
]
const output = [];
const consonants = [
@Melon-Bread
Melon-Bread / NX2OGG.py
Last active November 24, 2018 01:10
A simple python script to convert Nintendo Switch audio files (.lopus) to Vorbis audio files (.ogg)
#!/usr/bin/env python3
"""
Converts .lopus to .ogg via vgmstream & ffmpeg
"""
__author__ = "Melon Bread"
__version__ = "0.5.0"
__license__ = "MIT"
import argparse
@Voronenko
Voronenko / nginx.conf
Created March 9, 2018 13:08
nginx proxy private s3 bucket
worker_processes 1;
daemon off;
error_log /dev/stdout info;
pid /usr/local/var/nginx/nginx.pid;
events {
worker_connections 1024;
}
# Copyright (C) 2012 The CyanogenMod Project
# (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@Ovyerus
Ovyerus / Cursor Flipper.ahk
Last active December 1, 2018 02:33
flip flop that cursor baby
; Constants
MOUSE_SWAP := 0x21
SET_CURSORS := 0x57
KEY_ORDER := ["Arrow","Help","AppStarting","Wait","Crosshair","IBeam","NWPen","No","SizeNS","SizeWE","SizeNWSE","SizeNESW","SizeAll","UpArrow","Hand"]
SCHEME = scheme name
; Generate scheme list
RegRead, SchemeList, HKEY_CURRENT_USER\Control Panel\Cursors\Schemes, % SCHEME,
SchemeList := StrSplit(SchemeList, ",")
@yetanotherchris
yetanotherchris / hastebin-client-csharp.cs
Last active April 18, 2023 06:27
A Hastebin client in C#
void Main()
{
// To run Hastebin in Docker:
// docker run --name pastebin -p 801:80 mkodockx/docker-pastebin
string baseUrl = "http://localhost:801/";
var hasteBinClient = new HasteBinClient(baseUrl);
HasteBinResult result = hasteBinClient.Post("Hello hastebin").Result;
if (result.IsSuccess)
@joegross
joegross / build_local_tmux.sh
Last active August 1, 2019 06:23
Install tmux without root
#!/bin/bash
set -e
TMUX_VERSION=2.2
LIBEVENT_VERSION=2.0.22-stable
NCURSES_VERSION=6.0
mkdir -p $HOME/local
mkdir -p $HOME/src
@mpost
mpost / android-cli.bat
Created July 29, 2016 14:47
Register windows context menu entry to adb install apk from explorer
@ECHO OFF
ECHO Running "adb install -r %1"
adb install -r %1
PAUSE