Source: http://stackoverflow.com/questions/1251999/how-can-i-replace-a-newline-n-using-sed Replace with space: Use this solution with GNU sed: someoutput | sed ':a;N;$!ba;s/\n/ /g' Here is cross-platform compatible syntax which works with BSD sed (FreeBSD 8 confirmed): someoutput | sed -eRead More…
Nohup Alternative
Learned it from here http://stackoverflow.com/questions/6168781/how-to-include-nohup-inside-a-bash-script They use it to make current script daemoned but you can also make scripts that you run from within a script daemoned Instead of doing nohup prog & or nohupRead More…
Best way to protect against Ransomware – Backups and Snapshots
You’ve been hearing about Ransomware attacks (they are attacks that target your files and encrypt them and make you pay money to hidden organizations to get your files back – at firstRead More…
Guide to Fixing Audio Out of Sync in VLC
Watching a video and your audio and video are out of sync. Try reloading video. If that doesn’t work try the audio delay option (which will delay the audio by 50 millisecondRead More…
Best Most Featured Wallet – Ive searched the universe for this wallet
3 window ids that fit many or 1 items snugly. 2 or 4 hidden pockets. +8 credit card holders (i just use 2 and fit them all there). zipper pocket in cash pocket.Read More…
Samba Disabling Trusted Domains (all or specific ones)
You can either disable all trusted domains or certain/specific trusted domains. Winbind will only allow users to use SMB if they can authenticate into the samba server with a user that isRead More…
How to sync date with ntp server
If your date command outputs wrong time or date use this command to sync with a known good timeserver: ntpdate -u pool.ntp.org
Missing “uniq” here is an “awk” substitute – FreeBSD
Since we dont have uniq Here is it, and it doesnt even need a sort Basically it goes line by line and only prints it if it hasnt been seen cat text.txtRead More…
Don’t Use “for” loops for File Iteration – Use “while read” Loops
Imagine a list of files (either in a text file, or a command that outputs a list of files). First make sure these files are newline seperated. Why newline? because filenames dontRead More…
Move Tv Shows in SickRage from one directory / folder to another
Example: you have 2 tv show folders and you want to merge them. Ex: you have 10 tv shows here /VD/TvShows and 3 tv shows here /VD/TvShows1. you would like to moveRead More…