All Questions
17
questions
1
vote
1
answer
93
views
Linux terminal like parsing
I'm creating a program that will hopefully operate like linux terminal (basic commands) for learning purposes.
...
5
votes
1
answer
725
views
Bash script simple countdown timer with dotted output
My goal is to have a timer function that operates from the bash linux command line. I am looking for review and feedback. Printing the expected number of characters (dots, dashes, or bars) is nice-...
5
votes
1
answer
310
views
Fishy password management
Problem
When it comes to security I like to don a tin foil hat.
As such I use the, off-line password manager, Keepass.
Keepass allows you to to use multi-factor authentication via; a password, a ...
3
votes
1
answer
53
views
Ubuntu 18.04.3 ASCII strings length with embedded VT100 control codes
As my applications rely on VT-100 emulation, I found that I had to do quite a few workarounds to determine the number of visible characters in a string with embedded VT-100 control codes. So that led ...
7
votes
4
answers
163
views
Ubuntu 18.04.3 LTS get terminal columns and rows NASM
As part of the prologue of all my console applications, I need to determine the extents of the current terminal so if there are less than 132 columns or 43 lines the user can be warned output may not ...
18
votes
7
answers
6k
views
Tic-Tac-Toe for the terminal
I recently started learning C, and this is my first fairly large (to me) program. It's a basic Tic Tac Toe game for the console. There's no AI, it's just a 2-player game. Is there anything I can ...
7
votes
2
answers
367
views
Color ASCII drawing class
I am working on a pseudo graphical interface for a Chess engine I wrote. I want to draw a colored Chess board with ASCII pieces. To abstract the pure ...
1
vote
1
answer
43
views
Tagging the directories and switching between them by tags - follow-up (Part 1/2: File management)
This is a rework of a small program for faster(?) switching working directories, and it looks like a pile of crap, I must admit. Could you give me pointers how to make it maintainable?
dt_tag_entry....
1
vote
1
answer
67
views
Interactive Linux upgrade script - Follow-up #1
One year ago I asked for a yearly revision of my Interactive Linux upgrade script.
There is nothing new to the conditions, therefore please read the original question before you decide to comment and ...
9
votes
1
answer
467
views
Systemd service configuration helper script
I've written a script that semi-automates the process of configuring/creating a new systemd service.
The script is working perfectly well, however, I've had some trouble with the styling and ...
3
votes
2
answers
144
views
Command-Line tool to find large files on a Linux system
Is the code pythonic and easy to read and understand? Is there a better way to exclude directories? Did I miss any bugs?
...
2
votes
1
answer
839
views
Quadratic equation solver in Ruby
I wrote a simple quadratic equation solver with Ruby to help me solve quadratic equations. Please tell me what I did right or wrong, and what I can do to improve it.
...
2
votes
1
answer
537
views
Terminfo parser in C++
I've written a pretty minimal parser for terminfo files which works as intended. It compiles fine and I've actually setup some tests over here which pass successfully too. Now I would like to get it ...
1
vote
1
answer
97
views
Pausing script while waiting for Docker container and printing updates
I'm looking to improve it in brevity, readability, and simplicity. Basically, I'm just looking for a more elegant solution. What improvements can I make?
...
3
votes
1
answer
255
views
Template for PHP service (/etc/init.d) script
I wanted a template for a service script that is versatile and easily configurable.
Along with producing similar outputs to the SSH and Samba daemons, I request the code to be as clean, simple and ...