A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bstarynk/misc-basile below:

bstarynk/misc-basile: Miscellaneous stuff, mostly single-file tiny programs (GPLv3+)

Miscellaneous stuff, mostly single-file tiny programs

Email me to basile@starynkevitch.net for feedback and questions. See starynkevitch.net/Basile for more about me, with this being in English. My pet free software project is RefPerSys.

Some of these files are coded at work, so copyrighted by my employer CEA. My office email is there (before nov. 2023, when I reach retirement) basile.starynkevitch@cea.fr.

Several single source file programs usually for GNU/Linux/Debian/x86-64. Their compilation command is generally given as a comment inside the source code.

@reboot sync /usr/local/bin/sync-periodically --log-period=600 --sync-period=3  --daemon --pid-file=/var/run/sync-periodically.pid

and we wrote (for systemd) some sync-periodically.service

You first need to compile logged-gcc.cc with the compile-logged-gcc.sh shell script. You might want to edit that script. It produces a logged-gcc executable which you could put into your $HOME/bin/ directory.

You then should change your $PATH variable in such a way that $HOME/bin/ is in front of the directory containing your system gcc, usually /usr/bin/. You might have something like export PATH=$HOME/bin:/usr/bin:/bin in some shell initialization file (e.g. $HOME/.bashrc or $HOME/.zshrc for zsh users).

You could run logged-gcc --help to get some help, and logged-gcc --version for version information.

You then add symbolic links with ln -sv $HOME/bin/logged-gcc $HOME/bin/gcc and ln -sv $HOME/bin/logged-gcc $HOME/bin/g++

You could set environment variables $LOGGED_GCC to e.g. /usr/bin/gcc-10 and $LOGGED_GXX to e.g. /usr/bin/g++-10. See also environ(7).

If you want to use logged-gcc with just syslog(3), you don't need to do anything more.

If you want to use logged-gcc with some Sqlite database such as /tmp/logged-gcc.sqlite, you need first to initialize it using logged-gcc --sqlite=/tmp/logged-gcc.sqlite (before any /tmp/logged-gcc.sqlite file exists), and then set the environment variable $LOGGED_SQLITE to /tmp/logged-gcc.sqlite. Only successful GCC compilations go into that database. It is suggested to initialize once then use the default SQLite database $HOME/logged-gcc-db.sqlite ....


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4