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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / Get-TweetVid.ps1
Created May 17, 2017 20:33
take a twitter m3u8 link and download it properly
# take a twitter m3u8 link and download it properly
function Get-TweetVid {
param( [string]$Uri, [string]$OutDir )
$out_file = (Split-Path $Uri -Leaf).Replace(".m3u8", ".mp4")
$out_path = Join-Path $OutDir $out_file
if( -Not (Test-Path $out_path) ){
mkdir -Path $out_path
}
ffmpeg -i $Uri -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $out_path
}
@EntranceJew
EntranceJew / show_all_scripts.js
Created August 24, 2016 16:21
show_all_scripts.js
(function(document){
var i, scripts = document.getElementsByTagName("script"),
attributes = new Map([
['fontFamily', 'Menlo,Monaco,Consolas,"Courier New",monospace'],
['overflow', 'auto'],
['display', 'block'],
['backgroundColor', '#f5f5f5'],
['border', '1px solid #cccccc'],
['borderRadius', '4px'],
['whiteSpace', 'pre']