Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
7 votes
3 answers
1k views

C++ code reading from a text file, storing value in int, and outputting properly rounded float

Late important updates (unified) I found, that on my Pi's Debian 12 Bookworm (arm64), there is just an older g++-12 available. ...
Vlastimil Burián's user avatar
6 votes
2 answers
773 views

Bash script to create a Termux sandbox nested in an extant Termux environment suitable for script and package installation testing

...
Beauford A. Stenberg's user avatar
8 votes
4 answers
1k views

Remove all text files with non-US-ASCII text encoding from current folder on Linux

...
Машина's user avatar
4 votes
2 answers
381 views

Find proceses listening on the network outside of default package manager

I have been tinkering with a script that should list things that are listening on the network, but are not part of the base packaging manager. Currently I have only done support for fedora and debian ...
N3buchadnezzar's user avatar
3 votes
2 answers
123 views

Possible improvements to window swallowing program?

I have written a small program that swallows windows. It works in X.org using the xcb library. This is my first rust program but I have lots of other programming experience. Any general improvements ...
EmperorPenguin18's user avatar
2 votes
1 answer
103 views

Rsync helper in C (Improved)

Last week I posted a previous version of this code. I improved the program and worked on it for a few days and I would love to get reviews, feedback and tips so I could learn more and more from you ...
yan_kh's user avatar
  • 87
10 votes
2 answers
1k views

Wi-fi scheduler written in C

I'm new to C and programming in general (some minimal prior exposure to JS and python). This is also my first time working with shell commands, scripts, and cron. This program works on my macOS and ...
NNNComplex's user avatar
2 votes
1 answer
77 views

List files based on changes

I am new to programming and need input on how I could've written something better. Not coding on daily basis. The task was to write a script in python, bash or anything. So I mixed python with bash ...
anonymously132526's user avatar
2 votes
1 answer
83 views

Database playground

This is my very first interaction with databases. The goal is to setup a safe playground on an Arch box to create tables and make queries. I want to learn the basics without risking ...
Vorac's user avatar
  • 484
2 votes
2 answers
2k views

Get pixel color from screen in C++ on Linux

For a long period of time I worked on this code, mostly trying to understand it. That is the main reason for needed review. Second reason is simply that I would like to optimize it in any way you can ...
Vlastimil Burián's user avatar
2 votes
1 answer
60 views

Log the diff of a Apache httpd config file and reload the service with Python and systemd

Using systemd's .path unit to run a Python script whenever a httpd config file is changed. The Python script creates a backup of ...
user avatar
4 votes
1 answer
90 views

Bash script to reconfigure the screen orientation when entering or exiting tablet mode

I'm writing a bash script for my tablet laptop to flip the screen depending on a file in Manjaro Linux. My current script is the following: ...
Erik's user avatar
  • 143
1 vote
1 answer
80 views

Remap ls to honor .hidden files

I wrote this code in my .bashrc to remap ls to honor .hidden files. I'm pretty new to shell/bash scripting, so I feel like this is not the most performant way to handle this, and it has some ...
UrsineRaven's user avatar
4 votes
1 answer
94 views

Cycle through filenames in vim

So I have a list of files which names are something like this ...
N3buchadnezzar's user avatar
3 votes
1 answer
89 views

Syncing GitHub repositories local, remote and forks

It's a simple bash script but I'm hoping for feedback, advice and examples on how to improve the script and code. Can you guide me how to put more checks in the code and more if possible? This code: ...
somethingSomething's user avatar

15 30 50 per page