Mail us : boss@infotinks.com

infotinks

My Notes, Articles & Guides for Linux, Windows and Networking.

Menu

Skip to content
  • Contact
  • Volga Volga Massage 4 Utah Visitors
  • Donate
  • All Articles
  • Article Catalog
  • Info
  • Welcome

Category Archives: BSD

infotinks > Article Catalog > Linux > BSD
18Jul/19

Bash convert seconds to human readable

2019-07-18BSD, Linuxkossboss

function displaytime { local T=$1 local D=$((T/60/60/24)) local H=$((T/60/60%24)) local M=$((T/60%60)) local S=$((T%60)) (( $D > 0 )) && printf ‘%d days ‘ $D (( $H > 0 )) && printf ‘%dRead More…

Leave a comment
28Apr/19

Wrong Port Connected Check With ifconfig

2019-04-28BSD, Linuxkossboss

We need to run ifconfig and look for the status line. Remember this about ifconfig output: * if “status: active“, the port is linked up and sending traffic (now you just needRead More…

Leave a comment
18Apr/19

Grepping Thru All Rotated Logs

2019-04-18BSD, Linuxkossboss

If your system gzips and rotates your logs. You can use this trick to search thru all of them. # zgrep -i — “SEARCHTERM” $(ls -1Str /var/log/messages*) Another way # zgrep -iRead More…

Leave a comment
15Nov/17

Bash scripting dealing with any characters in strings or filenames

2017-11-15BSD, Linuxkossboss

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…

Leave a comment
26May/17

Repeat Command Until Success – recursive method – rrsync, repeat, repeatrecurse

2017-05-26BSD, Linuxkossboss

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…

Leave a comment
21Oct/16

FreeBSD – Show info about running process – SIGINFO

2016-10-21BSDkossboss

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…

Leave a comment
27Sep/16

Enable Mouse Scrolling with Screen (tested in Putty)

2016-09-27BSD, Linuxkossboss

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…

Leave a comment
20Sep/16

Show and Print Tabs in Linux and Freebsd

2016-09-20BSD, Linuxkossboss

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…

Leave a comment
09Sep/16

FreeBSD missing tee and tee append – make tee bash functions

2016-09-09BSD, Linuxkossboss

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…

Leave a comment
06Sep/16

Sed replace new line with any text

2016-09-06BSD, Linuxkossboss

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…

Leave a comment

Posts navigation

  • 1
  • 2
  • Next »

Popular Links

* COVID19 CORONAVIRUS DASHBOARD
A python powered covid19 dashboard. Stats are updated daily. Uses plotly for the plots. Can view normal scale plot or logarithmic scale plots. Github code available inside.

* RHOOD - ROBINHOOD PROFITS
A robin_stocks API powered python script that parses your Robinhood account to provide you with all information in a single text output. Mainly, it parses all of your orders and outputs sorted orders, open positions, informative profits, dividend information.

* XRAID/RAID CALCULATOR
Use this calculator to find final useable filesystem size of a RAID array. This calculator works for the ReadyNAS and ReadyDATA. Also for any ZFS volumes and any MDADM volumes: RAID0,1,10,50,60 with any number of vdevs (RAIDz3 not included).

* NETGEAR RAID CONFIGURATOR
While employed at Netgear, I wrote the logic behind this calculator. Netgear noticed the popularity of my XRAID/RAID calculator and asked me to help dev up the javascript logic.

* ALL GUITAR NOTES USING PYTHON
Python exercise showing how to graph all of the notes on a guitar. Shows the note of every fret of each string.

Users

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Activity Calendar

March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Dec    

Recent Posts

  • Samba and HTTP Container To Provide ISOs to IDRAC / IPMI Virtual Media 2023-03-29
  • Quick Way To See If Python and Pip Are Synced 2023-03-03
  • Full Path Json With Node.JS and Python 2022-12-09
  • Tmux Mouse Mode Support + Terminal Apps Support Across OS 2022-10-24
  • Colored Shell For Easier Reading With Lolcat 2022-09-02

Archives

  • March 2023 (2)
  • December 2022 (1)
  • October 2022 (1)
  • September 2022 (1)
  • August 2022 (3)
  • July 2022 (2)
  • May 2022 (2)
  • March 2022 (3)
  • February 2022 (1)
  • May 2021 (1)
  • March 2021 (3)
  • December 2020 (1)
  • November 2020 (3)
  • October 2020 (2)
  • June 2020 (2)
  • March 2020 (1)
  • January 2020 (1)
  • December 2019 (1)
  • July 2019 (1)
  • April 2019 (4)
  • April 2018 (1)
  • January 2018 (1)
  • December 2017 (1)
  • November 2017 (1)
  • May 2017 (2)
  • October 2016 (1)
  • September 2016 (4)
  • August 2016 (3)
  • June 2016 (1)
  • May 2016 (4)
  • April 2016 (5)
  • March 2016 (8)
  • February 2016 (8)
  • January 2016 (8)
  • December 2015 (5)
  • November 2015 (3)
  • October 2015 (8)
  • September 2015 (14)
  • August 2015 (4)
  • July 2015 (5)
  • June 2015 (7)
  • May 2015 (9)
  • April 2015 (8)
  • March 2015 (12)
  • February 2015 (5)
  • January 2015 (6)
  • December 2014 (14)
  • November 2014 (9)
  • October 2014 (7)
  • September 2014 (4)
  • August 2014 (14)
  • July 2014 (10)
  • June 2014 (18)
  • May 2014 (29)
  • April 2014 (14)
  • March 2014 (6)
  • February 2014 (22)
  • January 2014 (226)

Categories

  • Linux
  • Linux and Windows
  • Windows
  • Netgear
  • Networking
  • Routing
  • Switching
  • VPN
  • Wireless
  • Programming
  • Web Developing
  • Other
  • Uncategorized

A work by: infotinks

-- PMA --
-- Frag Plots + Table --
-- Next Episode To Watch --

The greats say

"Life is like riding a bicycle. To keep your balance, you must keep moving" - Albert Einstein

Great Quotes

- "Tiny Miracles" a quote by Alex P.
- "Its not what you know that matters, but how you use what you already know." a quote by Unknown.

Donations are welcome

Donate Here

Copyright © infotinks
Powered by WordPress , Theme i-max by TemplatesNext.
MENU
  • Contact
  • Volga Volga Massage 4 Utah Visitors
  • Donate
  • All Articles
  • Article Catalog
  • Info
  • Welcome