Skip to content

Instantly share code, notes, and snippets.

View EntranceJew's full-sized avatar

EntranceJew EntranceJew

  • ejew.in, llc
  • Saint Petersburg, Florida
View GitHub Profile
@TooTallNate
TooTallNate / agent.js
Last active October 21, 2024 05:02
Node.js `http.Agent` class implementations...
/**
* Module dependencies.
*/
var net = require('net');
var inherits = require('util').inherits;
var EventEmitter = require('events').EventEmitter;
/**
@echo off
setlocal enableextensions enabledelayedexpansion
set pwd=%~dp0
:: Check if folder exists
if exist "C:\Program Files\7-Zip\7z.exe" (
echo."7z.exe was found in C:\Program Files\7-Zip\"
set zip="C:\Program Files\7-Zip"
) else if exist "C:\Program Files (x86)\7-Zip\7z.exe" (
echo."7z.exe was found in C:\Program Files (x86)\7-Zip\"
set zip="C:\Program Files (x86)\7-Zip"
@protrolium
protrolium / ffmpeg.md
Last active November 12, 2024 21:27
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@exelotl
exelotl / pootis.lua
Created August 27, 2015 19:32
is there a proper name for this?
function pootis(f, ...)
local t = {}
for i,v in ipairs({...}) do
t[i] = f(v)
end
return unpack(t)
end
-- example usage
-- > pootis(math.floor, 1.1, 2.2, 3.3, 4.4)
@thenoseman
thenoseman / openssl pkcs8 -topk8 -nocrypt -in privkey.pem -out privkey2.pem 76
Created October 1, 2015 09:07
generate a valid pem file for chrome extension packing
openssl genrsa -out privkey.pem 768
openssl pkcs8 -topk8 -nocrypt -in privkey.pem -out privkey2.pem
@josefnpat
josefnpat / .gitignore
Last active October 20, 2015 17:41
MLGUI - Minimal Love Graphical User Interface
*.swp
@t0chas
t0chas / CustomEditorBase.cs
Last active September 2, 2024 06:54
Default Custom Inspector-Editor for Unity3D with ReorderableLists for arrays handling
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
using System.Collections.Generic;
using UnityEditor.AnimatedValues;
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)]
[CanEditMultipleObjects]
public class CustomEditorBase : Editor
{
@MightyPork
MightyPork / usb_hid_keys.h
Last active November 12, 2024 03:32
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@twilight-sparkle-irl
twilight-sparkle-irl / webcrack.js
Last active September 19, 2024 14:29
webcrack: mess with webpacked (webpackJsonp) applications
// webcrack, a script that allows you to break webpack.js's sandbox and randomization easily
// made by @yourcompanionAI
// licensed under the trust that you will credit me for my work visibly and other than that you can go have fun with this
// window.wc is the webcrack object
// wc.get gives you the module attached to the id you give it.
// literally just what webpack functions use. not much to it
// this is the basic part of all this, everything else is just to allow you to updateproof your code
// both find functions return modules in this format:
@EntranceJew
EntranceJew / acme_php_upgrade_dummies.md
Last active September 23, 2020 07:10
for when you're really screwed

ACME PHP Upgrade Dummies

for when you have old, bad php code that you need to move forward in versions / migrate