I hereby claim:
- I am thebengeu on github.
- I am thebengeu (https://keybase.io/thebengeu) on keybase.
- I have a public key whose fingerprint is DF7A 0482 B996 8A01 A288 A17B FF68 92FF DB37 F48A
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name ScreenCloud AWS: region dropdown cleanup | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @author wolf@screencloud.io | |
| // @include https://*.console.aws.amazon.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { |
I hereby claim:
To claim this, I am signing this object:
| (function () { | |
| var calculateNUSMatricNumber = function (id) { | |
| var matches = id.toUpperCase().match(/^A\d{7}|U\d{6,7}/); | |
| if (matches) { | |
| var match = matches[0]; | |
| // Discard 3rd digit from U-prefixed NUSNET ID | |
| if (match[0] === 'U' && match.length === 8) { | |
| match = match.slice(0, 3) + match.slice(4); | |
| } |
| #!/bin/sh | |
| PORT=4200 | |
| sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist | |
| sudo sed -i '' "s/\(<servicePort>\)[^<]*/\1$PORT/" /Library/Application\ Support/CrashPlan/conf/my.service.xml | |
| sed -i '' "s/#*\(servicePort=\).*/\1$PORT/" /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties | |
| defaults write /Applications/CrashPlan.app/Contents/Resources/CrashPlan\ menu\ bar.app/Contents/Info CPPort $PORT | |
| sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist |
| var calculateNUSMatricNumber = function (id) { | |
| var matches = id.toUpperCase().match(/^A\d{7}|U\d{6,7}/); | |
| if (matches) { | |
| var match = matches[0]; | |
| // Discard 3rd digit from U-prefixed NUSNET ID | |
| if (match[0] === 'U' && match.length === 8) { | |
| match = match.slice(0, 3) + match.slice(4); | |
| } | |