RSSAmplifier

Blog

Home on Sebastian Korotkiewicz - Tech{{log}}

Recent content in Home on Sebastian Korotkiewicz - Tech{{log}}

sekor.eu.orgRSS feed ↗139 posts

Latest posts

The Bureau of Luminous Mechanics

A Legal and Philosophical Framework for Religious Recognition What makes being human so special. The Cold: The stars burn, atoms collide, and entropy increases. It’s a machine. The Warm: But inside that machine, there are tiny sparks of awareness capable of feeling love, curiosity, and wonder. PREAMBLE This document establishes the foundational principles, governance structure, and legal…

Stupid Question

You are asking: “Are we just small bugs in a giant computer, and is our tiny brain the bottleneck?" The short answer is: Yes, we are likely limited, but that limitation is exactly what makes us special. Here is the breakdown of that scary thought: 1. The “Bandwidth” Problem (Yes, we are limited) The human brain is a biological organ evolved to survive on the African savanna…

Neuro-Generated Content (NGC)

Neuro-Generated Content: Legal Framework Proposal Definition Neuro-Generated Content (NGC) refers to creative works produced through the interpretation and transformation of human neural signals (EEG, fMRI, or other brain-computer interface data) by artificial intelligence systems. Unlike purely AI-generated content, NGC explicitly recognizes the human brain as an active co-creator in the…

Physical Containers

Physical Containers: Bringing the Concept of Digital Isolation into the Real World Because safety, like code, should run in isolation. 1. Abstract In modern computing, containerization has revolutionized how we build, deploy, and isolate software systems. Technologies like Docker and Kubernetes introduced a new paradigm — lightweight, isolated environments that share a host’s resources while…

piper-tts-onnx on archlinux

download piper-voices: https://huggingface.co/rhasspy/piper-voices/ ls ~/.config/speech-dispatcher/voices/ de_DE-thorsten-high.onnx de_DE-thorsten-medium.onnx.json en_US-lessac-low.onnx en_US-ryan-medium.onnx.json pl_PL-gosia-medium.onnx de_DE-thorsten-high.onnx.json en_US-amy-medium.onnx en_US-lessac-low.onnx.json pl_PL-darkman-medium.onnx pl_PL-gosia-medium.onnx.json de_DE-thorsten-medium.onnx…

Protect forgejo with Anubis

pacman -S anubis cp /usr/share/doc/anubis/data/botPolicies.yaml /etc/anubis/gitea.botPolicies.yaml cp /etc/anubis/default.env /etc/anubis/forgejo.env cat /etc/anubis/forgejo.env BIND=:8923 DIFFICULTY=4 METRICS_BIND=:9090 SERVE_ROBOTS_TXT=0 TARGET=http://localhost:3025 # forgejo port systemctl enable --now anubis@forgejo.service # cat /etc/nginx/sites-enabled/git.sekor.eu.org.conf server { listen…

MacOS like 'open' for Linux

One thing I enjoy on my work Mac is the ‘open’ command. For the uninitiated, the command is treated similar to xdg-open. This script, saved as /usr/local/bin/open has basically the same outcome as the Mac ‘open’ command. Try it in a directory, or try using it on some file. xdg-open "$1" &> /dev/null &

Setting Up Ableton Live with Wine

1. Configure Wine for 64-bit Architecture Set Wine to 64-bit mode and specify a custom Wine prefix directory: export WINEARCH=win64 export WINEPREFIX=~/.wine64.ableton mkdir -p "$WINEPREFIX" 2. Run Wine Configuration Launch Wine and select Windows 7 as the operating system: wine64 winecfg 3. Navigate to Wine Directory Move into your designated Wine directory: cd "$WINEPREFIX" 4. Install Required…

Send and Receive Files from the Server with sftp with resume

Downloading a File from the Server echo "get /var/www/html/d.zip /home/user/" | sftp root@a.sekor.eu.org # directory: echo "get -r /root/test" | sftp -r root@a.sekor.eu.org This will download the file d.zip from the server directory /var/www/html/ to your local directory /home/user/. Uploading a File to the Server echo "put /home/user/d.zip /var/www/html/" | sftp root@a.sekor.eu.org # directory:…

Santa Clarita Diet Season 4

Audio: https://sekor.eu.org/santa4-en.wav (Made with piper) Chapter 1: “New Tastes of Life” Santa Clarita seemed to be slowly returning to normal. Well, at least on the surface. Sheila Hammond felt that her body—though dead—was undergoing further changes. Every day, she had more energy, but also an increasing difficulty controlling her “desires.” Joel did what he could to…

Using your Android phone as a Webcam on Linux

Installing the dependencies First of all you need to install some dependencies: sudo pacman -S scrcpy dkms v4l2loopback-dkms Then you need to load the module: sudo modprobe v4l2loopback exclusive_caps=1 Usage Camera Sharing For using the front camera, first enable usb debugging in your phone, then connect your phone via cable and run this command in terminal: scrcpy --video-source=camera…

Setup user autostart and properly configure systemd in Arch Linux

Create user: useradd -m -s /bin/bash username Create example service, like node app: nano ~/.config/systemd/user/app.service containing: [Unit] Description=One of the servers [Service] ExecStart=/usr/bin/node /home/username/server.js [Install] WantedBy=default.target From root run: loginctl enable-linger username and from user add: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/bus to…

When the Tech Giants Falter: SourceHut Unreachable for 3 Hours, Hacker News Takes a Brief Hiatus

Today, in the virtual realm, a seismic disturbance rippled through the tech landscape as two well-known platforms, SourceHut and Hacker News (HN), began causing headaches for users worldwide. SourceHut Tremors: 3 Hours of Silence First on the list is SourceHut, the hosting platform renowned for its minimalist approach and commitment to user privacy. However, for the past hour, access to the…

5 Bizarre Programming Languages

5 Bizarre Programming Languages If you think programming languages are just about semicolons and curly braces, think again! There are some truly unique and bizarre programming languages out there. In this post, we’ll explore five of them, along with their quirky “Hello World” examples. 1. Brainfuck Brainfuck is a minimalist and esoteric programming language. It uses only eight…

The Power of Orange

The Power of Orange: Captivating Minds and Boosting Success Have you ever wondered why many renowned brands and businesses choose orange as a part of their visual identity? Why do numerous advertisements and websites use this color to grab attention? It turns out that the color orange possesses a potent magic that can help you earn money and achieve success in the world of business. In this…

Be Wary of Temu: What You Should Know Before Making a Purchase!

Be Wary of Temu: What You Should Know Before Making a Purchase! Exercise caution when dealing with Temu! It’s a perilous pitfall that can devour your finances and trust. Here are several reasons to steer clear of transactions on this platform: Instead, contemplate procuring items from reputable platforms and trustworthy vendors. Maintain vigilance! Individuals, exercise caution when dealing…

Quick Guide to Imperial Measurements

Exploring the Fascinating World of the Imperial System In today’s post, I would like to delve into the captivating world of the Imperial system. While most of us are accustomed to metric units of measurement, it’s worth getting acquainted with how Americans and some other countries utilize the Imperial system. Learn how to convert inches to thumbs, feet to steps ^_^, and even how to…

How to Store NPM Packages Cache on a Local Server

If you want to move the Node.js/React package cache to a local server, there are several approaches you can consider. One of them is using a private npm registry like Verdaccio and setting it up on your server. Install and configure Verdaccio on your local server. You can find more information on the Verdaccio project’s website (https://verdaccio.org/). Run the Verdaccio server on your local…

Earth Speed Units (ESU)

ESU is a new unit of measurement for speed that is designed to be more intuitive and user-friendly than traditional units. It is based on the speed of a car traveling at 100 km/h on a level road on the Earth’s surface. Converting from km/h to ESU To convert a speed from km/h to ESU, you can use the following formula: ESU = (speed in km/h / 100 km/h) * 1 ESU

Start With Yolo V6

Create conda environment: $ conda create -n yolo python=3.8 -y Activate environment: $ conda activate yolo Download repo and install dependencies: $ git clone https://github.com/meituan/YOLOv6 && cd YOLOv6 $ pip install -r requirements.txt Download a pretrained model from the YOLOv6 release Create new directory for frames: $ mkdir input/ Split video to frames: ffmpeg -i stepup.mp4…

Learning Chmod Permissions in 30 Seconds

Scary about “drwxr-xr-x”? Don’t worry, in 30 seconds you’ll be able to read it! Chmod always contains three groups, the first is (u)ser, then (g)roup and finally (o)ther (public) -|rw-|r--|r-x | 1 | 2 | 3 | u | g | o (u)ser: user can (r)ead and (w)rite (g)roup: user in this same group can (r)ead. (o)thers/public: can (r)ead and e(x)ecute. U = User (1) G = Group (2) O =…

Systemd Without Root and with Instances

A user Systemd service should be placed in ~/.config/systemd/user/ directory if you want to have full ownership as normal user. Create it if it doesn’t exist. mkdir -p ~/.config/systemd/user/ Create a systemd service unit file under the directory. The @ symbol indicates that a substitution will be made. Systemd will take whatever you type after it and replace the variable %i inside the service…

How to warn ESLint on TODO/FIXME/XXX

Hmm, simple add to .eslintrc.js no-warning-comments. My config: module.exports = { extends: ["blitz"], rules: { "no-unused-vars": "warn", "no-console": "warn", "no-empty": "off", "no-warning-comments": ["warn", { terms: ["todo", "fixme", "xxx"], location: "anywhere" }], }, } yes, its a array…

Mounting an NTFS disk on macOS

Unfortunately NTFS is not natively supported on macOS, but sometimes we need write access to an NTFS disk. EDIT: Now you can install the official osxfuse without any problem. brew tap gromgit/homebrew-fuse brew reinstall macfuse brew install ntfs-3g-mac And securely mount your USB drive in a read-write access: sudo /usr/local/bin/ntfs-3g /dev/disk3s1 /Volumes/NTFS -olocal -oallow_other -o…

Stockfish 13 vs Stockfish 14

I wrote a simple API server with socket.io in NodeJS that spawns a child_process, (stockfish’s). Which allowed me to write a small App in React with chessground (component from lichess.org) to graphically present the game with stockfish. :) Stockfish 13 installed from brew on macOS and Stockfish 14 compiled on macOS from source code. These are my results: Start FEN for every tests:…

Vim Cheat Sheet

A Great Vim Cheat Sheet Essentials Cursor movement (Normal/Visual Mode) h j k l - Arrow keys w / b - Next/previous word W / B - Next/previous word (space seperated) e / ge - Next/previous end of word 0 / $ - Start/End of line ^ - First non-blank character of line (same as 0w) Editing text i / a - Start insert mode at/after cursor I / A - Start insert mode at the beginning/end of the line o / O -…

Latest projects

table { border-collapse: collapse; } thead tr th{ background-color: #eee; } td, thead tr th { padding: 7px; border-top: 1px solid #ccc; } tr:hover { background-color: #eee; } small { float: right; } Project Repo Description boger.js.org - Chat with random strangers send photos talk on video kucos.js.org Github Comments and kudos server for static websites hashchat.js.org Github Chat with person…

My Chess on Eve party

Do you like to play chess? I learned exactly on December 31, 2019, at a friend’s New Year’s Eve party. Since then, there’s not a day I don’t play chess. My favorite site to play online chess is lichess.org, free and no ads. Where I can easily analyze games and learn from my mistakes, just like with chess tasks I can train my skills continuously, or with the help of studies…

Convert all FLAC music collection to Apple Lossless (ALAC)

It preserve the metadata by itself. To do every flac in a directory: for f in ./*.flac; do ffmpeg -i "$f" -c:v copy -c:a alac "${f%.*}.m4a"; done mkdir ALAC mv *.m4a ALAC

Javascript

I&rsquo;ve always programmed in PHP, but a year ago a school friend asked me to help him with a program written in javascript, I immediately wrote him a program in php, but he intrigued me with javascript and since then I started using javascript! Today thanks to my friend I am programming in React and NodeJS and I think JavaScript is the best programming language <3 Today I am at a fairly high…

Restore Wifi Password

STEP 1 - Get Handshake Check if your wireless card does support monitor mode. If you do not see an interface listed then your wireless card does not support monitor mode. airmon-ng Put your network device into monitor mode # airmon-ng start wlan0 Listen for all nearby beacon frames to get target BSSID and channel # airodump-ng wlan0mon Start listening for the handshake # airodump-ng --channel 6…

My Daily Blog

My plan for the new year 2021 is to blog daily! ^_^

Quickly install openjdk-8-jre-headless on Debian without apt-get

Manually installation wget https://github.com/ojdkbuild/contrib_jdk8u-ci/releases/download/jdk8u212-b04/jdk-8u212-ojdkbuild-linux-x64.zip \ -O /tmp/jdk-8u212-ojdkbuild-linux-x64.zip unzip /tmp/jdk-8u212-ojdkbuild-linux-x64.zip /usr/lib/jvm/ rm /tmp/jdk-8u212-ojdkbuild-linux-x64.zip Add PATH to your .bashrc export PATH=$PATH:/usr/lib/jvm/jdk-8u212-ojdkbuild-linux-x64/jre/bin Done

My GPG setup for developing and more

Generating a new GPG key If you don&rsquo;t have your own GPG key yet, it&rsquo;s time to generate one for yourself, you can find a great guide on the GitHub website. Enter a valid email address! $ gpg --full-generate-key Telling Git about your GPG key Git supports signing your commits with GPG, we already have our generated key, so we can add it to our Git client so that every new commit is…

Create a Tor Website with Nginx and PHP

li { padding-bottom: 5px; } Step 1: Install Debian Prepare Debian to install https packages sudo apt install apt-transport-https Step 2: Install Nginx and PHP sudo apt install nginx php7.3-fpm sudo rm /etc/nginx/sites-enabled/default sudo nano /etc/nginx/sites-enabled/default Add the followings to the new /etc/nginx/sites-enabled/default and save: server { listen 127.0.0.1:8080 default_server;…

Isso comments system on Debian

Add isso user useradd isso and then mkdir /home/isso/ then su - isso Install isso with pip pip install isso Config files cat /etc/systemd/system/isso.service [Unit] Description=isso server [Service] User=isso Environment="ISSO_SETTINGS=/home/isso/config/isso.conf" ExecStart=/home/isso/.local/bin/isso -c $ISSO_SETTINGS run [Install] WantedBy=multi-user.target cat /home/isso/config/isso.conf…

Install Searx on Apache2 and uWSGI

uwsgi Install packages: sudo apt-get install uwsgi uwsgi-plugin-python Add searx user: useradd searx Create the configuration file /etc/uwsgi/apps-enabled/searx.ini with this content: [uwsgi] # Who will run the code uid = searx gid = searx # Number of workers (usually CPU count) workers = 4 # The right granted on the created socket chmod-socket = 666 # Plugin to use and interpretor config…

Automated Let's Encrypt Wildcard Certificates with local BIND

Let&rsquo;s Encrypt has recently started offering free wildcard certificates. Requirements: The client must speak the ACME protocol v02 - the current Certbot >= 0.28 fulfills this, as well as Authentication takes place via DNS While other authentications (via web server, standalone, etc.) are quite easy to automate, it&rsquo;s a bit more difficult with DNS: For authorization you have to set a…

Stream Live with Nginx

Prepare working directory mkdir stream-live && cd stream-live Download nginx Latest nginx can be downloaded from this page. wget http://nginx.org/download/nginx-1.14.0.tar.gz tar -xf nginx-1.14.0.tar.gz Download modules git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git git clone https://github.com/kaltura/nginx-vod-module Compile nginx cd nginx-1.14.0 ./configure…

Stream VoD with Nginx

Prepare working directory mkdir stream && cd stream Download nginx Latest nginx can be downloaded from this page. wget http://nginx.org/download/nginx-1.14.0.tar.gz tar -xf nginx-1.14.0.tar.gz Download modules git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git git clone https://github.com/kaltura/nginx-vod-module Compile nginx cd nginx-1.14.0 ./configure --with-http_ssl_module…

"Bash Here" Context Menu in Windows Explorer

Here for bash Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu Bash Here] @="ConEmu Bash Here" "Icon"="C:\\Users\\sebas\\Desktop\\Programy\\ConEmuPack\\ConEmu64.exe,0" [HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu Bash Here\command] @="\"C:\\Users\\sebas\\Desktop\\Programy\\ConEmuPack\\ConEmu64.exe\" -here -run {bash} -cur_console:n" Here for cmd…

Compare `git add .` vs `git add -A`

Both of these will stage all files, including new files (which git commit -a misses) and deleted files. The difference is that git add -A also stages files in higher directories that still belong to the same git repository. Here&rsquo;s an example: /my-repo .git/ subfolder/ nestedfile.txt rootfile.txt If your current working directory is /my-repo, and that&rsquo;s the root of this git repo (thus…

Activate tap to click on touchpad

Debian Stretch / Arch Linux Remove the xserver-xorg-input-synaptics package. (important) # apt remove xserver-xorg-input-synaptics ## Arch [root@arch ~]# pacman -Ss libinput extra/libinput 1.12.3-1 [installed] Input device management and event handling library extra/xf86-input-libinput 0.28.1-1 (xorg-drivers) [installed] Generic input driver for the X.Org server based on libinput Install…

Show percentage of already started DD

To get started, install the pv package: pacman -S pv Run dd, then, in a separate shell, invoke the following command: sudo pv -d $(pidof dd) or start over from the beginning : pv /path/to/isofile | sudo dd of=/dev/sdX

Create ddns on your current bind9 server

Tasks. We have example.com server with bing9 server. At home we have a server with dynamic IP. Pin the dynamic IP to your own server. -> home.example.com Server The document asserts a working BIND setup already in place. Installing and configuring BIND is out of scope here. Creating a key-pair To create a key-pair, we&rsquo;ll be using dnssec-keygen. server$ dnssec-keygen -a HMAC-SHA512 -b 512 -n…

Create user, datebase and grant permission in MySQL/PostgreSQL

MySQL 1.Login to MySQL mysql -u root -p 2.Create new user CREATE USER 'forum'@'localhost' IDENTIFIED BY 'password'; 3.Create datebase for user CREATE DATABASE forum; 4.Grant all permission for user datebase GRANT ALL PRIVILEGES ON forum.* TO 'forum'@'localhost'; PostgreSQL 1.Creating user sudo -u postgres createuser <username> 2.Creating Database sudo -u postgres createdb <dbname> 3.Giving the…

Gitlab with Apache2 Reverse Proxy

This is my config for gitlab with apache2 reverse proxy, Web IDE works! <VirtualHost *:80> ServerName gitlab.itunix.eu ServerAlias gitlab.itunix.eu mt.itunix.eu www.gitlab.itunix.eu www.mt.itunix.eu ServerAdmin skorotkiewicz@gmail.com RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://gitlab.itunix.eu/$1 [NC,R,L] </VirtualHost> <VirtualHost *:443> ServerName…

Fix GitLab is taking too much time to respond. 502 Error

Solution by iamchanghyunpark &ldquo;I checked the pid value in the log and checked if there was a running process with the same pid, and no there was none. I&rsquo;m guessing this is because of the unexpected powerdown, and unicorn.pid was not properly cleared. My solution was simple&rdquo; docker-compose exec gitlab bash vi log/unicorn.stderr.log # remove the value (which is the pid), save and…

Homeautomation - detect presence of Wifi devices

A simple shell script to detect presence of Wifi devices (smartphones, tablets, Amazon Dash Buttons, ..) and post the results via MQTT. This information can be processed in Homeautomation Systems to turn down the heating when everyone left the appartment. Install the MQTT client on your Router Install the packages with opkg opkg install mosquitto-client opkg install coreutils-nohup or with luci.…

Minio: How's bucket policy related to anonymous/authorized access?

thanks Cumbu from stackoverflow.com! &lsquo;public&rsquo; is valid policy&hellip; You can change this policy: install mc (minio client) and then: # list default hosts after install: mc config host ls # remove all hosts: mc config host rm {hostName} mc config host rm local # add your host: mc config host add {hostName} {url} {apiKey} {apiSecret} mc config host add local http://127.0.0.1:9000…