๐พ Archived View for kevachat.duckdns.org โบ room โบ Nhoa9D3wNZNrYyY6DS96sqahCp9gcAXvtx captured on 2024-05-10 at 11:39:42. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2024-03-21)
-=-=-=-=-=-=-
_ __ ____ _ _ | |/ /_____ ____ _ / ___| |__ __ _| |_ | ' // _ \ \ / / _` | | | '_ \ / _` | __| | . \ __/\ V / (_| | |___| | | | (_| | |_ |_|\_\___| \_/ \__,_|\____|_| |_|\__,_|\__|
[```] ~/.config/i3/config
for_window [all] border normal
[```]
[*] default_border normal - does not work here
[=>] https://i3wm.org/docs/userguide.html#[_]changing_border[_]style
Problem:
[```]
error: โ_1โ was not declared in this scope placeholder
[```]
Solution:
Usually just prefix namespace required:
[```]
boost::placeholders::_1
[```]
[=>] https://github.com/katesalazar/TheHolyRogerCoin/commit/bce07f768c6f6e62f3917f39bbb8f61da8c088dd Example 1
[=>] https://github.com/kvazar-network/kevacoin/pull/2/commits/93f5b87192d8e4af96ec0d31988e47d3387bfec8 Example 2
Another issue:
[```]
compilation error: flexible array member โfiemap::fm_extentsโ
[```]
Solution:
Replace struct with union
[=>] https://github.com/twisterarmy/twister-core/commit/9a0d8cb79f3f901ab9a2c915f97d05e03bfa98bd Example
[```]
./contrib/install_db4.sh `pwd`
export BDB_PREFIX='/given/path/to/db4'
./autogen.sh
./configure BDB[_]LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB[_]PREFIX}/include"
make
[```]
[=>] https://github.com/kevacoin-project/kevacoin/blob/v0.16.8.0/doc/build-unix.md#berkeley-db Documentation
[```] ~/.config/vlc/vlcrc
sftp-port=22
sftp-user=user
sftp-pwd=password
[```]
[*] Ctrl+N to open network connection
[*] Ctrl+L to open playlist menu
[```]
pgrep keyword
[```]
[```]
apt install git cmake zip libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libfribidi-dev libmpg123-dev
git clone --recursive --branch release https://git.skyjake.fi/gemini/lagrange
cd lagrange
mkdir build
cd build
cmake .. -DCMAKE[_]BUILD_TYPE=Release -DENABLE_WEBP=YES -DENABLE[_]MPG123=YES
cmake --build .
chmod +x lagrange
./lagrange
[```]
[```]
apt install thunar-archive-plugin
[```]
Download in max resolution:
[```]
yt-dlp CHANNEL[_]URL|PLAYLIST_URL|VIDEO[_]URL
[```]
Change default resolution to 1080:
[```]
yt-dlp CHANNEL[_]URL|PLAYLIST_URL|VIDEO[_]URL -S res:1080
[```]
Download to location by source meta mask:
[```]
yt-dlp CHANNEL_URL/playlists -o '%(uploader)s/%(playlist)s/%(title)s.%(ext)s'
[```]
Extract audio:
[```]
yt-dlp CHANNEL[_]URL|PLAYLIST_URL|VIDEO[_]URL --extract-audio --audio-format vorbis
[```]
Get help:
[```]
yt-dlp --help
[```]
Run from repository folder:
[```]
zip modified-files.zip $(git ls-files --modified)
[```]
1. Add following lines into the jail configuration:
[```] /etc/fail2ban/jail.local
[DEFAULT]
backend = systemd
[```]
2. Make sure python3-systemd was installed
[```]
apt install python3-systemd
[```]
3. Restart service:
[```]
systemctl restart fail2ban
[```]
[```] /etc/systemd/system/some.service
[Service]
MemoryHigh=256M
MemoryMax=512M
MemorySwapMax=512M
[```]
[```] about:config
browser.urlbar.decodeURLsOnCopy:true
[```]
[```] valve/game.cfg
voice_enable 0
[```]
[```] /usr/share/X11/xkb/symbols/ue
partial alphanumeric_keys
xkb_symbols "ue" {
include "us(basic)"
name[Group1]= "Adaptive (UE)";
key <AB01> { [z, Z, zcaron, Zcaron] };
key <AB03> { [c, C, ccaron, Ccaron] };
key <AC02> { [s, S, scaron, Scaron] };
key <AC05> { [g, G, gcircumflex, Gcircumflex] };
include "level3(ralt_switch)"
};
[```]
[```] ~/.xinitrc
setxkbmap -layout ue,ua
setxkbmap -option 'grp:alt[_]shift[_]toggle'
[```]
[=>] 8da23f3fab3e73470a655094bc6e78c54d08b8bdc67725189e2ac532add3b466
[```] /etc/manticoresearch/manticore.conf
searchd {
binlog_flush = 1
}
[```]
[=>] https://manual.manticoresearch.com/Logging/Binary_logging#Binary-flushing-strategies
Install previous version beside latest one:
[```]
rustup install 1.63
[```]
Run:
[```]
cargo +1.63 run --release
[```]
immediately:
[```]
xset dpms force off
[```]
10 minutes of inactivity:
[```]
xset dpms 600
[```]
one hour of inactivity:
[```]
xset dpms 3600 3600
[```]
turn off DPMS:
[```]
xset -dpms
[```]
turn on DPMS:
[```]
xset +dpms
[```]
[```] ~/.bash_profile | zprofile
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec startx
fi
[```]
[=>] https://wiki.archlinux.org/title/Xinit#Autostart[_]X_at[_]login
[```] ~/.xinitrc
exec i3
[```]
[*] cp .ovpn /etc/openvpn/client.conf
[*] systemctl daemon-reload
[*] systemctl start openvpn
Just for a note:
[```]
setxkbmap -layout us,fr
setxkbmap -option 'grp:alt[_]shift[_]toggle'
[```]
Empty value to reset option values:
[```]
setxkbmap -option
[```]
Make rules permanent:
[```]
/.xinitrc
[```]
Add name server:
[```] /etc/resolv.conf
nameserver xx.xx.xx.xx
[```]
Disable settings overwrite on system reboot:
[```] /etc/dhcp/dhclient.conf
[#] domain-name, domain-name-servers, domain-search, host-name,
[#] dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
[```]
Alternatively:
[```] /etc/NetworkManager/NetworkManager.conf
[main]
dns=none
[```]
Before, I have changed backlight with:
[```]
xrandr --output eDP --brightness 0.8
[```]
But after switching to Debian / i3, found that screen brightness correction works not like before - even the picture less bright, it looks like back or foreground LED ones still turned on max.
After some time of researching, found new option for my hardware configuration (it was 255 by default):
[```]
echo 50 > /sys/class/backlight/radeon_bl1/brightness
[```]
Now picture looks more contrast and colorful, before apply the recipe above, I had changed acpi_backlight to native in
[```] /etc/default/grub
GRUB[_]CMDLINE_LINUX_DEFAULT="quiet acpi[_]backlight=native"
[```]
then
[```]
update-grub
[```]
Some tips:
[=>] https://wiki.archlinux.org/title/Backlight
Found old mini CD with my first web-projects backup.
Unfortunately, can't read it:
[```] mount /dev/sr0 /mnt/cdrom
mount: /mnt/cdrom: can't read superblock on /dev/sr0.
dmesg(1) may have more information after failed mount system call.
[```]
[```] dmesg
sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID[_]OK driverbyte=DRIVER_OK cmd[_]age=0s
sr 1:0:0:0: [sr0] tag#0 Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0] tag#0 Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x1000 phys_seg 1 prio class 2
EXT4-fs (sr0): unable to read superblock
[```]
As the disk was recorded on Windows, tried to mount with -t but no luck:
[##] iso9660
[```] dmesg
isofs[_]fill_super: bread failed, dev=sr0, iso[_]blknum=16, block=16
[```]
[##] udf
[```] dmesg
I/O error, dev sr0, sector 64 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
I/O error, dev sr0, sector 1024 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
I/O error, dev sr0, sector 2048 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
...
UDF-fs: error (device sr0): udf[_]read[_]tagged: read failed, block=512, location=512
UDF-fs: warning (device sr0): udf[_]load[_]vrs: No anchor found
UDF-fs: warning (device sr0): udf[_]fill[_]super: No partition found (1)
...
[```]
R.I.P. nostalgy, maybe once I'll decode you, even probably encrypted also with RAR :)