Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
([adsi]'WinNT://domain/username,user').ChangePassword('oldpassword','newpassword') |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// somewhere early in App.xaml.cs | |
AppDomain.CurrentDomain.UnhandledException += (s, e) => | |
LogUnhandledException((Exception) e.ExceptionObject, "AppDomain.CurrentDomain.UnhandledException"); | |
DispatcherUnhandledException += (s, e) => | |
LogUnhandledException(e.Exception, "Application.Current.DispatcherUnhandledException"); | |
TaskScheduler.UnobservedTaskException += (s, e) => | |
LogUnhandledException(e.Exception, "TaskScheduler.UnobservedTaskException"); |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
Switch to the main branch, usually 'develop':
git checkout develop
Get a list of fully merged branches:
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath |
function ValueBreakpoint(parent, fullNamePath) { | |
var name = fullNamePath[0]; | |
var childNamePath = fullNamePath.slice(1); | |
var innerValue = parent[name]; | |
var childBreakpoints = []; | |
function applyChildValueBreakpoints() { | |
if (childNamePath.length > 0 && innerValue) { | |
childBreakpoints.push(new ValueBreakpoint(innerValue, childNamePath)); | |
} |
#!/usr/bin/env bash | |
set -e | |
# Dreamhost Mosh Install Script | |
# Jay Williams (https://gist.github.com/jaywilliams/c9ffab789b3f622abc932dd4cfaaeef5) | |
# Based on the gracious work of: | |
# Paul R Alexander (https://gist.github.com/palexander/2975305) | |
# Sami Samhuri https://gist.github.com/samsonjs/4076746 |
When using a USG with Ubiquiti's Unifi Controller software (version 5.6 and earlier), the functionality of integrating the hostnames of clients (when they request a DHCP lease) into local DNS does not appear to work as you would find with Consumer grade routers. To work around this limitation, we can add static host mappings to a configuration file that will be provisioned to the USG when either a configuration change is made or we force provisioning to the USG itself.
I've added in the necessary syntax for adding Cloudflare DDNS to the USG for VPN/Services setup courtesy of this post by britannic on the Ubiquiti Forums.