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
@Saturate
Saturate / guide.md
Created May 12, 2014 12:16
Debugging IE7

Debugging IE7

Missing line number

  1. Open the page in compatibility mode in a newer IE. This should give you the correct file, and line number of the error.

Custom error thrown

SharePoint 2013, have done this when checking if window.JSON ect is defined if it's not it will throw a error. See http://stackoverflow.com/q/23404556/171087 for more information.

  1. Open Google Chrome, in the Source tab search for the error. This might just find the file in question, and the function that throws the error-
@Saturate
Saturate / config.rb
Created May 22, 2014 10:31
Compass configuration
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
project_path = ENV['SOLUTIONDIR'].gsub('\\', '/') + 'Project.Sharepoint.SPCommon/Layouts/UI/'
http_path = '/_layouts/15/UI/'
css_dir = "css"
sass_dir = "sass"
images_dir = 'images'
javascripts_dir = "js"
deploy_dir = 'C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\UI'

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:

@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
# 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 / 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
@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 / 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:

debug: $env:GIT_TRACE = 1
(powershell)
[alias]
cpr = !git fetch origin pull/$1/head:pr-$1 && git checkout pr-$1 && :
@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 = @{