Skip to content

Instantly share code, notes, and snippets.

View luludotdev's full-sized avatar
👌
I may be slow to respond.

Lulu luludotdev

👌
I may be slow to respond.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am luludotdev on github.
  • I am lolpants (https://keybase.io/lolpants) on keybase.
  • I have a public key whose fingerprint is BDC3 9EFA F0EB F756 DC69 A4BE CD10 BCEE C646 C064

To claim this, I am signing this object:

using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using UnityEngine;
namespace ReflectionUtils
{
public static class ReflectionUtil
{
@luludotdev
luludotdev / .eslintrc.js
Created December 19, 2018 10:57
Modern ESLint Rules
module.exports = {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
"node": true
},
"rules": {
@luludotdev
luludotdev / encrypto.js
Last active February 20, 2019 06:11
Simple Node.js File Encryption
const fs = require('fs')
const { createReadStream, createWriteStream } = fs
const { createGzip, createGunzip } = require('zlib')
const { createCipheriv, createDecipheriv, randomBytes, createHash } = require('crypto')
const ENC_ALGO = 'aes-256-cbc'
const IV_LEN = 16
/**
* @param {string} password Key
#! /bin/bash
# GIFsize: generate low res versions of any .gif
# REQUIRES GRAPHICSMAGICK
# Example Usage: ./gifsize input.gif 12 output.gif
gm convert "$1" -coalesce t1.gif
gm convert t1.gif -scale "$2x$2" t2.gif
gm convert t2.gif -scale 288x288 "$3"
rm t1.gif t2.gif
@luludotdev
luludotdev / streamloop.sh
Last active February 28, 2018 19:31
Endlessly stream a looping video to Twitch [WIP]
#!/usr/bin/env bash
# Configure Stream Settings
CBR="2500k"
QUALITY="ultrafast"
SERVER="live-ams"
STREAM_KEY="live_**************"
# Handle CTRL+C and cleanup playlist file
trap cleanup INT