Padding File names with zeros
need to pad some file names with zeros? couldnt be simpler!
for f in foo[0-9]*; do mv $f `printf foo%05d ${f#foo}`; done
rename 's/\d+/sprintf("%05d",$&)/e' foo*
I just installed crashplan on a new linux headless server and it refused to backup, I checked logs and found it was having issues with the noexec flag on my /tmp/ folder. so I created a new tmp folder and told it where to access it. In this article I give simple instructions on how…
[et_pb_section admin_label=”Section” fullwidth=”on” specialty=”off”][et_pb_fullwidth_post_title admin_label=”Fullwidth Post Title” title=”on” meta=”on” author=”off” date=”on” categories=”on” comments=”off” featured_image=”on” featured_placement=”background” parallax_effect=”off” parallax_method=”on” text_orientation=”center” text_color=”dark” text_background=”on” text_bg_color=”rgba(255,255,255,0.9)” module_bg_color=”rgba(255,255,255,0)” title_all_caps=”off” use_border_color=”off” border_color=”#ffffff” border_style=”solid”] [/et_pb_fullwidth_post_title][/et_pb_section][et_pb_section admin_label=”section”][et_pb_row admin_label=”row”][et_pb_column type=”4_4″][et_pb_text admin_label=”Text” background_layout=”light” text_orientation=”left” use_border_color=”off” border_color=”#ffffff” border_style=”solid”] [/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row admin_label=”row”][et_pb_column type=”4_4″][et_pb_text admin_label=”bottom above footer” background_layout=”light” text_orientation=”left” use_border_color=”off” border_color=”#ffffff” border_style=”solid”] [bsa_pro_ad_space id=5 if_empty=6 hide_for_id=953,680] [/et_pb_text][et_pb_divider admin_label=”Divider” color=”#ffffff” show_divider=”off”…
I couldn’t find the silly volume control in the system settings one day so I figured there had to be something I could use to control volume settings like mic boost without needing a GUI or remembering names and numbers for the CLI. well there is and it’s so easy a caveman could do it…
Install docker Either regular docker install or rootless. Create a new directory Create a new directory where you will store your Docker Compose file and PHP/html etc files. For example, you can create a directory called “phpapp” in your home directory: write a docker compose file paste the below code in a new file called…
Sometimes I have apps that suddenly stop working, however, they don’t have PID output or I can’t start them via systemd or upstart due to convoluted requirements. Other times the app is on but it stops processing incoming queues due to various reasons. I need to make sure i have a mechanism in place to Restart…
What is Dirty Cow CVE-2016-5195 is a bug in the Copy On Write mechanism of the Kernel. Any user or user owned process can gain write access to memory mappings which should be read only for the end user. This allows them to interact with otherwise root only files. Should you worry about it? YES. you…