Got info from here: https://stackoverflow.com/questions/18363833/how-can-i-list-upnp-server-renderer-in-command-line-console-mode-on-linux Get the Upnp test tools # apt-get install gupnp-tools Example 1: Find all Upnp devices (note their target names start with urn:…. It will hint at what service itRead More…
bash simple variable substitution
You can use bash to do simple substitutions of variables, just like you can with sed. The bash trick turns out to take up less characters (bytes). Lets set some variable VAR1="thisRead More…
Windows – cmd – which domain controller is my PC joined to
Use this trick from cmd (command prompt) to see which Windows Active Directory Server you are connected to H:\>echo %logonserver% \\AD4 Also set l The end
Bash scripting dealing with any characters in strings or filenames
Imagine a file list, list.txt, like this one image1.jpg image2.jpg image3.jpg Naturally you could deal with it like so cat list.txt | while read i; do FILE="$i" dosomething "$FILE" done Or justRead More…
My Favorite X-Plane 10 / 11 Controls – Rudder, Joystick & Throttle Setup
I do not take credit for this controller layout. I really like it and would like to have a copy easily available so I hosted it here, also I would like toRead More…
Repeat Command Until Success – recursive method – rrsync, repeat, repeatrecurse
Here I show you how to repeat a command until it finishes successfully. This should only be done with programs that support resume and also have legit exit codes (or else theyRead More…
FreeBSD – Show info about running process – SIGINFO
When you are running a command hit Control-T anytime, its very useful when a command looks stuck. It causes the kernel to spit out a line similar to the following: load: 0.69Read More…
Enable Mouse Scrolling with Screen (tested in Putty)
Screen the app that can split screens like so, is not too intuitive when it comes to scrolling thru your bash shell. Notice where the cursor is in the diagram below, itsRead More…
Show and Print Tabs in Linux and Freebsd
To print tab characters (and other control characters) you cant just press Tab because tab is a special auto complete char in bash. Control-V then Tab or Control-V then Control-I (also knownRead More…
FreeBSD missing tee and tee append – make tee bash functions
The version of FreeBSD 8.0 that I am using is missing tee & tee -a (tee append) You know tee as in write on screen & file: date | tee thedate.txt Which will runRead More…