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
REM This script will check all MP4 files in the current folder | |
REM and process them to extract audio into separate files (M4A). | |
REM The audio files use the same file name as the original video file, with a number, and the M4A extension | |
REM This is a batch file, to be run on Windows, in Command Line. | |
REM For Linux, see the "extract-audio.sh" gist below | |
REM In this example, there are 2 audio tracks, which get split out to 2 separate audio files. | |
REM The original video file remains unchanged. | |
REM If you want have a video file with more than 2 audio tracks, | |
REM just add more "-map 0:a:0 -c copy "%~na audio track 1.m4a"" sections: | |
REM -map 0:a:0 -c copy "%~na audio track 1.m4a" |
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
# Display some useful info at login | |
echo | |
# Display your IP hostname & IP addresses | |
#echo | |
echo " -------------------------------------------------------------------" | |
echo " Hostname: `hostname`" | |
#echo " Your IPv4 Address: `ifconfig | grep 'inet addr:' | grep -v 127.0.0.1 | grep -v 10.32. | grep -v 192.168. | cut -d: -f2 | cut -d' ' -f1`" | |
echo " Your IPv4 Address: `ip a | grep eth0 | grep inet | cut -d' ' -f8`" | |
echo " Your IPv6 Address: `ip a | grep inet6 | grep global | cut -d' ' -f6`" | |
echo |
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
Keyboard Control | |
LEFT and RIGHT | |
Seek backward/forward 5 seconds. Shift+arrow does a 1 second exact seek (see --hr-seek). | |
UP and DOWN | |
Seek forward/backward 1 minute. Shift+arrow does a 5 second exact seek (see --hr-seek). | |
Ctrl+LEFT and Ctrl+RIGHT | |
Seek to the previous/next subtitle. Subject to some restrictions and might not always work; see sub-seek command. | |
Ctrl+Shift+Left and Ctrl+Shift+Right | |
Adjust subtitle delay so that the next or previous subtitle is displayed now. This is especially useful to sync subtitles to audio. | |
[ and ] |
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
# Removes Webroot SecureAnywhere by force | |
# Run the script once, reboot, then run again | |
# Webroot SecureAnywhere registry keys | |
$RegKeys = @( | |
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\WRUNINST", | |
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\WRUNINST", | |
"HKLM:\SOFTWARE\WOW6432Node\WRData", | |
"HKLM:\SOFTWARE\WOW6432Node\WRCore", | |
"HKLM:\SOFTWARE\WOW6432Node\WRMIDData", |
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
All the various ways to obtain the WAN IP of a Windows or Linux computer: | |
curl ifconfig.me | |
(curl ifconfig.me).Content | |
wget -qO- http://ipecho.net/plain | xargs echo | |
host myip.opendns.com resolver1.opendns.com | |
dig +short myip.opendns.com @resolver1.opendns.com. | |
dig +short txt ch whoami.cloudflare @1.0.0.1 | |
nslookup myip.opendns.com. resolver1.opendns.com | |
(Invoke-WebRequest -uri "http://ifconfig.me/ip").Content |
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
psftp username@sftp.server.com -pw password -noagent -4 -batch -be -b commands.txt > log_file_%date:~10,4%-%date:~7,2%-%date:~4,2%-%time:~0,2%%time:~3,2%%time:~6,2%.txt 2>&1 | |
# log_file_%date:~10,4%-%date:~7,2%-%date:~4,2%-%time:~0,2%%time:~3,2%%time:~6,2%.txt = log file with a timestamp | |
# -pw = password | |
# -4 = use IPv4 | |
# -batch = disable all interactive prompts | |
# -be = don't stop batchfile processing if errors | |
# -b filename = use specified batchfile | |
# -noagent = disable use of Pageant | |
# -bc = output batchfile commands |
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
ART OF MINIMAL TECHNO TRIPPING Music Live 24/7 Deep, Melodic, House, Chill & High: | |
mpv.exe https://www.youtube.com/watch?v=fOH_MdwbXhY --no-video | |
ART OF TECHNO 'DEEP' RADIO - Melodic - Progressive - House: | |
mpv.exe https://www.youtube.com/watch?v=thd6h-ZZIfo | |
Tech House Mix Jan 2019: | |
mpv.exe https://www.youtube.com/watch?v=Bd4Wxux_pTU&t=556s --no-video | |
Boris Brejcha @ Art of Minimal Techno Tripping - Mickey & Bad Hot Dogs by RTTWLR |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetWinDelay 100 | |
SetKeyDelay 7 | |
;; Alt+Control+k | |
^!k:: | |
SendEvent,{Raw}%Clipboard% |
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
Password never expire for a specific user using command-line | |
Open command-prompt with administrative privileges and run the following command sequence: | |
Get the name of users currently active on the system using this command: net accounts | |
Run the following command: | |
wmic useraccount where �Name=�itechticsuser'� set PasswordExpires=false | |
Replace �itechticsuser� with the name of user you want to configure. | |
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
Simply download files recursively. Note, that default maximum depth is set to 5. | |
$ wget --recursive https://example.org/open-directory/ | |
Download files recursively using defined maximum recursion depth level. It is important to remember that level 0 is equivalent to inf infinite recursion. | |
$ wget --recursive --level 1 https://example.org/files/presentation/ | |
Download files recursively and specify directory prefix. If not specified then by default files are stored in the current directory. |
NewerOlder