All Questions
24 questions
4
votes
1
answer
101
views
Recursively Copy Dotfiles from Git Repo to New System's Home Directory
I manage my dotfiles in a github repo. The idea would be that I could clone the repo if I ever have to develop on a new system and symlink them to the home ...
4
votes
2
answers
225
views
Bash code to install bootstrap in a Ruby on Rails repository
Wrote some code to install bootstrap (latest) in a newly created rails application.
update: fixed a typo
...
2
votes
0
answers
60
views
Outputting a standalone shell script from arguments
I am solving an exercise. Essentially, it's a shell script that takes in file and/or directory arguments and outputs another (standalone) shell script that outputs these files, including any directory ...
3
votes
1
answer
434
views
Linux HDD/CPU Temperature Logging Bash Script to run every minute in crontab
I wrote a simple script to log HDD and CPU temps to a log file.
If those temperatures reach a threshold, it will shutdown the server. I also made the script make sure the log files don't get over a ...
6
votes
1
answer
558
views
tar-backup V1.01 - backup script for Linux (full and differential backups)
This is the backup script itself. Make it executable and place it somewhere in your path:
...
3
votes
1
answer
679
views
checksum hash verification functions for bash scripts
just a little script, or a bit of a template of one that I used to submit an assignment.
I believe it all works fine, I just wanted to give it to other people, and get some feedback on it; maybe make ...
2
votes
1
answer
75
views
Making a disk usage breakdown
I'm looking for a better way of doing this code I made. I work for tech support and one of the biggest questions I am asked is: "Hey, how did my disk get so full in my VPS?"
I am aiming for output ...
7
votes
2
answers
349
views
Bash script to temporarily run a shell without certain group memberships
I have here a script called rwog (run without groups) that allow a user to run a shell without particular group memberships. ...
3
votes
1
answer
839
views
Bash script to deploy a mongodb cluster on local machine
I recently wrote a small script to deploy a mongodb cluster on a single machine.
The cluster is composed of :
3 configurations server that holds the same informations (they are replicas )
2 shard ...
8
votes
1
answer
113
views
Spoofs MAC Address to manufacturer of user's choice, Linux or MacOS
I've made a BASh script for Linux/MacOS that allows you to search for a MAC manufacturer and then generates a MAC address from that company and then spoofs it to that using ...
3
votes
1
answer
921
views
Shell script to archive files to AWS S3
This is a simple script that moves files to S3 if they are > 14 days old. It ignores files that are < 14 days old. If the file is successfully synced to AWS S3 then we can remove it from the server....
5
votes
1
answer
66
views
Script to record an inventory of a backup
This is a script designed to make an inventory file which records the
contents of a directory allowing verification that a backup has the
same data. The same script can also
A full github repo is ...
4
votes
1
answer
100
views
Making time lapse screenshots using Bash
My experience in bash is... well, around the Bourne shell on AIX. I wrote a semi-complex script in Bash, and I feel that it could be improved in 100 different ways.
The Github project is here: https:/...
4
votes
3
answers
154
views
Un*x terminal history wiper
Using various answers from Stack Overflow and Ask Ubuntu, I've hacked together this simple C program that wipes terminal history. It works but I'm relatively new to C so I'm not sure if everything is ...
7
votes
2
answers
125
views
Pseudoportable C script pattern - follow-up
See the initial/previous iteration.
I have rewritten the script following the answer of @200_success.
Now it looks like this:
...