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 FindProxyForURL(url, host) { return "SOCKS localhost:5959; } |
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
(gci *.mp4 -Recurse | sort CreationTime | % { $_.FullName }).ForEach({ "file '{0}'" -f $_ }) > concat.txt && ffmpeg.exe -f concat -safe 0 -fflags +genpts -i .\concat.txt -y -c copy ../output.mp4 |
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
gci *.mp4 -Recurse | %{ | |
$invcmd = "ffprobe -hide_banner -show_entries stream=codec_type -of default=nw=1 -loglevel error -i $_" | |
Invoke-Expression $invcmd 2>&1 | Out-Null | |
if (-not $? -or $LASTEXITCODE -ne 0) { | |
echo "Deleting $_" | |
Remove-Item $_ | |
} | |
} |
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
strComputer = "." | |
Set oShell = WScript.CreateObject("WScript.Shell") | |
user = oShell.ExpandEnvironmentStrings("%USERNAME%") | |
Set objWMIService = GetObject("winmgmts:" _ | |
& "{impersonationLevel=impersonate}!\\" & _ | |
strComputer & "\root\cimv2") | |
Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ | |
("Select * From __InstanceOperationEvent Within 2 Where " _ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#!/bin/bash | |
userlist=( "foo" "bar" ) | |
groupname="Developers" | |
passwd="123456" | |
for i in "${userlist[@]}"; do | |
sudo useradd $i -d /home/$i -g $groupname -m -N -p $passwd | |
sudo mkdir /home/$i/.ssh | |
sudo touch /home/$i/.ssh/authorized_keys |
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
/** | |
* Cyanogenmod9+ Loading bar spinoff? | |
* CSS3. The animation is not exactly same, nor do I like it that way. | |
* | |
* Author: Power-Inside | |
*/ | |
body { | |
min-height: 100%; | |
background: #000; |