Skip to content

Instantly share code, notes, and snippets.

View Saturate's full-sized avatar
🛠️
Building Stuff

Allan Kimmer Jensen Saturate

🛠️
Building Stuff
View GitHub Profile
C:\Users\USER\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:129
 gulpInst.start.apply(gulpInst, toRun);
 ^
TypeError: Cannot read property ‘apply’ of undefined
 at C:\Users\USER\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:129:19
 at _combinedTickCallback (internal/process/next_tick.js:95:7)
 at process._tickCallback (internal/process/next_tick.js:161:9)
 at Function.Module.runMain (module.js:607:11)
 at startup (bootstrap_node.js:158:16)
 at bootstrap_node.js:575:3
@Saturate
Saturate / gulp-to-gulp4-codemod.js
Created June 29, 2017 10:01
Convert Gulp 3 to Gulp 4 with a codemod
// Use https://astexplorer.net/
export default function transformer(file, api) {
const j = api.jscodeshift;
const root = j(file.source);
const gulpTaskCalls = root.find(j.CallExpression, {
callee: {
object: {
name: 'gulp'
@Saturate
Saturate / ClearCloudFlareCache.ps1
Created April 12, 2017 09:16
PowerShell Clear CloudFlare Cache
$AUTH_USER = ''
$AUTH_TOKEN = ''
$ZONE_KEY = ''
$Headers = @{
'X-Auth-Key'=$AUTH_TOKEN;
'X-Auth-Email'=$AUTH_USER;
'Content-Type'='application/json'
}
$Body = @{
debug: $env:GIT_TRACE = 1
(powershell)
[alias]
cpr = !git fetch origin pull/$1/head:pr-$1 && git checkout pr-$1 && :
@Saturate
Saturate / README.md
Last active January 4, 2017 07:47
SmashingConf Barcelona 2016 Attendee List

SmashingConf Barcelona 2016 Attendee List

They published the list, and I ripped it with this code to JSON.

Simple, but I need the data for stats! Oh yeah.

Get the list:

@Saturate
Saturate / GetAllWifiPasswords.ps1
Last active March 10, 2023 08:09
PowerShell Wifi Script
# Run this script as an Admin user and get a list of all WiFi passwords.
$listProfiles = netsh wlan show profiles | Select-String -Pattern "All User Profile" | %{ ($_ -split ":")[-1].Trim() };
$listProfiles | foreach {
$profileInfo = netsh wlan show profiles name=$_ key="clear";
$SSID = $profileInfo | Select-String -Pattern "SSID Name" | %{ ($_ -split ":")[-1].Trim() };
$Key = $profileInfo | Select-String -Pattern "Key Content" | %{ ($_ -split ":")[-1].Trim() };
[PSCustomObject]@{
WifiProfileName = $SSID;
Password = $Key
}
@Saturate
Saturate / ListAllMergedBranches.ps1
Last active October 3, 2016 14:24
Git Cheat Sheet
git branch -r --merged | %{$_.trim()} | ?{$_ -notmatch 'develop' -and $_ -notmatch 'master' -and $_ -notmatch 'pam-develop-ny'} | %{git show --no-patch --format='%Cgreen %ci %Cblue%cr%Cgreen %an%Creset --- %Cred'$_ $_} | Sort-Object
# AKJ's Box Starter Script.
# USE: Pase this into cmd/powershell "START http://boxstarter.org/package/nr/url?{RAW-URL-FOR-THIS-FILE}"
# Example: START http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/Saturate/dotfiles/master/windows/BoxStarter.ps1
# Windows Settings
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Update-ExecutionPolicy Unrestricted
# Chocolatey packages
cinst fiddler4 -y
@Saturate
Saturate / BoxStarter.ps1
Last active February 29, 2016 08:23
Box Starter Script
# AKJ's Box Starter Script.
# USE: Pase this into cmd/powershell "START http://boxstarter.org/package/nr/url?{RAW-URL-FOR-THIS-FILE}"
# Windows Settings
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Update-ExecutionPolicy Unrestricted
# Chocolatey packages
cinst fiddler4 -y
cinst dropbox -y

Keybase proof

I hereby claim:

  • I am Saturate on github.
  • I am akj (https://keybase.io/akj) on keybase.
  • I have a public key whose fingerprint is 9047 6F38 7879 CA48 BDC3 6DAF 9747 ECD3 80EC ECBF

To claim this, I am signing this object: