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
@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 June 15, 2024 01:28
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 March 5, 2024 16:47
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 June 5, 2024 18:59
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 June 4, 2024 20:52
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

@matthewzring
matthewzring / markdown-text-101.md
Last active June 17, 2024 02:14
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers: