Skip to content

Instantly share code, notes, and snippets.

View flatlinebb's full-sized avatar
🏠
Working from home

flatlinebb

🏠
Working from home
View GitHub Profile
@flatlinebb
flatlinebb / letsplay.txt
Created March 13, 2020 01:56
Useful Let's Play links, videos, and articles
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:
@flatlinebb
flatlinebb / system specs in linux
Last active April 22, 2020 19:00
How to view the system specs in linux
How to view the system specs in linux
Open terminal and type sudo dmidecode --type.
Don't click Enter yet! after --type, you can write bios or system, etc. to view the related specs.
For example: sudo dmidecode --type bios will display the BIOS specs.
Complete list of "What can I write after --type" (common parameters are in bold):
Memory
BIOS
System
@flatlinebb
flatlinebb / rename-to-folder.sh
Created October 29, 2020 15:48
Rename files to the folder name. Move all files from subfolders to root. Remove empty folders.
# 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:
@flatlinebb
flatlinebb / wget-recursive.txt
Created March 13, 2019 16:09
There is no better utility than wget to recursively download interesting files from the depths of the internet. I will show you why that is the case. From: https://blog.sleeplessbeastie.eu/2017/02/06/how-to-download-files-recursively/
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.
@flatlinebb
flatlinebb / Set User Password to Never Expire
Created November 27, 2019 03:01
Set user password to never expire in command line
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.
@flatlinebb
flatlinebb / send_clipboard_as_keystrokes.ahk
Created November 22, 2019 23:35
Autohotkey script: Send Clipbpoard As Keystokes
#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%
@flatlinebb
flatlinebb / mpv_links.txt
Last active December 6, 2021 22:59
YouTube Playlist Links for MPV Player
@flatlinebb
flatlinebb / psftp automate sftp file transfers
Last active March 17, 2022 16:50 — forked from countnazgul/psftp_automate_sftp_server.bat
Using psftp to automate tasks from batch file to sftp server
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
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
@flatlinebb
flatlinebb / RemoveWebroot.ps1
Created January 9, 2023 18:00 — forked from mark05e/RemoveWebroot.ps1
PowerShell script to forcefully remove Webroot SecureAnywhere. It is recommended to run the script twice, with a reboot after the first run.
# 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",