All Questions
10 questions
4
votes
1
answer
783
views
Looping through multiple regex efficiently
I'm writing a program that adds all network interfaces with multiple parameters to a list.
I have written the following code, which should work out of the box on any Linux system with Python and ...
6
votes
1
answer
10k
views
Python script for monitoring systemd services (cpu/memory usage)
This is a python (2.7.13 according to sys.version) script that reads systemd service names from a file and gets their CPU and Memory usage. It does that by first ...
8
votes
1
answer
525
views
LXC Bootstrap - A wrapper script around lxc utility scripts to create and set up an LXC container based on settings
So some background here.
I recently discovered the ease of LXC containers on Ubuntu. I've been building some 'test' containers locally for testing things I develop on Ubuntu, but the evil thing is ...
3
votes
0
answers
606
views
Touchscreen Right Click
I have built a small script that provides touch screen right click context menu with long touch press in my ELAN touchscreen.
There is no need to remove your finger in order context menu to pop up.
...
4
votes
1
answer
140
views
Package management system
A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package ...
3
votes
2
answers
133
views
System backup on Linux - follow up
This is a follow-up to System backup on Linux. I've done a lot to my script since I asked my first question and I think I could improve a lot while doing this. The script still does the same, only a ...
8
votes
1
answer
502
views
System backup on Linux
I've written this Python script to make regular backups of a Linux server. It works pretty well except that the script sometimes backups files more than one time, which is pretty strange and I don't ...
4
votes
1
answer
173
views
Multipurpose command-line utility to manage a web application
I'm creating a command-line tool which is supposed to work on both Windows and Linux OS. It will be used to manage our application - start, stop, deploy etc.
We have it in bash scripts now (and it ...
4
votes
2
answers
2k
views
Number of files with specific file size ranges
I am trying to write a script that will traverse through my directory and sub directory and list the number of files in a specific size.
For example, 0kb-1kb: 3, 1kb-4kb:4, 4-16KB: 4, 16kb-64-kb:11. ...
5
votes
1
answer
858
views
Ping Pong Pi - A Ping Pong score and serving manager
I have spent a few hours on this code, but think it could be improved a bit. It requires eSpeak to be installed to run the speech synthesis, but the voice can be toggled on or off using the ...