Skip to content

Instantly share code, notes, and snippets.

View Jnchi's full-sized avatar
🤖
はじめまして

kawakami Jnchi

🤖
はじめまして
View GitHub Profile
@twilight-sparkle-irl
twilight-sparkle-irl / webcrack.js
Last active February 5, 2024 09:25
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:
@ipcrm
ipcrm / install_puppet.ps1
Created June 7, 2016 15:52
Install Puppet using Powershell
# This script installs the windows puppet agent on windows
# from the master's pe_repo by downloading it to C:\tmp first and then running
# msiexec on it from there.
$puppet_master_server = "master.example.com"
$msi_source = "https://${puppet_master_server}:8140/packages/current/windows-x86_64/puppet-agent-x64.msi"
$msi_dest = "C:\tmp\puppet-agent-x64.msi"
# Start the agent installation process and wait for it to end before continuing.
@forestbaker
forestbaker / closure_pattern
Last active April 18, 2023 18:54
closure in bash ... ?
# closure - defined by Peter Landin in 1964
# closure - a function, plus a pointer to that functions scope
# In programming languages, closures (also lexical closures or function closures) are a technique for
# implementing lexically scoped name binding in languages with first-class functions. Duh.
# Operationally, a closure is a record storing a function[a] together with an environment:[1]
# A mapping associating each free variable of the function (variables that are used locally, but defined in an enclosing scope)
# with the value or storage location to which the name was bound when the closure was created.