This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: DeleteQueue.bat - Fast-delete the files in the delete queue | |
:: Instructions: | |
:: | |
:: 1. Create the folder `C:\DeleteQueue` | |
:: 2. Create a scheduled task to run this batch file every night | |
:: | |
:: Now any (potentially large) files or folders you move into | |
:: `C:\DeleteQueue` (a nearly instantaneous operation) will be deleted | |
:: overnight, without interrupting your flow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iface tun0 inet manual | |
pre-up openvpn --mktun --dev tun0 | |
up openvpn --config /etc/openvpn/YOURVPN.ovpn \ | |
--daemon \ | |
--dev tun0 \ | |
--route-noexec \ | |
--script-security 2 \ | |
--route-up /etc/openvpn/on-route-up \ | |
--writepid /var/run/openvpn.tun0 | |
down /etc/openvpn/kill-service -w /var/run/openvpn.tun0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[parameter(Mandatory=$true, Position=0)] | |
[String[]] $Path, | |
[Switch] $Watch | |
) | |
function main | |
{ | |
Remove-InvalidShortcuts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run from Command Prompt: | |
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/mkropat/e93b7bdaa04c2d56879b/raw/9eff96cf4aad061f60de314b9d973d3add278002/appscp.ps1 | |
Set-WindowsExplorerOptions -EnableShowFileExtensions | |
cinst 7zip.install | |
cinst GoogleChrome | |
cinst linqpad4.install | |
cinst mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wrapInDelay(obj, methodName, delay) { | |
initialize(); | |
wrapMethod(obj, methodName, function (method, args) { | |
window._delayerWantsDelay = delay; | |
var result = method.apply(this, args); | |
delete window._delayerWantsDelay; | |
return result; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Debug-Trace-'.substr(microtime(),0,8).': ' . json_encode(debug_backtrace())); | |
// Then in your browser just run | |
// | |
// console.log(JSON.stringify(<PASTE TRACE HERE>, null, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--pager=less -RS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# delete-temp-aspnet.ps1 | |
# | |
# Delete all files in 'Temporary ASP.NET Files' at boot | |
param( | |
[switch] $Clean, | |
[switch] $Register | |
) | |
if ($Register) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# description "minecraft server" | |
start on runlevel [345] | |
stop on runlevel [^345] | |
console log | |
chdir /var/lib/minecraft/ | |
setuid minecraft | |
setgid minecraft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh interface ipv4 set dnsserver "Ethernet" source=dhcp |
OlderNewer