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
@EntranceJew
EntranceJew / Delta-Process.ps1
Created May 19, 2017 21:39
figure out what is running that once wasn't
function Delta-Process {
Param(
[Parameter(ValueFromPipeline = $true)]
[System.Diagnostics.Process[]]
$BaseProcesses
)
$PostProcesses = Get-Process
$NewProcesses = @()
$PostProcesses | ForEach-Object {
@EntranceJew
EntranceJew / download-all-emojipedia-images.js
Last active June 16, 2017 15:15
if you're on a page fulla emojis, lazyload them all and this will download them all [will take some time]
// WARNING: this will take some time, chrome might hiccup, you might be prompted in the URL bar to run unsafe scripts
function saveFile(url, filename) {
// Get file name from url.
var xhr = new XMLHttpRequest();
xhr.responseType = 'blob';
xhr.onload = function() {
var a = document.createElement('a');
a.href = window.URL.createObjectURL(xhr.response); // xhr.response is a blob
a.download = filename; // Set the file name.
a.style.display = 'none';
@EntranceJew
EntranceJew / add_icons.js
Last active July 11, 2017 20:54
where are they? what do they look like?
const possibleIcons = [
'twitter-bird',
'mention',
'following',
'message',
'home',
'hashtag',
'reply',
'favorite',
'retweet',
@EntranceJew
EntranceJew / ScreenCap.cs
Created July 12, 2017 14:39
BeeCode/Utils
using UnityEngine;
using System.Collections;
using BeeCode.Extensions;
namespace BeeCode.Utils {
public static class ScreenCap {
public static IEnumerator Deferred( UnityEngine.Events.UnityAction<Texture2D> onCapture ) {
yield return new WaitForEndOfFrame();
Texture2D screenShot = new Texture2D( Screen.width, Screen.height, TextureFormat.RGB24, false );
screenShot.ReadPixels( new Rect( 0, 0, Screen.width, Screen.height ), 0, 0 );
@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

@EntranceJew
EntranceJew / OBSChecker.cs
Created August 5, 2017 00:19
check for that obs
using System.Collections.Generic;
using System.Linq;
using BeeCode.Extensions;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace BBallCode.Engine {
public static class IListBee {
@EntranceJew
EntranceJew / index.md
Created August 26, 2017 22:35 — forked from mathisonian/index.md
requiring npm modules in the browser console

demo gif

The final result: require() any module on npm in your browser console with browserify

This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.

Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5

inspiration

@EntranceJew
EntranceJew / webcrack.js
Last active June 14, 2023 18:22 — forked from twilight-sparkle-irl/webcrack.js
webcrack: mess with webpacked (webpackJsonp) applications
// webcrack, a script that allows you to break webpack.js's sandbox and randomization easily
// made by @NO_BOOT_DEVICE
// 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 / zip2crx.sh
Created September 1, 2017 19:12
bash script to convert a .zip to a chrome .crx w/o building the zip
#!/bin/bash -e
#
# Purpose: Convert a Chromium extension zip into crx format
# Source: https://developer.chrome.com/extensions/crx
if test $# -ne 2; then
echo "Usage: zip2crx.sh <zip file> <pem path>"
exit 1
fi
@EntranceJew
EntranceJew / type_password_in_shitty_program.ahk
Created March 12, 2018 00:48
using autohotkey to get around one-time setup of dumb shit
; note: ~ is the name of my cygwin terminal
WinActivate, ~
WinWaitActive, ~
; even though your password will be interpreted literally
; autohotkey it will still process the entire file for being a valid script before it executes
; so if your password contains % then you need to escape it with ` in order to not make it process it as a variable name
; or if your password contains ` then you may need to escape it with another `
; read more: https://autohotkey.com/docs/commands/Send.htm
SendInput {Raw}YourLiteralPasswordHere