This file contains hidden or 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 hidden or 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 hidden or 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 | |
| # This script needs to be run as root or sudo!!!! | |
| # Provide client name or IP address as CommandLine argument: | |
| # For example, sudo ./nmap_ADHOC.sh 192.168.2.111 | |
| # Feel free to modify the nmap scan options to suit your needs | |
| # Use 'mailx' or any other email solution if you want to be notified by email when the scan is done | |
| # Customize the web directory to match your setup | |
| # Exit on error, and mark commands with a + in output | |
| set -ex | |
| # Capture a log file with the same name as the target: |
This file contains hidden or 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 | |
| # This script allows you to perform an nmap scan against targets listed in a TXT file. | |
| # Target can be a single IP, a hostname, or a network range (i.e. 192.168.2.0/24; 10.1.2.10-25) | |
| # Nmap will output in XML file, which then will be converted to HTML for web viewing. | |
| # The file will be copied to the web server folder when it can be viewed in a browser. | |
| # It may be publically viewable, so choose wisely! | |
| # Scan can be run on a schedule, it will save old scan copies | |
| # Optionally, use mailx or sendmail or whatever you want to email yourself when the scan is done | |
| # Exit script on error | |
| set -ex |
This file contains hidden or 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 | |
| set -e | |
| set -u | |
| set -o pipefail | |
| start=$SECONDS | |
| exts=$(ls -dp *.*| grep -v / | sed 's/^.*\.//' | sort -u) # not folders | |
| ignore="" |
This file contains hidden or 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
| @ECHO OFF | |
| :top | |
| ping 8.8.8.8 | |
| ECHO. | |
| ECHO File start %time% | |
| ECHO. | |
| :: wget -O - "http://ipv4.download.thinkbroadband.com/100MB.zip" | |
| :: wget -O - "http://ipv4.download.thinkbroadband.com/50MB.zip" | |
| :: wget -O - "http://ipv4.download.thinkbroadband.com/20MB.zip" | |
| :: wget -O - "http://speedtest-ca.turnkeyinternet.net/100mb.bin" |
This file contains hidden or 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 hidden or 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
| My Channel: Don't Sleep, Game On! | |
| https://www.youtube.com/channel/UC_0LXPKmBlSeHVkAPs-D3kA/ | |
| Free Video Editing Software list: | |
| https://www.oberlo.com/blog/best-free-video-editing-software | |
| OBS Studio 110 - MIXER MASTER - How to use OBS Mixer for Multiple Audio Tracks & Balanced Audio, by EposVox: | |
| https://www.youtube.com/watch?v=nd739DyqSV4 | |
| OBS Studio - Advanced Mic Settings (Noise Removal, Compressor, Noise Gate), by Gaming Careers: |
This file contains hidden or 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 hidden or 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
| # To verify first, just echo instead of move: | |
| for f in */* ; do fp=$(dirname "$f"); ext="${f##*.}" ; echo "$f" "$fp"/"$fp"."$ext" ; done | |
| # Rename for realz: | |
| for f in */* ; do fp=$(dirname "$f"); ext="${f##*.}" ; mv "$f" "$fp"/"$fp"."$ext" ; done | |
| # Move all files to root: | |
| mv *.mkv */*.mkv . | |
| # Delete all empty folders in current directory: |