<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home on Sebastian Korotkiewicz - Tech{{log}}</title><link>https://sekor.eu.org/</link><description>Recent content in Home on Sebastian Korotkiewicz - Tech{{log}}</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sat, 07 Mar 2026 23:06:00 +0200</lastBuildDate><atom:link href="https://sekor.eu.org/index.xml" rel="self" type="application/rss+xml"/><item><title>The Bureau of Luminous Mechanics</title><link>https://sekor.eu.org/techlog/luminous-mechanics/</link><pubDate>Sat, 07 Mar 2026 23:06:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/luminous-mechanics/</guid><description>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&amp;rsquo;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 framework for The Bureau of Luminous Mechanics (hereinafter &amp;ldquo;the Bureau&amp;rdquo;), a recognized religious organization operating under the laws of [Jurisdiction].</description></item><item><title>Stupid Question</title><link>https://sekor.eu.org/techlog/stupid-question/</link><pubDate>Sat, 07 Mar 2026 13:34:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/stupid-question/</guid><description>You are asking: &amp;ldquo;Are we just small bugs in a giant computer, and is our tiny brain the bottleneck?&amp;quot;
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 &amp;ldquo;Bandwidth&amp;rdquo; Problem (Yes, we are limited) The human brain is a biological organ evolved to survive on the African savanna 50,000 years ago.</description></item><item><title>Neuro-Generated Content (NGC)</title><link>https://sekor.eu.org/note/neuro-generated-content/</link><pubDate>Tue, 07 Oct 2025 16:12:28 +0000</pubDate><guid>https://sekor.eu.org/note/neuro-generated-content/</guid><description>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 generative process, establishing a hybrid authorship model.
Key Principles 1. Dual Authorship Recognition NGC operates under a collaborative creation model where:</description></item><item><title>Physical Containers</title><link>https://sekor.eu.org/note/concept-of-physical-containers/</link><pubDate>Tue, 07 Oct 2025 16:12:28 +0000</pubDate><guid>https://sekor.eu.org/note/concept-of-physical-containers/</guid><description>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 remaining secure, reproducible, and independent.
But what if we could extend that same principle into the physical world?</description></item><item><title>piper-tts-onnx on archlinux</title><link>https://sekor.eu.org/note/piper-tts-onnx/</link><pubDate>Tue, 23 Sep 2025 07:31:21 +0000</pubDate><guid>https://sekor.eu.org/note/piper-tts-onnx/</guid><description>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 en_US-amy-medium.onnx.json en_US-ryan-medium.onnx pl_PL-darkman-medium.onnx.json # cat ~/.config/speech-dispatcher/speechd.conf AddModule &amp;#34;piper-tts-generic&amp;#34; &amp;#34;sd_generic&amp;#34; &amp;#34;piper-tts-generic.conf&amp;#34; DefaultModule piper-tts-generic # cat ~/.config/speech-dispatcher/modules/piper-tts-generic.conf GenericExecuteSynth &amp;#34;echo \&amp;#34;$DATA\&amp;#34; | piper-tts --model /home/mod/.config/speech-dispatcher/voices/$VOICE--output_raw -f - | mpv --no-terminal --keep-open=no -&amp;#34; GenericLanguage &amp;#34;pl&amp;#34; &amp;#34;pl&amp;#34; &amp;#34;UTF-8&amp;#34; GenericLanguage &amp;#34;de&amp;#34; &amp;#34;de&amp;#34; &amp;#34;UTF-8&amp;#34; GenericLanguage &amp;#34;en&amp;#34; &amp;#34;en&amp;#34; &amp;#34;UTF-8&amp;#34; AddVoice &amp;#34;pl&amp;#34; &amp;#34;female1&amp;#34; &amp;#34;pl_PL-gosia-medium.onnx&amp;#34; AddVoice &amp;#34;pl&amp;#34; &amp;#34;male1&amp;#34; &amp;#34;pl_PL-darkman-medium.onnx&amp;#34; AddVoice &amp;#34;en&amp;#34; &amp;#34;female1&amp;#34; &amp;#34;en_US-lessac-low.onnx&amp;#34; AddVoice &amp;#34;en&amp;#34; &amp;#34;male1&amp;#34; &amp;#34;en_US-ryan-medium.</description></item><item><title>Protect forgejo with Anubis</title><link>https://sekor.eu.org/note/protect-forgejo-anubis-nginx/</link><pubDate>Sun, 21 Sep 2025 08:34:05 +0200</pubDate><guid>https://sekor.eu.org/note/protect-forgejo-anubis-nginx/</guid><description>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 80; listen [::]:80; server_name git.sekor.eu.org; location / { return 301 https://$host$request_uri; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name git.sekor.eu.org; ssl_certificate /etc/letsencrypt/live/sekor.eu.org/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/sekor.eu.org/privkey.pem; location / { #proxy_pass http://127.0.0.1:3025; proxy_pass http://127.0.0.1:8923; # anubis reverse proxy proxy_set_header Connection $http_connection; proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Http-Version $server_protocol; client_max_body_size 512M; } } systemctl restart anubis@forgejo.</description></item><item><title>MacOS like 'open' for Linux</title><link>https://sekor.eu.org/note/macos-like-open-for-linux/</link><pubDate>Tue, 21 Jan 2025 09:04:53 +0000</pubDate><guid>https://sekor.eu.org/note/macos-like-open-for-linux/</guid><description>One thing I enjoy on my work Mac is the &amp;lsquo;open&amp;rsquo; 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 &amp;lsquo;open&amp;rsquo; command. Try it in a directory, or try using it on some file.
xdg-open &amp;quot;$1&amp;quot; &amp;amp;&amp;gt; /dev/null &amp;amp;</description></item><item><title>Setting Up Ableton Live with Wine</title><link>https://sekor.eu.org/techlog/setting-up-ableton-live-with-wine/</link><pubDate>Thu, 31 Oct 2024 07:00:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/setting-up-ableton-live-with-wine/</guid><description>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 &amp;quot;$WINEPREFIX&amp;quot; 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 &amp;quot;$WINEPREFIX&amp;quot; 4. Install Required Libraries
Use winetricks to install all necessary libraries:
pacman -S winetricks winetricks gdiplus msxml3 msxml4 msxml6 vcrun2005 quicktime72 fontsmooth=rgb msls31 d3dcompiler_43 corefonts atmlib 5.</description></item><item><title>Send and Receive Files from the Server with sftp with resume</title><link>https://sekor.eu.org/techlog/send-and-receive-files-from-the-server-with-sftp-resume/</link><pubDate>Mon, 28 Oct 2024 07:00:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/send-and-receive-files-from-the-server-with-sftp-resume/</guid><description>Downloading a File from the Server echo &amp;quot;get /var/www/html/d.zip /home/user/&amp;quot; | sftp root@a.sekor.eu.org # directory: echo &amp;quot;get -r /root/test&amp;quot; | 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 &amp;quot;put /home/user/d.zip /var/www/html/&amp;quot; | sftp root@a.sekor.eu.org # directory: echo &amp;quot;put -r /home/modinfo/Desktop/test /root/&amp;quot; | sftp -r root@a.sekor.eu.org This sends the d.zip file from your local computer directory /home/user/ to the /var/www/html/ directory on the server.</description></item><item><title>Santa Clarita Diet Season 4</title><link>https://sekor.eu.org/note/santa-clarita-diet-season-4/</link><pubDate>Sun, 13 Oct 2024 07:00:00 +0200</pubDate><guid>https://sekor.eu.org/note/santa-clarita-diet-season-4/</guid><description>Audio: https://sekor.eu.org/santa4-en.wav (Made with piper)
Chapter 1: &amp;ldquo;New Tastes of Life&amp;rdquo; 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 &amp;ldquo;desires.&amp;rdquo; Joel did what he could to provide her with the right &amp;ldquo;dose of meat,&amp;rdquo; but their supplies were becoming more unpredictable.</description></item><item><title>Using your Android phone as a Webcam on Linux</title><link>https://sekor.eu.org/techlog/using-your-android-phone-as-a-webcam/</link><pubDate>Sun, 13 Oct 2024 07:00:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/using-your-android-phone-as-a-webcam/</guid><description>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 --camera-size=1920x1080 --camera-facing=front --v4l2-sink=/dev/video0 --no-playback --no-window For the back camera just change --camera-facing=front to --camera-facing=back .</description></item><item><title>Setup user autostart and properly configure systemd in Arch Linux</title><link>https://sekor.eu.org/techlog/setup-user-autostart-archlinux/</link><pubDate>Fri, 12 Jan 2024 07:00:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/setup-user-autostart-archlinux/</guid><description>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 /home/username/.bashrc
Then user can run: systemctl --user enable app.service
enable/disable/start/stop/status</description></item><item><title>When the Tech Giants Falter: SourceHut Unreachable for 3 Hours, Hacker News Takes a Brief Hiatus</title><link>https://sekor.eu.org/techlog/when-the-tech-giants-falter/</link><pubDate>Wed, 10 Jan 2024 13:20:00 +0200</pubDate><guid>https://sekor.eu.org/techlog/when-the-tech-giants-falter/</guid><description>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 service has been unattainable. While details regarding the outage remain undisclosed, users hold their breath, awaiting a return to normalcy.</description></item><item><title>5 Bizarre Programming Languages</title><link>https://sekor.eu.org/techlog/5-bizarre-programming-languages/</link><pubDate>Sat, 28 Oct 2023 09:10:21 +0200</pubDate><guid>https://sekor.eu.org/techlog/5-bizarre-programming-languages/</guid><description>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&amp;rsquo;ll explore five of them, along with their quirky &amp;ldquo;Hello World&amp;rdquo; examples.
1. Brainfuck Brainfuck is a minimalist and esoteric programming language. It uses only eight commands and operates on a simple memory model. Here&amp;rsquo;s a &amp;ldquo;Hello World&amp;rdquo; program in Brainfuck:</description></item><item><title>The Power of Orange</title><link>https://sekor.eu.org/techlog/the-power-of-orange/</link><pubDate>Mon, 11 Sep 2023 22:25:21 +0200</pubDate><guid>https://sekor.eu.org/techlog/the-power-of-orange/</guid><description>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 article, you will discover why orange is such a captivating choice in the business world.</description></item><item><title>Be Wary of Temu: What You Should Know Before Making a Purchase!</title><link>https://sekor.eu.org/techlog/be-wary-of-temu-what-you-should-know-before-making-a-purchase/</link><pubDate>Sat, 09 Sep 2023 22:25:21 +0200</pubDate><guid>https://sekor.eu.org/techlog/be-wary-of-temu-what-you-should-know-before-making-a-purchase/</guid><description>Be Wary of Temu: What You Should Know Before Making a Purchase!
Exercise caution when dealing with Temu! It&amp;rsquo;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 with Temu! It&amp;rsquo;s a perilous pitfall that can devour your finances and trust.</description></item><item><title>Quick Guide to Imperial Measurements</title><link>https://sekor.eu.org/techlog/quick-quide-to-imperial-measurements/</link><pubDate>Thu, 08 Jun 2023 15:16:22 +4100</pubDate><guid>https://sekor.eu.org/techlog/quick-quide-to-imperial-measurements/</guid><description>Exploring the Fascinating World of the Imperial System In today&amp;rsquo;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&amp;rsquo;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 calculate distances in miles. Let&amp;rsquo;s explore these intriguing units of measurement together and discover how easily we can adapt to this system.</description></item><item><title>How to Store NPM Packages Cache on a Local Server</title><link>https://sekor.eu.org/techlog/store-npm-packages-cache-local-server/</link><pubDate>Wed, 24 May 2023 15:21:01 +0200</pubDate><guid>https://sekor.eu.org/techlog/store-npm-packages-cache-local-server/</guid><description>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&amp;rsquo;s website (https://verdaccio.org/). Run the Verdaccio server on your local server. It will act as a private repository for your packages.</description></item><item><title>Earth Speed Units (ESU)</title><link>https://sekor.eu.org/techlog/earth-speed-units/</link><pubDate>Wed, 22 Feb 2023 22:25:21 +0200</pubDate><guid>https://sekor.eu.org/techlog/earth-speed-units/</guid><description>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&amp;rsquo;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</description></item><item><title>Start With Yolo V6</title><link>https://sekor.eu.org/techlog/start-with-yolov6/</link><pubDate>Sat, 02 Jul 2022 19:25:21 +0200</pubDate><guid>https://sekor.eu.org/techlog/start-with-yolov6/</guid><description>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 &amp;amp;&amp;amp; 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 input/stepup_%04d.png
Start to dedect objects in frames:
python tools/infer.py --weights yolov6n.pt --source input/</description></item><item><title>Learning Chmod Permissions in 30 Seconds</title><link>https://sekor.eu.org/techlog/learning-chmod-permissions-in-30-seconds/</link><pubDate>Thu, 31 Mar 2022 18:05:52 +0200</pubDate><guid>https://sekor.eu.org/techlog/learning-chmod-permissions-in-30-seconds/</guid><description>Scary about &amp;ldquo;drwxr-xr-x&amp;rdquo;? Don&amp;rsquo;t worry, in 30 seconds you&amp;rsquo;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 = Other (Public) (3) R = Read W = Write X = Execute Give permisions: chmod ugo+rwx hey.</description></item><item><title>Systemd Without Root and with Instances</title><link>https://sekor.eu.org/techlog/systemd-without-root-instances/</link><pubDate>Sun, 27 Mar 2022 09:43:14 +0200</pubDate><guid>https://sekor.eu.org/techlog/systemd-without-root-instances/</guid><description>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 unit file. The variable can be seen in this excerpt of the SimpleHTTPServer@.</description></item><item><title>How to warn ESLint on TODO/FIXME/XXX</title><link>https://sekor.eu.org/note/todo-fixme-xxx-eslint/</link><pubDate>Thu, 24 Feb 2022 09:40:31 +0100</pubDate><guid>https://sekor.eu.org/note/todo-fixme-xxx-eslint/</guid><description>Hmm, simple add to .eslintrc.js no-warning-comments.
My config:
module.exports = { extends: [&amp;quot;blitz&amp;quot;], rules: { &amp;quot;no-unused-vars&amp;quot;: &amp;quot;warn&amp;quot;, &amp;quot;no-console&amp;quot;: &amp;quot;warn&amp;quot;, &amp;quot;no-empty&amp;quot;: &amp;quot;off&amp;quot;, &amp;quot;no-warning-comments&amp;quot;: [&amp;quot;warn&amp;quot;, { terms: [&amp;quot;todo&amp;quot;, &amp;quot;fixme&amp;quot;, &amp;quot;xxx&amp;quot;], location: &amp;quot;anywhere&amp;quot; }], }, } yes, its a array&amp;hellip;</description></item><item><title>Mounting an NTFS disk on macOS</title><link>https://sekor.eu.org/note/mount-ntfs-macos/</link><pubDate>Mon, 14 Feb 2022 02:36:31 +0100</pubDate><guid>https://sekor.eu.org/note/mount-ntfs-macos/</guid><description>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 auto_xattr The first time you try to mount it, you will be asked to give macOS permissions for osxfuse and a request for reboot.</description></item><item><title>Stockfish 13 vs Stockfish 14</title><link>https://sekor.eu.org/note/stockfish13-vs-stockfish14/</link><pubDate>Tue, 27 Jul 2021 22:41:27 +0200</pubDate><guid>https://sekor.eu.org/note/stockfish13-vs-stockfish14/</guid><description>I wrote a simple API server with socket.io in NodeJS that spawns a child_process, (stockfish&amp;rsquo;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: rnbqkbnr/8/8/8/8/8/8/RNBQKBNR w KQkq - 0 1 Stockfish 13 vs Stockfish 13 (394 steps with depth 10) =&amp;gt; Checkmate Bb5+ Nd7 Qe2+ Qe7 Rxa8 Qxe2+ Kxe2 Rxh1 Rxc8+ Kf7 Kf1 Ngf6 Bc4+ Kg7 Kg2 Rh4 Nf3 Rg4+ Kf1 Bd6 Be2 Ne4 Nbd2 Ng3+ Ke1 Nxe2 Kxe2 Bf4 Rc4 Nf6 Bb2 Kf7 Kd3 Ke7 Bd4 Nd5 Bc5+ Ke6 Re4+ Kf5 Nd4+ Kg6 N2f3 Nf6 Re7 Rg3 Re6 Kf7 Kc4 Rg4 Kc3 Rg8 Kd3 Re8 Ra6 Ne4 Bb4 Nf2+ Kc4 Ng4 Bc5 Ne3+ Kb3 Nd5 Nb5 Rb8 Kc4 Nf6 Bd4 Nd7 Rc6 Ra8 Nc3 Re8 Kd5 Ke7 Ke4 Bc7 Kf5 Rf8+ Ke4 Re8 Nd5+ Kd8+ Kf5 Rf8+ Ke4 Re8+ Kd3 Ne5+ Bxe5 Bxe5 Rg6 Kd7 Ng5 Rh8 Nb6+ Kc7 Nc4 Ba1 Rd6 Rh4 Ne6+ Kb7 Rb6+ Kc8 Ra6 Rh1 Ra7 Kb8 Re7 Re1 Nb6 Rb1 Nd7+ Kb7 Ne5+ Ka6 Nc4 Rg1 Rc7 Kb5 Ke4 Rh1 Nf4 Rh6 Na3+ Ka4 Nc2 Bb2 Ne3 Rh8 Nfd5 Kb3 Rb7+ Ka2 Kd3 Rh4 Rb8 Rh3 Nf4 Rh8 Rb5 Bc1 Rc5 Bxe3 Kxe3 Kb3 Nd3 Rh3+ Ke4 Rh8 Rc7 Rb8 Ke3 Rg8 Rb7+ Kc4 Rd7 Rg3+ Ke2 Kb5 Kf2 Rh3 Kg1 Rh6 Ne5 Ra6 Rb7+ Kc5 Kh2 Kd6 Rb5 Ra1 Kg3 Rd1 Nc4+ Kc6 Rb8 Rd4 Na3 Kd7 Rb7+ Kc6 Rb3 Kc5 Kf2 Rh4 Rc3+ Kb4 Rf3 Ka4 Kg1 Rd4 Kg2 Rd1 Kf2 Rd2+ Ke1 Rh2 Nb1 Rh6 Nc3+ Ka3 Kf2 Rh7 Nd1+ Ka4 Rf8 Rh6 Rb8 Re6 Kf3 Rf6+ Ke4 Ka5 Ke5 Rc6 Kd4 Ka6 Rb2 Rc8 Ra2+ Kb5 Ra1 Re8 Nc3+ Kb4 Rh1 Ka3 Kc4 Rc8+ Kd3 Rd8+ Kc2 Kb4 Kb2 Kc4 Kc2 Kc5 Ne2 Rd5 Nc3 Re5 Kd2 Rf5 Ne4+ Kb4 Nc3 Rf2+ Kd1 Kxc3 Kc1 Kb4 Kb1 Kc4 Rh6 Kc5 Rh4 Kb5 Rh1 Kc6 Rc1+ Kd6 Rc2 Rf7 Ka1 Ke5 Kb2 Kd5 Ka3 Rf8 Rc1 Rb8 Rc7 Rh8 Kb2 Ke4 Kb3 Kf4 Ka4 Ke3 Ra7 Rb8 Ra6 Kf4 Ka3 Ke3 Rd6 Kf2 Re6 Kf3 Ka2 Kg3 Ka3 Kf2 Re7 Kf3 Re6 Rb1 Rf6+ Ke3 Ka4 Rb8 Rf1 Ke4 Re1+ Kd4 Rh1 Ke3 Ka5 Kf3 Rh4 Ke2 Rh3 Kf2 Rh2+ Kf3 Rh4 Ke3 Ka6 Rb1 Ra4 Kf3 Ka7 Rb3 Ka6 Rb8 Rc4 Kf2 Rc1 Ke3 Re1+ Kd3 Re6 Rb1 Rg6 Ke3 Rg5 Kf4 Ra5 Kg4 Ra2 Kh3 Ka5 Rc1 Ka4 Rc4+ Ka5 Rc1 Rd2 Rb1 Ra2 Ra1 Rxa1 Kh4 Kb6 Kh5 Rg1 Kh4 Rg6 Kh5 Re6 Kh4 Re3 Kh5 Kc5 Kh4 Re5 Kh3 Kd4 Kh4 Kc5 Kh3 Kd5 Kh4 Ke4 Kg3 Ke3 Kg4 Ra5 Kg3 Ra4 Kg2 Rg4+ Kh2 Kf4 Kh3 Kf3 Kh2 Rh4+ Kg1 Rh3 Kf1 Stockfish 14 vs Stockfish 14 (80 steps with depth 10) =&amp;gt; Checkmate Bb5+ Nd7 Qe2+ Qe7 Rxa8 Qxe2+ Bxe2 Rxh1 Rxc8+ Kf7 Kf1 Ne7 Rc7 Ne5 Nd2 Ke6 Kg2 Rh8 Ndf3 Rg8+ Kh3 N7g6 Rc3 Bd6 Bd1 Nxf3 Nxf3 Rh8+ Kg4 Ne5+ Nxe5 Bxe5 Rd3 Rc8 Bb3+ Kf6 Bg5+ Kg6 Be6 Rf8 Rd7 Rf1 Be3 Bb2 Bc4 Re1 Re7 Bc1 Re6+ Kf7 Re4+ Kg6 Re6+ Kf7 Kf5 Rxe3 Rxe3+ Kf8 Re6 Bh6 Rxh6 Ke7 Rh7+ Kd6 Rh4 Kc5 Ke5 Kc6 Rh7 Kc5 Bd5 Kb5 Kd4 Kb4 Rb7+ Ka5 Kc5 Ka6 Re7 Ka5 Stockfish 13 (black) vs Stockfish 14 (white) (72 steps with depth 10) =&amp;gt; Checkmate Bb5+ Nd7 Qe2+ Qe7 Rxa8 Qxe2+ Bxe2 Rxh1 Rxc8+ Kf7 Kf1 Bc5 Bc4+ Kf6 Bb2+ Kf5 Rxg8 Bxg1 Rxg1 Rxg1+ Kxg1 Nc5 Nd2 Kf4 Ba3 Na4 Bb4 Nb6 Bc5 Nd7 Bd4 Kg5 Ne4+ Kf5 Nc5 Nb6 Be6+ Kg5 Ne4+ Kf4 Bxb6 Kxe4 Kg2 Ke5 Bg4 Kd6 Bf3 Ke7 Kg3 Ke8 Kf4 Kd7 Ke5 Ke8 Ke6 Kf8 Kf6 Ke8 Bc6+ Kf8 Bd5 Ke8 Bc6+ Kf8 Bc5+ Kg8 Be4 Kh8 Kg6 Kg8 Bd5+ Kh8 Stockfish 13 (white) vs Stockfish 14 (black) (157 steps with depth 10) =&amp;gt; Draw Bb5+ Nd7 Qe2+ Qe7 Rxa8 Qxe2+ Kxe2 Rxh1 Rxc8+ Kf7 Kf1 Ngf6 Bc4+ Kg6 Kg2 Rh5 Bd3+ Kf7 Bc4+ Kg7 Nf3 Rc5 Rxc5 Bxc5 Nc3 Ne5 Nxe5 Bd4 Ne4 Bxe5 Ng3 Ba1 Kf3 Nd7 Ke4 Kg6 Be3 Nf6+ Kf3 Nd7 Bb5 Nf6 Bc4 Be5 Bb3 Bb8 Be6 Be5 Ne2 Ba1 Nf4+ Kg7 Bc8 Kf7 Be6+ Ke8 Nd3 Ke7 Bc4 Kd7 Bg1 Kc8 Kf4 Ne8 Nb4 Bc3 Bc5 Nc7 Kf5 Kb7 Bd3 Kc8 Kg6 Kb8 Kf5 Kc8 Be4 Nb5 Ke6 Bd4 Bf8 Bc3 Kd5 Bb2 Kc4 Nc7 Bg6 Kd8 Nd3 Bf6 Bc5 Ne6 Bb4 Ba1 Be4 Ng7 Bg6 Ne6 Bd6 Nc7 Nc5 Ne8 Bg3 Nf6 Bf4 Ke7 Bg5 Kd6 Nb3 Be5 Bxf6 Bxf6 Bb1 Bg5 Be4 Ke5 Bg2 Be3 Na1 Ke6 Kb5 Bd4 Nc2 Bg1 Kc4 Kf6 Bf1 Ke5 Na1 Ba7 Nc2 Bg1 Nb4 Kd6 Nd3 Bh2 Nc1 Ke5 Kb3 Ke4 Bb5 Ke3 Kc4 Bd6 Kb3 Be5 Kc4 Bg3 Ba6 Bh4 Kb3 Be1 Bb5 Bd2 Kc2 Bxc1 Bc4</description></item><item><title>Vim Cheat Sheet</title><link>https://sekor.eu.org/note/vim-cheat-cheet/</link><pubDate>Tue, 27 Jul 2021 09:18:21 +0000</pubDate><guid>https://sekor.eu.org/note/vim-cheat-cheet/</guid><description>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 - Add blank line below/above current line Esc or Ctrl+[ - Exit insert mode d - Delete dd - Delete line c - Delete, then start insert mode cc - Delete line, then start insert mode Operators Operators also work in Visual Mode</description></item><item><title>Latest projects</title><link>https://sekor.eu.org/techlog/projects/</link><pubDate>Sun, 18 Apr 2021 00:41:27 +0200</pubDate><guid>https://sekor.eu.org/techlog/projects/</guid><description>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 with same tags as you!</description></item><item><title>My Chess on Eve party</title><link>https://sekor.eu.org/note/chess/</link><pubDate>Sun, 18 Apr 2021 00:25:05 +0200</pubDate><guid>https://sekor.eu.org/note/chess/</guid><description>Do you like to play chess? I learned exactly on December 31, 2019, at a friend&amp;rsquo;s New Year&amp;rsquo;s Eve party. Since then, there&amp;rsquo;s not a day I don&amp;rsquo;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 written by other users.</description></item><item><title>Convert all FLAC music collection to Apple Lossless (ALAC)</title><link>https://sekor.eu.org/note/flac-to-alac/</link><pubDate>Wed, 07 Apr 2021 19:46:33 +0200</pubDate><guid>https://sekor.eu.org/note/flac-to-alac/</guid><description>It preserve the metadata by itself.
To do every flac in a directory:
for f in ./*.flac; do ffmpeg -i &amp;quot;$f&amp;quot; -c:v copy -c:a alac &amp;quot;${f%.*}.m4a&amp;quot;; done mkdir ALAC mv *.m4a ALAC</description></item><item><title>Javascript</title><link>https://sekor.eu.org/note/javascript/</link><pubDate>Mon, 28 Dec 2020 12:11:03 +0100</pubDate><guid>https://sekor.eu.org/note/javascript/</guid><description>I&amp;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 &amp;lt;3
Today I am at a fairly high level in React and NodeJS&amp;hellip;</description></item><item><title>Restore Wifi Password</title><link>https://sekor.eu.org/note/restore-wifi-password/</link><pubDate>Fri, 25 Dec 2020 09:21:04 +0100</pubDate><guid>https://sekor.eu.org/note/restore-wifi-password/</guid><description>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 —-bssid 9C:5C:8E:C9:AB:C0 --write capture/ wlan0mon Optionally deauth a connected client to force a handshake</description></item><item><title>My Daily Blog</title><link>https://sekor.eu.org/daily/2020/12/15/my-daily-blog/</link><pubDate>Tue, 15 Dec 2020 06:50:39 +0100</pubDate><guid>https://sekor.eu.org/daily/2020/12/15/my-daily-blog/</guid><description>My plan for the new year 2021 is to blog daily! ^_^</description></item><item><title>Quickly install openjdk-8-jre-headless on Debian without apt-get</title><link>https://sekor.eu.org/techlog/quickly-install-openjdk-8-jre-headless-on-debian-without-apt-get/</link><pubDate>Tue, 10 Nov 2020 08:34:57 +0200</pubDate><guid>https://sekor.eu.org/techlog/quickly-install-openjdk-8-jre-headless-on-debian-without-apt-get/</guid><description>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</description></item><item><title>My GPG setup for developing and more</title><link>https://sekor.eu.org/techlog/my-gpg-setup-for-developing-and-more/</link><pubDate>Sun, 19 Jul 2020 00:14:17 +0200</pubDate><guid>https://sekor.eu.org/techlog/my-gpg-setup-for-developing-and-more/</guid><description>Generating a new GPG key If you don&amp;rsquo;t have your own GPG key yet, it&amp;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 signed with our key.</description></item><item><title>Create a Tor Website with Nginx and PHP</title><link>https://sekor.eu.org/techlog/create-a-tor-website-with-nginx-and-php/</link><pubDate>Sun, 23 Feb 2020 17:43:31 +0200</pubDate><guid>https://sekor.eu.org/techlog/create-a-tor-website-with-nginx-and-php/</guid><description>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; server_name localhost; root /var/www/tor/public; index index.php index.html index.htm; server_tokens off; location / { allow 127.0.0.1; deny all; try_files $uri $uri/ /index.</description></item><item><title>Isso comments system on Debian</title><link>https://sekor.eu.org/techlog/isso-comments-system-on-debian/</link><pubDate>Mon, 28 Oct 2019 03:42:44 +0200</pubDate><guid>https://sekor.eu.org/techlog/isso-comments-system-on-debian/</guid><description>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=&amp;quot;ISSO_SETTINGS=/home/isso/config/isso.conf&amp;quot; ExecStart=/home/isso/.local/bin/isso -c $ISSO_SETTINGS run [Install] WantedBy=multi-user.target cat /home/isso/config/isso.conf
[general] dbpath = /home/isso/database/comments.db host = https://sebastian.korotkiewicz.eu/ [server] listen = http://127.0.0.1:8000/ [guard] enabled = true ratelimit = 2 direct-reply = 3 reply-to-self = true require-author = true require-email = false [markup] options = strikethrough, superscript, autolink, highlight, quote, underline, math, math-explicit allowed-elements = allowed-attributes = cat /etc/nginx/sites-enabled/comments.</description></item><item><title>Install Searx on Apache2 and uWSGI</title><link>https://sekor.eu.org/techlog/install-searx-on-apache2-and-uwsgi/</link><pubDate>Wed, 09 Oct 2019 04:03:39 +0200</pubDate><guid>https://sekor.eu.org/techlog/install-searx-on-apache2-and-uwsgi/</guid><description>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 single-interpreter = true master = true plugin = python3 lazy-apps = true enable-threads = true # Module to import module = searx.</description></item><item><title>Automated Let's Encrypt Wildcard Certificates with local BIND</title><link>https://sekor.eu.org/techlog/automated-lets-encrypt-wildcard-certificates-with-local-bind/</link><pubDate>Tue, 28 May 2019 15:36:10 +0200</pubDate><guid>https://sekor.eu.org/techlog/automated-lets-encrypt-wildcard-certificates-with-local-bind/</guid><description>Let&amp;rsquo;s Encrypt has recently started offering free wildcard certificates. Requirements:
The client must speak the ACME protocol v02 - the current Certbot &amp;gt;= 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&amp;rsquo;s a bit more difficult with DNS: For authorization you have to set a random string - given by the client - into a DNS text record, which looks like this:</description></item><item><title>Stream Live with Nginx</title><link>https://sekor.eu.org/techlog/stream-live-with-nginx/</link><pubDate>Sun, 26 May 2019 22:39:51 +0200</pubDate><guid>https://sekor.eu.org/techlog/stream-live-with-nginx/</guid><description>Prepare working directory mkdir stream-live &amp;amp;&amp;amp; 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 --with-http_ssl_module --with-http_stub_status_module --add-module=/path/to/nginx-rtmp-module/ --add-module=/path/to/nginx-vod-module --prefix=/usr/local/nginx-streaming/ make -j 1 make install Configure nginx for stream video with hls via http and rtmp cd /usr/local/nginx-streaming/conf ; nano nginx.conf
worker_processes auto; events { worker_connections 1024; } # RTMP configuration rtmp { server { listen 1935; # Listen on standard RTMP port chunk_size 4000; application show { live on; record off; hls on; hls_path /mnt/hls/; hls_fragment 5; on_publish http://pass.</description></item><item><title>Stream VoD with Nginx</title><link>https://sekor.eu.org/techlog/stream-vod-with-nginx/</link><pubDate>Sat, 09 Feb 2019 19:57:34 +0200</pubDate><guid>https://sekor.eu.org/techlog/stream-vod-with-nginx/</guid><description>Prepare working directory mkdir stream &amp;amp;&amp;amp; 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 --add-module=/path/to/nginx-rtmp-module/ --add-module=/path/to/nginx-vod-module --prefix=/usr/local/nginx-streaming/
make -j 1
make install
Configure nginx for stream video files with hls via http cd /usr/local/nginx-streaming/conf ; nano nginx.conf
worker_processes auto; events { use epoll; } #enable stream vod on rtmp if you want this #rtmp { # server { # listen 1935; # # chunk_size 4000; # # # video on demand for mp4 files # application vod2 { # play /var/mp4s; # } # } #} http { log_format main &amp;#39;$remote_addr $remote_user [$time_local] &amp;#34;$request&amp;#34; &amp;#39; &amp;#39;$status &amp;#34;$http_referer&amp;#34; &amp;#34;$http_user_agent&amp;#34;&amp;#39;; default_type application/octet-stream; include /usr/local/nginx-streaming/conf/mime.</description></item><item><title>"Bash Here" Context Menu in Windows Explorer</title><link>https://sekor.eu.org/techlog/bash-here-context-menu-in-windows-explorer/</link><pubDate>Sun, 16 Dec 2018 07:54:26 +0200</pubDate><guid>https://sekor.eu.org/techlog/bash-here-context-menu-in-windows-explorer/</guid><description>Here for bash
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu Bash Here]
@=&amp;quot;ConEmu Bash Here&amp;quot;
&amp;quot;Icon&amp;quot;=&amp;quot;C:\\Users\\sebas\\Desktop\\Programy\\ConEmuPack\\ConEmu64.exe,0&amp;quot;
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu Bash Here\command]
@=&amp;quot;\&amp;quot;C:\\Users\\sebas\\Desktop\\Programy\\ConEmuPack\\ConEmu64.exe\&amp;quot; -here -run {bash} -cur_console:n&amp;quot;
Here for cmd
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu CMD Here]
@=&amp;quot;ConEmu CMD Here&amp;quot;
&amp;quot;Icon&amp;quot;=&amp;quot;C:\\Users\\sebas\\Desktop\\Programy\\ConEmuPack\\ConEmu64.exe,0&amp;quot;
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu CMD Here\command]
@=&amp;quot;\&amp;quot;C:\\Users\\sebas\\Desktop\\Programy\\ConEmuPack\\ConEmu64.exe\&amp;quot; -here -run {cmd} -cur_console:n&amp;quot;
Remember to change the path to ConEmu installation and rename the username to your own</description></item><item><title>Compare `git add .` vs `git add -A`</title><link>https://sekor.eu.org/techlog/compare-git-add-.-vs-git-add-a/</link><pubDate>Wed, 12 Dec 2018 06:11:23 +0200</pubDate><guid>https://sekor.eu.org/techlog/compare-git-add-.-vs-git-add-a/</guid><description>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&amp;rsquo;s an example:
/my-repo
.git/
subfolder/
nestedfile.txt
rootfile.txt
If your current working directory is /my-repo, and that&amp;rsquo;s the root of this git repo (thus the .git/ folder), these two commands will do the same thing.</description></item><item><title>Activate tap to click on touchpad</title><link>https://sekor.eu.org/techlog/activate-tap-to-click-on-touchpad/</link><pubDate>Sat, 08 Dec 2018 19:52:54 +0200</pubDate><guid>https://sekor.eu.org/techlog/activate-tap-to-click-on-touchpad/</guid><description>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 xserver-xorg-input-libinput:
## Debian
# apt install xserver-xorg-input-libinput
In most cases, make sure you have the xserver-xorg-input-libinput package installed, and not the xserver-xorg-input-synaptics package.</description></item><item><title>Show percentage of already started DD</title><link>https://sekor.eu.org/techlog/show-percentage-of-already-started-dd/</link><pubDate>Sun, 23 Sep 2018 11:20:07 +0200</pubDate><guid>https://sekor.eu.org/techlog/show-percentage-of-already-started-dd/</guid><description>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</description></item><item><title>Create ddns on your current bind9 server</title><link>https://sekor.eu.org/techlog/create-ddns-on-your-current-bind9-server/</link><pubDate>Tue, 11 Sep 2018 22:09:57 +0200</pubDate><guid>https://sekor.eu.org/techlog/create-ddns-on-your-current-bind9-server/</guid><description>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. -&amp;gt; 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&amp;rsquo;ll be using dnssec-keygen.
server$ dnssec-keygen -a HMAC-SHA512 -b 512 -n USER home.example.com. This creates two files, which will be named differently based on individual runs.</description></item><item><title>Create user, datebase and grant permission in MySQL/PostgreSQL</title><link>https://sekor.eu.org/techlog/create-user-datebase-and-grant-permission-in-mysql/postgresql/</link><pubDate>Sat, 08 Sep 2018 20:14:53 +0200</pubDate><guid>https://sekor.eu.org/techlog/create-user-datebase-and-grant-permission-in-mysql/postgresql/</guid><description>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 &amp;lt;username&amp;gt;
2.Creating Database
sudo -u postgres createdb &amp;lt;dbname&amp;gt;
3.Giving the user a password
sudo -u postgres psql
psql=# alter user &amp;lt;username&amp;gt; with encrypted password '&amp;lt;password&amp;gt;';
4.Granting privileges on database</description></item><item><title>Gitlab with Apache2 Reverse Proxy</title><link>https://sekor.eu.org/techlog/gitlab-with-apache2-reverse-proxy/</link><pubDate>Mon, 25 Jun 2018 20:02:13 +0200</pubDate><guid>https://sekor.eu.org/techlog/gitlab-with-apache2-reverse-proxy/</guid><description>This is my config for gitlab with apache2 reverse proxy, Web IDE works!
&amp;lt;VirtualHost *:80&amp;gt;
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]
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;VirtualHost *:443&amp;gt;
ServerName gitlab.itunix.eu
ServerAlias gitlab.itunix.eu www.gitlab.itunix.eu
ServerAdmin skorotkiewicz@gmail.com
ProxyPass / http://localhost:1234/ nocanon
ProxyPassReverse / http://localhost:1234/
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/itunix.eu-0001/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/itunix.eu-0001/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/itunix.eu-0001/fullchain.pem
ErrorLog /var/log/apache2/error_gitlab.log
CustomLog /var/log/apache2/access_gitlab.log combined
&amp;lt;/VirtualHost&amp;gt;</description></item><item><title>Fix GitLab is taking too much time to respond. 502 Error</title><link>https://sekor.eu.org/techlog/fix-gitlab-is-taking-too-much-time-to-respond.-502-error/</link><pubDate>Sat, 09 Jun 2018 19:23:43 +0200</pubDate><guid>https://sekor.eu.org/techlog/fix-gitlab-is-taking-too-much-time-to-respond.-502-error/</guid><description>Solution by iamchanghyunpark
&amp;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&amp;rsquo;m guessing this is because of the unexpected powerdown, and unicorn.pid was not properly cleared.
My solution was simple&amp;rdquo;
docker-compose exec gitlab bash
vi log/unicorn.stderr.log # remove the value (which is the pid), save and exit
exit # from the bash shell of the gitlab container
#Now restart the containers
docker-compose down
docker-compose up -d</description></item><item><title>Homeautomation - detect presence of Wifi devices</title><link>https://sekor.eu.org/techlog/homeautomation-detect-presence-of-wifi-devices/</link><pubDate>Sat, 02 Jun 2018 20:12:51 +0200</pubDate><guid>https://sekor.eu.org/techlog/homeautomation-detect-presence-of-wifi-devices/</guid><description>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.
Copy over the script Use SCP to copy the presence_report script to /usr/bin/presence_report on the target device.</description></item><item><title>Minio: How's bucket policy related to anonymous/authorized access?</title><link>https://sekor.eu.org/techlog/minio-hows-bucket-policy-related-to-anonymous/authorized-access/</link><pubDate>Fri, 30 Mar 2018 23:50:35 +0200</pubDate><guid>https://sekor.eu.org/techlog/minio-hows-bucket-policy-related-to-anonymous/authorized-access/</guid><description>thanks Cumbu from stackoverflow.com!
&amp;lsquo;public&amp;rsquo; is valid policy&amp;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 ClientIdASSDSD ClientSecretASASASdsasdasdasdasd # create bucket: mc mb {host}/{bucket} mc mb local/mybucket # change bucket policy: mc policy {policy} {host}/{bucket} mc policy public local/mybucket</description></item><item><title>LEDE /OpenWRT on USB Stick</title><link>https://sekor.eu.org/techlog/lede-/openwrt-on-usb-stick/</link><pubDate>Sat, 24 Mar 2018 01:23:49 +0200</pubDate><guid>https://sekor.eu.org/techlog/lede-/openwrt-on-usb-stick/</guid><description>Prepare your USB Stick: mkfs.ext4 /dev/sda1
Install pacages on your router
opkg update; opkg install block-mount kmod-usb-core kmod-usb-ohci kmod-usb-storage kmod-usb2 kmod-scsi-core kmod-scsi-generic kmod-fs-ext4 libblkid Plug your USB Stick into your router
mount /dev/sda1 /mnt tar -C /overlay -cvf - . | tar -C /mnt -xf - umount /mnt Edit fstab
block detect &amp;gt; /etc/config/fstab vim /etc/config/fstab Config:
root@LEDE:~# cat /etc/config/fstab config 'global' option anon_swap '0' option anon_mount '0' option auto_swap '1' option auto_mount '1' option delay_root '5' option check_fs '0' config 'mount' option target '/overlay' option uuid '&amp;lt;uuid&amp;gt;' option enabled '1' option fstype 'ext4' Set the target to /overlay, and change the option enabled line from 0 to 1.</description></item><item><title>Creating Wildcard SSL Certificates with Let’s Encrypt</title><link>https://sekor.eu.org/techlog/creating-wildcard-ssl-certificates-with-lets-encrypt/</link><pubDate>Fri, 16 Mar 2018 17:59:48 +0200</pubDate><guid>https://sekor.eu.org/techlog/creating-wildcard-ssl-certificates-with-lets-encrypt/</guid><description>Install certbot: wget https://dl.eff.org/certbot-auto chmod a+x ./certbot-auto ./certbot-auto Get a certificate ./certbot-auto certonly \ --server https://acme-v02.api.letsencrypt.org/directory \ --manual --preferred-challenges dns -d *.itunix.eu An important parameter to notice is --server https://acme-v02.api.letsencrypt.org/directory, which will instruct the certbot client to use v2 of the Let&amp;rsquo;s Encrypt API (we need that for wildcard certs).
Add DNS TXT record _acme-challenge.itunix.eu. IN TXT &amp;quot;XXXX&amp;quot; After add you should verify that it is working using nslookup</description></item><item><title>Reinstall all packages with --force on Arch</title><link>https://sekor.eu.org/techlog/reinstall-all-packages-with-force-on-arch/</link><pubDate>Sun, 11 Mar 2018 22:08:46 +0200</pubDate><guid>https://sekor.eu.org/techlog/reinstall-all-packages-with-force-on-arch/</guid><description>Here is simple solution
pacman -Qqen &amp;gt; pkglist.txt pacman --force -S $(&amp;lt; pkglist.txt) mkinitcpio -p linux</description></item><item><title>Create an encrypted file container with dm-crypt</title><link>https://sekor.eu.org/techlog/create-an-encrypted-file-container-with-dm-crypt/</link><pubDate>Sun, 11 Mar 2018 14:32:13 +0200</pubDate><guid>https://sekor.eu.org/techlog/create-an-encrypted-file-container-with-dm-crypt/</guid><description>Create an empty file with the size of your container
dd if=/dev/zero bs=1M count=100 of=~/my-container.img Here I’ll use a 100MB container
Initialise the LUKS partition on the file and set the initial passphrase.
cryptsetup luksFormat ~/mycontainer Open the container. Opening the container creates a kernel device file which can then be mounted.
cryptsetup luksOpen ~/mycontainer secret-device This command will prompt for the container’s passphrase and then create a device file with the name /dev/mapper/secret-device.</description></item><item><title>Building windows go programs on linux</title><link>https://sekor.eu.org/techlog/building-windows-go-programs-on-linux/</link><pubDate>Sun, 18 Feb 2018 13:54:53 +0200</pubDate><guid>https://sekor.eu.org/techlog/building-windows-go-programs-on-linux/</guid><description>$ cat hello.go
package main import &amp;#34;fmt&amp;#34; func main() { fmt.Printf(&amp;#34;Hello\n&amp;#34;) } $ GOOS=windows GOARCH=386 go build -o hello.exe hello.go</description></item><item><title>Rename a part of filename of a bunch of files</title><link>https://sekor.eu.org/techlog/rename-a-part-of-filename-of-a-bunch-of-files/</link><pubDate>Fri, 19 Jan 2018 15:08:37 +0200</pubDate><guid>https://sekor.eu.org/techlog/rename-a-part-of-filename-of-a-bunch-of-files/</guid><description>Example $ ls -l AndroidTest.pdf Angular2Test.pdf BashTest.pdf The simplest way to remove &amp;lsquo;Test&amp;rsquo; from any files: rename &amp;#39;s/Test//g&amp;#39; *.pdf $ ls -l Android.pdf Angular2.pdf Bash.pdf Or change &amp;lsquo;Test&amp;rsquo; to &amp;lsquo;Hello&amp;rsquo; rename &amp;#39;s/Test/Hello/g&amp;#39; *.pdf $ ls -l AndroidTest.pdf Angular2Test.pdf BashTest.pdf</description></item><item><title>Switch PHP version</title><link>https://sekor.eu.org/techlog/switch-php-version/</link><pubDate>Wed, 10 Jan 2018 02:29:44 +0200</pubDate><guid>https://sekor.eu.org/techlog/switch-php-version/</guid><description>From php5.6 to php7.0: Apache:
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart CLI:
sudo update-alternatives --set php /usr/bin/php7.0 From php7.0 to php5.6: Apache:
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart CLI:
sudo update-alternatives --set php /usr/bin/php5.6</description></item><item><title>Jak ugotować jajko idealne</title><link>https://sekor.eu.org/techlog/jak-ugotowa%C4%87-jajko-idealne/</link><pubDate>Sun, 24 Dec 2017 15:33:29 +0200</pubDate><guid>https://sekor.eu.org/techlog/jak-ugotowa%C4%87-jajko-idealne/</guid><description>Ważne jest, by jajka osiągnęły temperaturę pokojową, zanim zaczniemy je gotować. Gdybyśmy bowiem wrzucili je do gorącej wody prosto z lodówki, mogłyby popękać ich skorupka. Z tego samego powodu powinniśmy użyć małego rondelka i trzymać go na wolnym ogniu.
Jak długo powinniśmy gotować jajka?
Wszystko zależy bowiem od tego, jaki efekt chcemy uzyskać. Niektórzy z nas wolą jajka bardziej wodniste, inni lubią, gdy biało jest już lekko ścięte. Dlatego, zamiast stosować się do zaleceń z książki kucharskiej czy internetu, najlepiej samemu wypróbować ze stoperem, jaki czas gotowania będzie najlepszy, by jajko trafiało w nasze gusta.</description></item><item><title>How to add a Windows Firewall rule to enable client-to-client communication through OpenVPN</title><link>https://sekor.eu.org/techlog/how-to-add-a-windows-firewall-rule-to-enable-client-to-client-communication-through-openvpn/</link><pubDate>Sat, 09 Dec 2017 23:18:20 +0200</pubDate><guid>https://sekor.eu.org/techlog/how-to-add-a-windows-firewall-rule-to-enable-client-to-client-communication-through-openvpn/</guid><description>Open PowerShell with Administrator Privileges and type:
check the path to your openvpn.exe! New-NetFirewallRule -DisplayName “OpenVPN allow Inbound” -Direction Inbound -Program %ProgramFiles%\OpenVPN\bin\openvpn.exe -RemoteAddress LocalSubnet -Action Allow New-NetFirewallRule -DisplayName “OpenVPN allow Outbound” -Direction Outbound -Program %ProgramFiles%\OpenVPN\bin\openvpn.exe -RemoteAddress LocalSubnet -Action Allow Set-NetFirewallProfile Public -DefaultInboundAction Allow -DefaultOutboundAction Allow from now every connected client should be able to ping you
Optional: To see if it has been added open Windows Defender Firewall: wf.msc.
that's all</description></item><item><title>A puzzle for 5 bitcoins</title><link>https://sekor.eu.org/techlog/a-puzzle-for-5-bitcoins/</link><pubDate>Wed, 06 Dec 2017 18:31:18 +0200</pubDate><guid>https://sekor.eu.org/techlog/a-puzzle-for-5-bitcoins/</guid><description>A few years ago a multilevel puzzle was published, in which there were 4.87 BTCs to win, now it was the last level and collected already 5BTC, calculated at the current rate of over $62770.00.
The following image contains a private key to the address 1FLAMEN6rq2BqMqMnkUmsJBqCGWdwgVKcegd, the key will allow you to transfer the funds accumulated on it and use them for any purpose. Maybe someone will be able to brainstorm, reach a solution and make a little gift for a Christmas.</description></item><item><title>Remove all of the diacritics from a file</title><link>https://sekor.eu.org/techlog/remove-all-of-the-diacritics-from-a-file/</link><pubDate>Fri, 24 Nov 2017 16:29:35 +0200</pubDate><guid>https://sekor.eu.org/techlog/remove-all-of-the-diacritics-from-a-file/</guid><description>I like iconv as it handles all accents variations :
cat non-ascii.txt | iconv -f utf8 -t ascii//TRANSLIT//IGNORE &amp;gt; ascii.txt</description></item><item><title>Facebook watches our messages from messenger.</title><link>https://sekor.eu.org/techlog/facebook-watches-our-messages-from-messenger./</link><pubDate>Mon, 06 Nov 2017 22:27:26 +0200</pubDate><guid>https://sekor.eu.org/techlog/facebook-watches-our-messages-from-messenger./</guid><description>How to get a 72h ban in a second after sending a message. By sending this exact photo to someone, we get a 72h ban (automatically?).</description></item><item><title>Configure mosquitto to use websockets</title><link>https://sekor.eu.org/techlog/configure-mosquitto-to-use-websockets/</link><pubDate>Sun, 05 Nov 2017 01:51:12 +0200</pubDate><guid>https://sekor.eu.org/techlog/configure-mosquitto-to-use-websockets/</guid><description>Add the following lines to /etc/mosquitto/mosquitto.conf in the &amp;ldquo;Default Listener&amp;rdquo; section: port 1883 listener 9001 protocol websockets</description></item><item><title>Docker - How to cleanup (unused) resources</title><link>https://sekor.eu.org/techlog/docker-how-to-cleanup-unused-resources/</link><pubDate>Mon, 09 Oct 2017 16:48:43 +0200</pubDate><guid>https://sekor.eu.org/techlog/docker-how-to-cleanup-unused-resources/</guid><description>Once in a while, you may need to cleanup resources (containers, volumes, images, networks) &amp;hellip;
delete volumes // see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
delete networks $ docker network ls
$ docker network ls | grep &amp;quot;bridge&amp;quot;
$ docker network rm $(docker network ls | grep &amp;quot;bridge&amp;quot; | awk '/ / { print $1 }')
remove docker images // see: http://stackoverflow.</description></item><item><title>fun with a friend's postcard</title><link>https://sekor.eu.org/techlog/fun-with-a-friends-postcard/</link><pubDate>Wed, 04 Oct 2017 17:08:44 +0200</pubDate><guid>https://sekor.eu.org/techlog/fun-with-a-friends-postcard/</guid><description>encryption of the message into zlib from codecs import encode from functools import reduce print reduce(encode, (&amp;#39;utf8&amp;#39;, &amp;#39;zlib&amp;#39;, &amp;#39;hex&amp;#39;), &amp;#34;this is my message on the postcard&amp;#34;) #output: 789c2bc9c82c5600a2dc4a85dcd4e2e2c4f45485fc3c85928c548582fce292e4c4a21400da1a0c9e output hex, save to file post.txt
78 9c 2b c9 c8 2c 56 00 a2 dc 4a
85 dc d4 e2 e2 c4 f4 54 85 fc 3c
85 92 8c 54 85 82 fc e2 92 e4 c4
a2 14 00 da 1a 0c 9e
decryption of the message d = open(&amp;#34;post.</description></item><item><title>Dysleksja</title><link>https://sekor.eu.org/techlog/dysleksja/</link><pubDate>Tue, 12 Sep 2017 16:53:50 +0200</pubDate><guid>https://sekor.eu.org/techlog/dysleksja/</guid><description>Przyjaciel z dysleksją opisał mi, jak odczuwa czytanie lektury. Potrafi czytać, ale to wymaga sporej koncentracji, a litery wydają się &amp;ldquo;przeskakiwać&amp;rdquo;.
Pamiętam jak czytałem artykuł o typoglikemii. Pomyślałem, pewnie można to zrobić interaktywnie na stronie z Javascriptem? Z pewnością tak.
Dysleksja charakteryzuje się trudnościami w nauce płynnego czytania i dokładnego rozumienia tekstu, mimo normalnej inteligencji. Obejmuje to trudności w zakresie świadomości fonologicznej, dekodowania fonologicznego, szybkości przetwarzania, kodowania ortograficznego, słuchowej pamięci krótkotrwałej, umiejętności językowych/zrozumienia słownego i/lub szybkiego nazywania.</description></item><item><title>Radio station with RDS function on Raspberry Pi</title><link>https://sekor.eu.org/techlog/radio-station-with-rds-function-on-raspberry-pi/</link><pubDate>Mon, 04 Sep 2017 01:18:06 +0200</pubDate><guid>https://sekor.eu.org/techlog/radio-station-with-rds-function-on-raspberry-pi/</guid><description>Today I will demonstrate you how to install the FM radio transmitter on Raspberry Pi. It is not just a transmitter! It supports RDS function with all its options (PS, RT, TA/TP). So do it!
The only thing we need to know is that the transmitter needs an antenna. Of course, you can broadcast from GPIO goldpin, but the range of such a solution is barely a few meters. Simply attach the short cables to the GPIO4 (4 pin inside) to extend the range up to a hundred meters.</description></item><item><title>Convert Mercurial project to Git</title><link>https://sekor.eu.org/techlog/convert-mercurial-project-to-git/</link><pubDate>Mon, 28 Aug 2017 04:35:53 +0200</pubDate><guid>https://sekor.eu.org/techlog/convert-mercurial-project-to-git/</guid><description>I&amp;rsquo;m using fast-export:
cd ~
git clone https://github.com/frej/fast-export.git
git init git_repo
cd git_repo
~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
git checkout HEAD
source: https://stackoverflow.com/questions/16037787/convert-mercurial-project-to-git</description></item><item><title>Simple start with YOLO v2</title><link>https://sekor.eu.org/techlog/simple-start-with-yolo-v2/</link><pubDate>Tue, 22 Aug 2017 17:14:30 +0200</pubDate><guid>https://sekor.eu.org/techlog/simple-start-with-yolo-v2/</guid><description>reduce frames to 15 per sec:
# ffmpeg -i stepup.mp4 -r 15 stepup15.mp4
make new directory for frames and put to stepup/ a video to split
#mkdir stepup/; mkdir yolo_stepup/
split to frames:
# ffmpeg -i stepup15.mp4 stepup_%04d.png
lets begin the games!
run this script, make sure are you not in stepup/, you shold be in darknet/
#!/bin/bash
for file in stepup/*.png
do
./darknet detect cfg/yolo.cfg cfg/yolo.weights &amp;quot;$file&amp;quot;
mv predictions.</description></item><item><title>Useful keyboard shortcuts for terminal</title><link>https://sekor.eu.org/techlog/useful-keyboard-shortcuts-for-terminal/</link><pubDate>Mon, 10 Jul 2017 16:42:08 +0200</pubDate><guid>https://sekor.eu.org/techlog/useful-keyboard-shortcuts-for-terminal/</guid><description>Terminal clipboard, check it out :)
ctrl + u = Cut to the clipboard
ctrl + y = Paste from the clipboard</description></item><item><title>Debian 9: Change the network from enp3s0 to eth0</title><link>https://sekor.eu.org/techlog/debian-9-change-the-network-from-enp3s0-to-eth0/</link><pubDate>Wed, 05 Jul 2017 16:17:32 +0200</pubDate><guid>https://sekor.eu.org/techlog/debian-9-change-the-network-from-enp3s0-to-eth0/</guid><description>nano /etc/udev/rules.d/10-network.rules
SUBSYSTEM==&amp;quot;net&amp;quot;, ACTION==&amp;quot;add&amp;quot;, ATTR{address}==&amp;quot;08:00:27:a6:ad:0e&amp;quot;, NAME=&amp;quot;eth0&amp;quot;
SUBSYSTEM==&amp;quot;net&amp;quot;, ACTION==&amp;quot;add&amp;quot;, ATTR{address}==&amp;quot;08:00:27:6e:77:cc&amp;quot;, NAME=&amp;quot;wlan0&amp;quot;
then reboot.</description></item><item><title>1998 vs 2017</title><link>https://sekor.eu.org/techlog/1998-vs-2017/</link><pubDate>Sat, 01 Jul 2017 14:53:46 +0200</pubDate><guid>https://sekor.eu.org/techlog/1998-vs-2017/</guid><description>1998: Don&amp;rsquo;t get into strangers&amp;rsquo;s cars Don&amp;rsquo;t meet people from the internet 2017: Literally summon strangers from the internet to get into their car</description></item><item><title>Quick way to add new posts in Jekyll with Python</title><link>https://sekor.eu.org/techlog/quick-way-to-add-new-posts-in-jekyll-with-python/</link><pubDate>Sat, 01 Jul 2017 00:54:18 +0200</pubDate><guid>https://sekor.eu.org/techlog/quick-way-to-add-new-posts-in-jekyll-with-python/</guid><description>To make life a little easier
from datetime import datetime MYPOST = &amp;#34;&amp;#34;&amp;#34;\ --- layout: post title: &amp;#34;{0}&amp;#34; date: {1} +0200 categories: {2} --- here my text &amp;#34;&amp;#34;&amp;#34; if __name__ == &amp;#34;__main__&amp;#34;: title = raw_input(&amp;#34;Title:\n&amp;#34;) categories = raw_input(&amp;#34;Categories:\n&amp;#34;) if not categories: categories = &amp;#34;posts&amp;#34; timestamp = datetime.today().strftime(&amp;#34;%Y-%m-%d%H:%M:%S&amp;#34;) datestamp = datetime.today().strftime(&amp;#34;%Y-%m-%d&amp;#34;) filename = datestamp + &amp;#34;-&amp;#34; + &amp;#34;-&amp;#34;.join(title.split(&amp;#34; &amp;#34;)) + &amp;#34;.md&amp;#34; filename = filename.lower() with open(filename, &amp;#34;w+&amp;#34;) as file: file.write(MYPOST.format(title, timestamp, categories))</description></item><item><title>Mark Zuckerberg says 'Facebook has 2 billion people!'</title><link>https://sekor.eu.org/techlog/mark-zuckerberg-says-facebook-has-2-billion-people/</link><pubDate>Wed, 28 Jun 2017 14:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/mark-zuckerberg-says-facebook-has-2-billion-people/</guid><description>Mark Zuckerberg officially announced that over 2 billion people in the world have a Facebook account
As of this morning, the Facebook community is now officially 2 billion people!
We&amp;rsquo;re making progress connecting the world, and now let&amp;rsquo;s bring the world closer together.
It&amp;rsquo;s an honor to be on this journey with you.</description></item><item><title>Nagios with Nginx</title><link>https://sekor.eu.org/techlog/nagios-with-nginx/</link><pubDate>Mon, 26 Jun 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/nagios-with-nginx/</guid><description>server { listen 80; server_name my.example.com; access_log /var/log/nginx/nagios.access.log; error_log /var/log/nginx/nagios.error.log info; expires 31d; #rewrite ^/nagios3/(.*)$ /$1 break; rewrite ^/nagios3/(.*)$ /$1; root /usr/share/nagios3/htdocs; index index.php index.html; auth_basic &amp;#34;Nagios Restricted Access&amp;#34;; auth_basic_user_file /etc/nagios3/htpasswd.users; location /stylesheets { alias /etc/nagios3/stylesheets; } location ~ \.cgi$ { root /usr/lib/cgi-bin/nagios3; rewrite ^/cgi-bin/nagios3/(.*)$ /$1; include /etc/nginx/fastcgi_params; fastcgi_param AUTH_USER $remote_user; fastcgi_param REMOTE_USER $remote_user; fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/nagios3$fastcgi_script_name; fastcgi_pass unix:/var/run/fcgiwrap.socket; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.</description></item><item><title>Windows on Bash // GUI!</title><link>https://sekor.eu.org/techlog/windows-on-bash-/-gui/</link><pubDate>Mon, 26 Jun 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/windows-on-bash-/-gui/</guid><description>Download VcXsrv (or any other X server) and run it.
Launch Bash and type in the following lines
# sudo apt-get install xorg xubuntu-desktop
# echo 'export DISPLAY=:0' &amp;gt;&amp;gt; ~/.bashrc &amp;amp;&amp;amp; . ~/.bashrc
# sudo sed -i 's$&amp;lt;listen&amp;gt;.*&amp;lt;/listen&amp;gt;$&amp;lt;listen&amp;gt;tcp:host=localhost,port=0&amp;lt;/listen&amp;gt;$' /etc/dbus-1/session.conf
Close Bash and open it, then type in xfce4-session , if everything went right then the XFCE interface should show up in your X server window.</description></item><item><title>Deploy Jekyll Blog with Git</title><link>https://sekor.eu.org/techlog/deploy-jekyll-blog-with-git/</link><pubDate>Mon, 26 Jun 2017 00:53:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/deploy-jekyll-blog-with-git/</guid><description>Local Installation Install jekyll gem install jekyll
Creating a Blog Navigate to wherever you want to store your blog files on your local machine, and create a new blog like so:
jekyll new awesomeblog
This will create an awesomeblog directory containing the configuration files, posts directory and other required bits. Now you can change to that directory and fire up a server process to preview it in your browser.
cd awesomeblog
jekyll serve
Jekyll will build your blog, and after a few seconds you should be able to visit http://localhost:4000 in your browser.</description></item><item><title>How to edit file in a docker container?</title><link>https://sekor.eu.org/techlog/how-to-edit-file-in-a-docker-container/</link><pubDate>Sat, 20 May 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/how-to-edit-file-in-a-docker-container/</guid><description>As in the comments, there&amp;rsquo;s no default editor set - strange - $EDITOR env variable is empty. You can login into container with:
docker exec -it &amp;lt;container&amp;gt; bash and run:
apt-get update
apt-get install vim
or use the following Dockerfile:
FROM confluent/postgres-bw:0.1
RUN [&amp;quot;apt-get&amp;quot;, &amp;quot;update&amp;quot;]
RUN [&amp;quot;apt-get&amp;quot;, &amp;quot;install&amp;quot;, &amp;quot;-y&amp;quot;, &amp;quot;vim&amp;quot;]
EDIT
Docker images are delivered trimmed to bare minimum - so no editor is installed with the shipped container. That&amp;rsquo;s why there&amp;rsquo;s a need to install it manually.</description></item><item><title>Raspberry Alexa</title><link>https://sekor.eu.org/techlog/raspberry-alexa/</link><pubDate>Thu, 20 Apr 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/raspberry-alexa/</guid><description>sudo raspi-config
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
cd ~
git clone https://github.com/alexa/alexa-avs-sample-app.git
cd alexa-avs-sample-app
nano automated_install.sh
. automated_install.sh
cd ~
cd alexa-avs-sample-app/samples/companionService
npm start
Second window cd alexa-avs-sample-app/samples/javaclient
mvn exec:exec
Third window cd alexa-avs-sample-app/samples/wakeWordAgent/src
./wakeWordAgent -e sensory</description></item><item><title>Roll Own VPN AdBlock Service</title><link>https://sekor.eu.org/techlog/roll-own-vpn-adblock-service/</link><pubDate>Mon, 10 Apr 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/roll-own-vpn-adblock-service/</guid><description>It&amp;rsquo;s actually super cheap &amp;amp; easy. The setup below costs a few dollars a year and uses ~20MB RAM total:
Get a VPN Provider Install OpenVPN &amp;amp; setup client certs with https://github.com/Nyr/openvpn-install Setup your hosts file with http://winhelp2002.mvps.org/hosts.txt</description></item><item><title>nginx + cgit + debian = one host</title><link>https://sekor.eu.org/techlog/nginx-cgit-debian-one-host/</link><pubDate>Fri, 20 Jan 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/nginx-cgit-debian-one-host/</guid><description>root@raspberrypi:/var/www# cat /etc/nginx/sites-enabled/www
server {
listen 80;
server_name home.control;
root /var/www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
autoindex on;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location /git {
gzip off;
alias /usr/local/cgit/share;
try_files $uri @cgit;
}
location @cgit {
fastcgi_pass unix:/tmp/cgi.sock;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.</description></item><item><title>Tiny IRC Doc</title><link>https://sekor.eu.org/techlog/tiny-irc-doc/</link><pubDate>Tue, 10 Jan 2017 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/tiny-irc-doc/</guid><description>.post-content ul {list-style: none;}
NickServ Register nickname on server:
/nick YourNick
/msg NickServ REGISTER YourPassword youremail@example.com
Login
/msg NickServ IDENTIFY YourNick YourPassword
Logging In
/connect chat.freenode.net 6697 YourNick:YourPassword
ChanServ Register your channel:
/msg ChanServ register #channel
Enable the GUARD (ChanServ) flag for your channel using:
/msg ChanServ set #channel guard on
Set ops:
/msg ChanServ flags #channel yournick +o</description></item><item><title>Run programs in the screen at startup using systemd</title><link>https://sekor.eu.org/techlog/run-programs-in-the-screen-at-startup-using-systemd/</link><pubDate>Mon, 05 Dec 2016 18:40:24 +0000</pubDate><guid>https://sekor.eu.org/techlog/run-programs-in-the-screen-at-startup-using-systemd/</guid><description>systemd is very simple and easy to use, here you can see how to run the program in a screen with the specified user
create new file
nano /etc/systemd/system/radio.service and put it into a new file
[Unit] Description=Radio DJ After=network.target [Service] Type=oneshot ExecStart=/usr/bin/screen -dmS screennameradio /etc/liquidsoap/radio-pro.liq ExecStop=/usr/bin/screen -S screennameradio -X quit RemainAfterExit=yes User=radiodj [Install] WantedBy=multi-user.target and, of course
systemctl enable radio systemctl start radio</description></item><item><title>Nginx configuration for SSH tunnel</title><link>https://sekor.eu.org/techlog/nginx-configuration-for-ssh-tunnel/</link><pubDate>Sun, 09 Oct 2016 21:06:32 +0000</pubDate><guid>https://sekor.eu.org/techlog/nginx-configuration-for-ssh-tunnel/</guid><description>upstream tunnel {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name dev.server.tld www.dev.server.tld;
#optional
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://tunnel;
}
}
ssh -vnNT -R 3000:localhost:80 root@server.tld</description></item><item><title>ffmpeg on Raspbian - Raspberry Pi</title><link>https://sekor.eu.org/techlog/ffmpeg-on-raspbian-raspberry-pi/</link><pubDate>Fri, 30 Sep 2016 16:44:33 +0000</pubDate><guid>https://sekor.eu.org/techlog/ffmpeg-on-raspbian-raspberry-pi/</guid><description>First for all we need to build and install x264
git clone --depth 1 git://git.videolan.org/x264 cd x264 ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl make -j 4 sudo make install For mp3 support
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz tar xzvf lame-3.99.tar.gz cd lame-3.99 ./configure make make install For Hardware Encoding
add --enable-omx --enable-omx-rpi to ./configure options compile use encoder option -c:v h264_omx Then build and make ffmpeg
git clone --depth=1 git://source.ffmpeg.org/ffmpeg.git cd ffmpeg ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-omx --enable-omx-rpi make -j4 sudo make install ldconfig It takes just 25 minutes on a Raspberry Pi 3.</description></item><item><title>Gateway VPN - Raspberry Pi Router</title><link>https://sekor.eu.org/techlog/gateway-vpn-raspberry-pi-router/</link><pubDate>Mon, 26 Sep 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/gateway-vpn-raspberry-pi-router/</guid><description># nano /etc/sysctl.conf
# net.ipv4.ip_forward=1
# sysctl -p
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
Enable VPN at boot # systemctl enable openvpn@Japan
nano /etc/default/openvpn
#AUTOSTART=&amp;quot;Japan&amp;quot;
##################################################
cron: @reboot sh /etc/openvpn/startRouting.sh
cat /etc/openvpn/startRouting.sh iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
cron: 0 0 * * * vnstati -i eth0 -o /var/www/bandwidth/current_s.</description></item><item><title>Fixing Lastpass &amp; Firefox</title><link>https://sekor.eu.org/techlog/fixing-lastpass-firefox/</link><pubDate>Sat, 12 Mar 2016 10:59:46 +0200</pubDate><guid>https://sekor.eu.org/techlog/fixing-lastpass-firefox/</guid><description>If you are having problems with your browser locking up whenever you’re entering a password perform the following change.
Click the LastPass icon in your browser, and select preferences.
Then click on Notifications in the left hand menu.
Finally un-select the &amp;ldquo;Click Icons in Fields&amp;rdquo; option.
The interactive bits in the fields seems to be the core cause of the browser slow down / hangs.</description></item><item><title>'Music' from /dev/urandom</title><link>https://sekor.eu.org/techlog/music-from-/dev/urandom/</link><pubDate>Sun, 10 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/music-from-/dev/urandom/</guid><description>cat /dev/urandom | hexdump -v -e &amp;#39;/1 &amp;#34;%u\n&amp;#34;&amp;#39; | awk &amp;#39;{ split(&amp;#34;0,2,4,5,7,9,11,12&amp;#34;,a,&amp;#34;,&amp;#34;); for (i = 0; i &amp;lt; 1; i+= 0.0001) printf(&amp;#34;%08X\n&amp;#34;, 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }&amp;#39; | xxd -r -p | aplay -c 2 -f S32_LE -r 16000</description></item><item><title>Convert directory to QEMU/KVM virtual disk image</title><link>https://sekor.eu.org/techlog/convert-directory-to-qemu/kvm-virtual-disk-image/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/convert-directory-to-qemu/kvm-virtual-disk-image/</guid><description>First, create a raw image of the required size. I&amp;rsquo;ll assume 10G is enough. Using seek creates a sparse file, which saves space.
dd if=/dev/null of=example.img bs=1M seek=10240
Next, create a filesystem on it.
mkfs.ext4 -F example.img
(Note that you need the -F option for mkfs.ext4 to operate on a file as opposed to a disk partition)
Then, mount it.
mkdir /mnt/example
mount -t ext4 -o loop example.img /mnt/example
Now you can copy your files to /mnt/example.</description></item><item><title>debootstrap debian chroot</title><link>https://sekor.eu.org/techlog/debootstrap-debian-chroot/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/debootstrap-debian-chroot/</guid><description># debootstrap --arch i386 squeeze /mnt http://ftp.halifax.rwth-aachen.de/debian
# chroot /mnt
# apt-get install linux-image-686
# apt-get install grub2
(answer to Continue without installing GRUB? with Yes)
# passwd root
(put any password you want. If you miss this step, you are not logging into your new system ;)
# exit
# mount -o bind /dev/ /mnt/pendrive/dev/
# mount -o bind /proc/ /mnt/pendrive/proc/
# mount -o bind /sys/ /mnt/pendrive/sys/
# chroot /mnt
# grub-install /dev/sdc
Installation finished.</description></item><item><title>Firefox Language</title><link>https://sekor.eu.org/techlog/firefox-language/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/firefox-language/</guid><description> install your language file from here about:config -&amp;gt; 'general.useragent.locale': 'de' restart Firefox http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central-l10n/linux-x86_64/xpi/
http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central-l10n</description></item><item><title>How to configure iptables for openvpn</title><link>https://sekor.eu.org/techlog/how-to-configure-iptables-for-openvpn/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/how-to-configure-iptables-for-openvpn/</guid><description>If you have installed the openvpn server and iptable is blocking the service by default then use these configurations for openvpn to function properly. First let&amp;rsquo;s allow the tcp connection on the openvpn port. If you are using udp or another port number then change this line accordingly.
iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 1194 -j ACCEPT
Allow TUN interface connections to OpenVPN server</description></item><item><title>PHP bot to get wikipedia definitions</title><link>https://sekor.eu.org/techlog/php-bot-to-get-wikipedia-definitions/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/php-bot-to-get-wikipedia-definitions/</guid><description>&amp;lt;?php function wikidefinition($s) { $url = &amp;#34;http://it.wikipedia.org/w/api.php?action=opensearch&amp;amp;search=&amp;#34;.urlencode($s).&amp;#34;&amp;amp;format=xml&amp;amp;limit=1&amp;#34;; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPGET, TRUE); curl_setopt($ch, CURLOPT_POST, FALSE); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_NOBODY, FALSE); curl_setopt($ch, CURLOPT_VERBOSE, FALSE); curl_setopt($ch, CURLOPT_REFERER, &amp;#34;&amp;#34;); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_MAXREDIRS, 4); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, &amp;#34;Mozilla/5.0 (Windows; U; Windows NT 6.1; he; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8&amp;#34;); $page = curl_exec($ch); $xml = simplexml_load_string($page); if((string)$xml-&amp;gt;Section-&amp;gt;Item-&amp;gt;Description) { return array((string)$xml-&amp;gt;Section-&amp;gt;Item-&amp;gt;Text, (string)$xml-&amp;gt;Section-&amp;gt;Item-&amp;gt;Description, (string)$xml-&amp;gt;Section-&amp;gt;Item-&amp;gt;Url); } else { return &amp;#34;&amp;#34;; } }</description></item><item><title>Saving Iptables Firewall Rules Permanent</title><link>https://sekor.eu.org/techlog/saving-iptables-firewall-rules-permanent/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/saving-iptables-firewall-rules-permanent/</guid><description>run as root
sudo -s
Save current firewall rules to file
iptables-save &amp;gt; /etc/firewall.conf
INCLUDE ON BOOT
echo '#!/bin/sh' &amp;gt; /etc/network/if-up.d/iptables
echo &amp;quot;iptables-restore &amp;lt; /etc/firewall.conf&amp;quot; &amp;gt;&amp;gt; /etc/network/if-up.d/iptables
chmod +x /etc/network/if-up.d/iptables
SAVE ON SHUTDOWN/REBOOT
echo '#!/bin/sh' &amp;gt; /etc/network/if-down.d/iptables
echo &amp;quot;iptables-save &amp;gt; /etc/firewall.conf&amp;quot; &amp;gt;&amp;gt; /etc/network/if-down.d/iptables
chmod +x /etc/network/if-down.d/iptables
is working for me
if you what to save your iptables rules after an change to iptables just run below.. but it will run the same command on reboot or shutdown.</description></item><item><title>Simple server backup</title><link>https://sekor.eu.org/techlog/simple-server-backup/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/simple-server-backup/</guid><description>sudo mount /dev/xxxx -o remount-ro /mnt
mkdir /backup
cd /backup
tar --exclude='/backup' --exclude='/mnt/backup' --exclude='/mnt/mnt' -cvjpf mybackup.tar.bz2 /mnt
tar &amp;ndash;exclude='./backup' &amp;ndash;exclude='./mnt/backup' -cvjpf mybackup.tar.bz2 /mnt
Then you unpack with behavior permission
sudo tar -xvjpf mybackup.tar.bz2
Creating A Backup All Datebases And Restore mysqldump -u root -p --all-databases &amp;gt; all_databases.sql
mysqldump -u root -p --all-databases &amp;lt; all_databases.sql
Creating A Backup Single Datebase And Restore mysqldump -u root -p db_name &amp;gt; db_file.sql
mysqldump -u root -p db_name &amp;lt; db_file.</description></item><item><title>ssh tunnel to localhost</title><link>https://sekor.eu.org/techlog/ssh-tunnel-to-localhost/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/ssh-tunnel-to-localhost/</guid><description>ssh -R 9000:192.168.1.13:80 -N root@example.com</description></item><item><title>Weechat BNC</title><link>https://sekor.eu.org/techlog/weechat-bnc/</link><pubDate>Fri, 01 Jan 2016 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/weechat-bnc/</guid><description>openssl s_client -connect znc.itunix.cloud:6697 &amp;lt;/dev/null 2&amp;gt;/dev/null | openssl x509 -in /dev/stdin -noout -fingerprint -sha256 | sed s/://g | cut -c 20-
5A038025E789ED2F1032EB15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX08FA693
/server add BNC znc.itunix.cloud/6697 -ssl -username=l__q/freenode -password=XXXXXXXXXXXX -autoconnect
/set irc.server.BNC.ssl_fingerprint 5A038025E789ED2F1032EB15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX08FA693
/connect BNC
/save</description></item><item><title>Applications that I use on iPhone</title><link>https://sekor.eu.org/techlog/applications-that-i-use-on-iphone/</link><pubDate>Sun, 13 Dec 2015 11:47:35 +0000</pubDate><guid>https://sekor.eu.org/techlog/applications-that-i-use-on-iphone/</guid><description>I have prepared a list of applications that I use on my iPhone; the following list does not include all applications I’m using, but only those which can seem to be interesting for some of you.
.appBoxs { border-bottom: 1px solid #ccc; margin-top: 10px; padding-bottom: 10px; } Firefox
Very long-awaited iPhone app is Firefox, which is mostly valuable for its quick and easy synchronizing of browsing history, so I can continue my work on smartphone.</description></item><item><title>Facebook on Tor</title><link>https://sekor.eu.org/techlog/facebook-on-tor/</link><pubDate>Sun, 05 Apr 2015 12:05:20 +0000</pubDate><guid>https://sekor.eu.org/techlog/facebook-on-tor/</guid><description> Zuckerberg jealous that I have a blog with my name in the domain, decided to open his factory in onions.
Facebook available at: https://facebookcorewwwi.onion/</description></item><item><title>Compile and run OpenCV code from the command line</title><link>https://sekor.eu.org/techlog/compile-and-run-opencv-code-from-the-command-line/</link><pubDate>Thu, 01 Jan 2015 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/compile-and-run-opencv-code-from-the-command-line/</guid><description>For OpenCV 2.4.x cd /path/to/opencv/samples/c/
For OpenCV 3 cd /path/to/opencv/samples/cpp/
Compile g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect
run ./facedetect</description></item><item><title>StopForumSpam.com -> iptables</title><link>https://sekor.eu.org/techlog/stopforumspam.com-iptables/</link><pubDate>Thu, 01 Jan 2015 18:10:58 +0200</pubDate><guid>https://sekor.eu.org/techlog/stopforumspam.com-iptables/</guid><description>Start with the dependencies: apt-get install zip unzip ipset
Then add this to your existing iptables firewall script: ipset create sfs_block hash:net
iptables -I FORWARD -p tcp --dport 80:443 -m set --match-set sfs_block src -j DROP
Then a script that updates the ipset: ipset destroy tempset
ipset create tempset hash:net
cd /tmp
wget -N http://www.stopforumspam.com/downloads/listed_ip_7.zip
unzip listed_ip_7.zip
sed 's:^:add tempset :' listed_ip_7.txt &amp;gt; listed_ip_7_importfile.txt
ipset restore &amp;lt; listed_ip_7_importfile.txt
rm listed_ip_7_importfile.txt
ipset swap tempset sfs_block</description></item><item><title>How to change the description of the Stream in Liquidsoap</title><link>https://sekor.eu.org/techlog/how-to-change-the-description-of-the-stream-in-liquidsoap/</link><pubDate>Sun, 22 Jun 2014 09:27:44 +0000</pubDate><guid>https://sekor.eu.org/techlog/how-to-change-the-description-of-the-stream-in-liquidsoap/</guid><description>output.icecast( %mp3(bitrate=96), mount=&amp;quot;/radio-96.mp3&amp;quot;, genre=&amp;quot;electronic&amp;quot;, description=&amp;quot;ITUnix Radio Electronic Music&amp;quot;, name=&amp;quot;ITUnix Radio&amp;quot;, url=&amp;quot;http://radio.itunix.eu&amp;quot;, host=&amp;quot;localhost&amp;quot;, port=8147, password=&amp;quot;PASSWORD&amp;quot;, radio) example 2
output.icecast( %mp3(stereo=false, bitrate=16, samplerate=22050), host=&amp;quot;audio3.radioreference.com&amp;quot;, port = 80, password = &amp;quot;xxxxxxxxx&amp;quot;, genre=&amp;quot;Scanner&amp;quot;, description=&amp;quot;Scanner audio&amp;quot;, mount=&amp;quot;/xxxxxxxx&amp;quot;, name=&amp;quot;Baltimore Maryland Police/Fire/EMS&amp;quot;, user=&amp;quot;source&amp;quot;, url=&amp;quot;http://www.scanbaltimore.com&amp;quot;, radio)</description></item><item><title>Rsync backup remote server to local</title><link>https://sekor.eu.org/techlog/rsync-backup-remote-server-to-local/</link><pubDate>Fri, 16 May 2014 17:58:16 +0000</pubDate><guid>https://sekor.eu.org/techlog/rsync-backup-remote-server-to-local/</guid><description>What can I say, a simple way to backup remote server on the local machine
rsync -aHxv root@remote.example.com:/* /local/backup/server/ \ --exclude=/dev \ --exclude=/proc \ --exclude=/sys \ --exclude=/tmp</description></item><item><title>Setting up Nagios Server to Remotely Server on Debian</title><link>https://sekor.eu.org/techlog/setting-up-nagios-server-to-remotely-server-on-debian/</link><pubDate>Sun, 20 Apr 2014 23:03:59 +0000</pubDate><guid>https://sekor.eu.org/techlog/setting-up-nagios-server-to-remotely-server-on-debian/</guid><description>Step 1. Installing packages
We have one server for monitoring (eg. myoneserver). [client]
# aptitude install nagios-nrpe-server nagios-plugins And one server to view statistics. [server]
# aptitude install nagios-nrpe-plugin nagios-plugins nagios3 Step 2. Configuring the server for monitoring [client]
Edit /etc/nagios/nrpe.conf.
# nano /etc/nagios/nrpe.conf Set the server_address to the IP address you want NRPE to bind to on the Untangle server. If you want it to bind to all addresses, leave this command commented out.</description></item><item><title>Find and replace text in multiple files using geany</title><link>https://sekor.eu.org/techlog/find-and-replace-text-in-multiple-files-using-geany/</link><pubDate>Tue, 31 Dec 2013 21:26:59 +0000</pubDate><guid>https://sekor.eu.org/techlog/find-and-replace-text-in-multiple-files-using-geany/</guid><description>To open all files, in which a specific string is found, from inside of a directory (and subdirectories) open Geany, select Terminal tab from Message Window and run next command inside:
grep -rHIF --exclude='/home/modinfo/bitcoin/*~' -- 'text_to_find' /bin/bash /home/modinfo/bitcoin/* | geany `awk 'BEGIN {FS=&amp;quot;[:]&amp;quot;} {print $1}'` source</description></item><item><title>FIX: make: Nothing to be done for `first`.</title><link>https://sekor.eu.org/techlog/fix-make-nothing-to-be-done-for-first./</link><pubDate>Sat, 21 Dec 2013 17:05:28 +0000</pubDate><guid>https://sekor.eu.org/techlog/fix-make-nothing-to-be-done-for-first./</guid><description>following error:
make: Nothing to be done for `first`.
Solution:
qmake -project &amp;amp;&amp;amp; qmake hello.pro &amp;amp;&amp;amp; make</description></item><item><title>Liquidsoap: AutoDJ for icecast</title><link>https://sekor.eu.org/techlog/liquidsoap-autodj-for-icecast/</link><pubDate>Fri, 01 Nov 2013 15:03:30 +0000</pubDate><guid>https://sekor.eu.org/techlog/liquidsoap-autodj-for-icecast/</guid><description>Wonder it’s called “Liquidsoap”. Is a piece of firmware that can really do a lot of things. What does it do? Starting play playlists, depending on the time or any logic, he can listen to Icecast or Shoutcast instead, is able to download the streams from other servers, mix them, detect or work, etc…
Configuration looks like this:
#!/usr/bin/liquidsoap
set(&amp;quot;log.file.path&amp;quot;,&amp;quot;/tmp/basic-radio.log&amp;quot;)
# required speech synthesizer, aptitude install festival
message = &amp;quot;That's it!</description></item><item><title>Own IRC Server on Debian with Anope and MySQL</title><link>https://sekor.eu.org/techlog/own-irc-server-on-debian-with-anope-and-mysql/</link><pubDate>Tue, 21 May 2013 12:54:51 +0000</pubDate><guid>https://sekor.eu.org/techlog/own-irc-server-on-debian-with-anope-and-mysql/</guid><description>** Pre-Installation **
First, download the UnrealIRCd source, located here
wget http://www.unrealircd.com/downloads/Unreal3.2.10.1.tar.gz wget http://www.unrealircd.com/pgp/Unreal3.2.10.1.tar.gz.asc After you install it, run a few checks on the gzip file to make sure it is the secured version.
gpg --keyserver keys.gnupg.net --recv-keys 0x9FF03937 gpg --verify Unreal3.2.10.1.tar.gz.asc Unreal3.2.10.1.tar.gz Next, we have to extract the contents of the compressed file. Type
tar zxvf Unreal3.2.10.1.tar.gz ** SSL Support
If you want users to be able to connect to your IRC server via a secure connection, you will need to install a package called libcurl4-openssl-dev.</description></item><item><title>Nginx proxy_pass</title><link>https://sekor.eu.org/techlog/nginx-proxy_pass/</link><pubDate>Thu, 09 May 2013 09:48:18 +0000</pubDate><guid>https://sekor.eu.org/techlog/nginx-proxy_pass/</guid><description>From synchtube.itunix.eu:1337 to synchtube.itunix.eu
server { # listen 66.225.195.83; server_name synchtube.itunix.eu; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { proxy_pass http://synchtube.itunix.eu:1337; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_set_header Host static.example.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }</description></item><item><title>FIX ping: command not found</title><link>https://sekor.eu.org/techlog/fix-ping-command-not-found/</link><pubDate>Thu, 09 May 2013 09:39:35 +0000</pubDate><guid>https://sekor.eu.org/techlog/fix-ping-command-not-found/</guid><description>root@nsa310:~# ping -bash: ping: command not found here is simple solution
# aptitude install inetutils-tools inetutils-ping test it
root@nsa310:~# ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.128 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.091 ms ^C--- 127.0.0.1 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.091/0.110/0.128/0.000 ms</description></item><item><title>SSH Tunel to your Proxy Webbrowser</title><link>https://sekor.eu.org/techlog/ssh-tunel-to-your-proxy-webbrowser/</link><pubDate>Sat, 30 Mar 2013 23:41:54 +0000</pubDate><guid>https://sekor.eu.org/techlog/ssh-tunel-to-your-proxy-webbrowser/</guid><description>$ ssh -4 -N -D 1025 root@server.com 1025 is a proxy port (localhost:1025)</description></item><item><title>Notification of the new linux kernel on your Android in PHP</title><link>https://sekor.eu.org/techlog/notification-of-the-new-linux-kernel-on-your-android-in-php/</link><pubDate>Sat, 02 Feb 2013 13:06:24 +0000</pubDate><guid>https://sekor.eu.org/techlog/notification-of-the-new-linux-kernel-on-your-android-in-php/</guid><description>how to use? very simple!
$ crontab -e add line
* 7 * * * php /home/mod/notification.php&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 and save
now script will be run from cron every day at 7:00 am and notify you of a new kernel!</description></item><item><title>Screenshot with date and Countdown</title><link>https://sekor.eu.org/techlog/screenshot-with-date-and-countdown/</link><pubDate>Mon, 24 Dec 2012 00:31:33 +0000</pubDate><guid>https://sekor.eu.org/techlog/screenshot-with-date-and-countdown/</guid><description>Install: save code to /usr/bin/screenshot
Usage: screenshot 5
five us for 5sec countdown
#!/bin/sh if [ $1 ] then scrot -cd $1 &amp;quot;%Y-%m-%d_`echo $(date +%H-%m-%S)`.png&amp;quot; -e 'mv $f /home/modinfo/shots/' echo &amp;quot;Screenshot save in: /home/modinfo/shots/`echo $(date +%Y-%m-%d_%H-%m-%S)`.png&amp;quot; else scrot &amp;quot;%Y-%m-%d_`echo $(date +%H-%m-%S)`.png&amp;quot; -e 'mv $f /home/modinfo/shots/' echo &amp;quot;Screenshot save in: /home/modinfo/shots/`echo $(date +%Y-%m-%d_%H-%m-%S)`.png&amp;quot; fi</description></item><item><title>Create md5 from string im Linux</title><link>https://sekor.eu.org/techlog/create-md5-from-string-im-linux/</link><pubDate>Sat, 15 Dec 2012 10:42:47 +0000</pubDate><guid>https://sekor.eu.org/techlog/create-md5-from-string-im-linux/</guid><description>How to install?
Create new file
nano /usr/bin/md5 copy&amp;amp;paste code to /usr/bin/md5
chmod:
chmod +x /usr/bin/md5 Code:
#!/bin/sh if [ $1 ] then hash=&amp;quot;$(echo -n &amp;quot;$1&amp;quot; | md5sum )&amp;quot; echo &amp;quot;$hash&amp;quot; else echo &amp;quot;Example usage: md5 &amp;lt;you-string&amp;gt;&amp;quot; fi Usage and Output:
root@host:~# md5 sebastian c2d628ba98ed491776c9335e988e2e3b &amp;amp;#8211;</description></item><item><title>List crontab for all users</title><link>https://sekor.eu.org/techlog/list-crontab-for-all-users/</link><pubDate>Fri, 30 Nov 2012 22:03:27 +0000</pubDate><guid>https://sekor.eu.org/techlog/list-crontab-for-all-users/</guid><description>for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done</description></item><item><title>Own IRC Server on Debian</title><link>https://sekor.eu.org/techlog/own-irc-server-on-debian/</link><pubDate>Fri, 30 Nov 2012 20:20:50 +0000</pubDate><guid>https://sekor.eu.org/techlog/own-irc-server-on-debian/</guid><description> aptitude install ircd-irc2 nano /etc/ircd/ircd.conf M:irc.&amp;lt;HOSTNAME&amp;gt;::&amp;lt;COUNTRY&amp;gt;::000A A:&amp;lt;NAME&amp;gt;:&amp;lt;EMAIL&amp;gt;::&amp;lt;COMPANYNAME&amp;gt;: Y:1:90::100:512000:5.5:100.100 Y:2:90::300:512000:5.5:250.250 I:*:::0:1 I:127.0.0.1/32:::0:1 I:192.168.0.0/24::::0:2 P::::6667: nano /etc/ircd/ircd.motd Your welcome text /etc/init.d/ircd restart</description></item><item><title>if echo</title><link>https://sekor.eu.org/techlog/if-echo/</link><pubDate>Fri, 02 Nov 2012 17:02:48 +0000</pubDate><guid>https://sekor.eu.org/techlog/if-echo/</guid><description>$value = &amp;#39;aaa&amp;#39;; echo $value==&amp;#39;aaa&amp;#39; ? &amp;#39;yes&amp;#39; : &amp;#39;no&amp;#39;; example 1
echo &amp;#34;always say this &amp;#34; . ( ($test == &amp;#34;true&amp;#34;) ? &amp;#34;Say this if that is true&amp;#34; : &amp;#34;&amp;#34;) . &amp;#34; Always say this at the end.&amp;#34;; example 2
echo &amp;#39;&amp;lt;option value=&amp;#34;&amp;#39;.$value.&amp;#39;&amp;#34;&amp;#39;.($value==&amp;#39;United States&amp;#39; ? &amp;#39;selected=&amp;#34;selected&amp;#34;&amp;#39; : &amp;#39;&amp;#39;).&amp;#39;&amp;gt;&amp;#39;.$value.&amp;#39;&amp;lt;/option&amp;gt;&amp;#39;;</description></item><item><title>Autostart in Linux - made easy</title><link>https://sekor.eu.org/techlog/autostart-in-linux-made-easy/</link><pubDate>Wed, 31 Oct 2012 10:42:48 +0000</pubDate><guid>https://sekor.eu.org/techlog/autostart-in-linux-made-easy/</guid><description>add or remove programs from startup without effort, thanks rcconf!
root@example:~# aptitude install rcconf root@example:~# rcconf</description></item><item><title>iptables simple ban ip rules</title><link>https://sekor.eu.org/techlog/iptables-simple-ban-ip-rules/</link><pubDate>Thu, 18 Oct 2012 07:14:03 +0200</pubDate><guid>https://sekor.eu.org/techlog/iptables-simple-ban-ip-rules/</guid><description>Ban an IP address (IP address cannot be entered on the server)
# iptables -A INPUT -s 1.2.3.4 -j DROP Ban an IP address (cannot be accessed from the server on the IP)
# iptables -A OUTPUT -s 1.2.3.4 -j DROP Delete Rule by Chain and Number
# iptables -L --line-numbers # iptables -D INPUT 3 Flush a Single Chain
Delete all of the rules in the INPUT chain, run this command</description></item><item><title>Convert ogg to mp3 and mp3 to ogg</title><link>https://sekor.eu.org/techlog/convert-ogg-to-mp3-and-mp3-to-ogg/</link><pubDate>Tue, 02 Oct 2012 23:53:17 +0000</pubDate><guid>https://sekor.eu.org/techlog/convert-ogg-to-mp3-and-mp3-to-ogg/</guid><description>install sox and mp32ogg from you repository
convert ogg to mp3
sox file.ogg file.mp3 convert mp3 to ogg
mp32ogg musicsong.mp3</description></item><item><title>Generate a checksum of the files in a directory</title><link>https://sekor.eu.org/techlog/generate-a-checksum-of-the-files-in-a-directory/</link><pubDate>Tue, 02 Oct 2012 23:05:34 +0000</pubDate><guid>https://sekor.eu.org/techlog/generate-a-checksum-of-the-files-in-a-directory/</guid><description>find . -type f -print0 | xargs -0 md5sum &amp;gt;&amp;gt; checksum.md5</description></item><item><title>Change photos to pencil sketch in CLI</title><link>https://sekor.eu.org/techlog/change-photos-to-pencil-sketch-in-cli/</link><pubDate>Tue, 02 Oct 2012 22:00:22 +0000</pubDate><guid>https://sekor.eu.org/techlog/change-photos-to-pencil-sketch-in-cli/</guid><description>convert input.jpg -colorspace gray \( +clone -blur 0x2 \) +swap -compose divide-composite -linear-stretch 5%x0% output.jpg</description></item><item><title>Play music on a remote computer via SSH</title><link>https://sekor.eu.org/techlog/play-music-on-a-remote-computer-via-ssh/</link><pubDate>Tue, 02 Oct 2012 13:47:47 +0000</pubDate><guid>https://sekor.eu.org/techlog/play-music-on-a-remote-computer-via-ssh/</guid><description>On the &amp;ldquo;music server&amp;rdquo;
sudo apt-get install openssh-server mplayer On the your computer
ssh &amp;lt;username&amp;gt;@&amp;lt;serverip&amp;gt; cd /path/to/music/files If you want to play only one song
mplayer song.mp3 If you want to play the whole directory
mplayer *.mp3 In case of multiple extentions (example with mp3, wma and ogg files
mplayer *.mp3 *.wma *.ogg</description></item><item><title>Quick crontab man</title><link>https://sekor.eu.org/techlog/quick-crontab-man/</link><pubDate>Tue, 02 Oct 2012 12:58:37 +0000</pubDate><guid>https://sekor.eu.org/techlog/quick-crontab-man/</guid><description>#minute (0-59), #| hour (0-23), #| | day of the month (1-31), #| | | month of the year (1-12), #| | | | day of the week (0-6 with 0=Sunday). #| | | | | commands */5 2 * * 0,4 sh /home/mod/script.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1`</description></item><item><title>Disable ping reply on GNU/Linux</title><link>https://sekor.eu.org/techlog/disable-ping-reply-on-gnu/linux/</link><pubDate>Tue, 02 Oct 2012 12:37:56 +0000</pubDate><guid>https://sekor.eu.org/techlog/disable-ping-reply-on-gnu/linux/</guid><description>Disable ping reply temporarily
echo &amp;quot;1&amp;quot; &amp;gt; /proc/sys/net/ipv4/icmp_echo_ignore_all Enable the ping reply back
echo &amp;quot;1&amp;quot; &amp;gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</description></item><item><title>Generating passwords in cli</title><link>https://sekor.eu.org/techlog/generating-passwords-in-cli/</link><pubDate>Tue, 02 Oct 2012 12:29:20 +0000</pubDate><guid>https://sekor.eu.org/techlog/generating-passwords-in-cli/</guid><description>-c = length of the password
&amp;lt; /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c10 generating random txt
&amp;lt; /dev/urandom tr -dc [:print:] | head -c10000 &amp;gt; lol.txt</description></item><item><title>Swap file creation</title><link>https://sekor.eu.org/techlog/swap-file-creation/</link><pubDate>Tue, 02 Oct 2012 12:18:12 +0000</pubDate><guid>https://sekor.eu.org/techlog/swap-file-creation/</guid><description>A simple way to add extra memory to your machine .
Create an exchange file:
dd if=/dev/zero of=/swapfile bs=1M count=1024 _The above will create 1GB file (1M _ 1024)*
Improving access rights:
chmod 600 /swapfile Initialize it as a swap
mkswap /swapfile Activate /swapfile swap space immediately:
swapon /swapfile Make sure that it works:
free -m To activate /swapfile after Linux system reboot, add entry to /etc/fstab file.
vim /etc/fstab Add permanently to /etc/fstab:</description></item><item><title>Change all string on new im VIM</title><link>https://sekor.eu.org/techlog/change-all-string-on-new-im-vim/</link><pubDate>Tue, 02 Oct 2012 12:04:36 +0000</pubDate><guid>https://sekor.eu.org/techlog/change-all-string-on-new-im-vim/</guid><description>:%s/OLDTEXT/NEWTEXT Example
:%s/192.168.0.101/192.168.0.110</description></item><item><title>Create GIF animation in CLI from images</title><link>https://sekor.eu.org/techlog/create-gif-animation-in-cli-from-images/</link><pubDate>Tue, 02 Oct 2012 11:53:05 +0000</pubDate><guid>https://sekor.eu.org/techlog/create-gif-animation-in-cli-from-images/</guid><description>convert -delay 200 -quality 20 -size 200 -loop 0 &amp;lt;images&amp;gt; &amp;lt;gifImage.gif&amp;gt;
Example
convert -delay 200 -quality 20 -size 200 -loop 0 /home/images/*.png ~/gifImage.gif</description></item><item><title>scp - copy files over ssh in linux</title><link>https://sekor.eu.org/techlog/scp-copy-files-over-ssh-in-linux/</link><pubDate>Tue, 02 Oct 2012 11:45:26 +0000</pubDate><guid>https://sekor.eu.org/techlog/scp-copy-files-over-ssh-in-linux/</guid><description>scp filename.zip user@server:path Example
cd /home/dates/ scp data.zip root@192.168.0.100:/var/www/</description></item><item><title>nmap - scan an ip range for a single open port</title><link>https://sekor.eu.org/techlog/nmap-scan-an-ip-range-for-a-single-open-port/</link><pubDate>Tue, 02 Oct 2012 11:35:55 +0000</pubDate><guid>https://sekor.eu.org/techlog/nmap-scan-an-ip-range-for-a-single-open-port/</guid><description>nmap -p80 192.168.0.0/24 -oG - | grep 80/open Example
[modinfo@arch-pc ~]$ nmap -p80 192.168.0.0/24 -oG - | grep 80/open
Host: 192.168.0.1 (router) Ports: 80/open/tcp//http///
Host: 192.168.0.100 (aaa) Ports: 80/open/tcp//http///
Host: 192.168.0.126 (nsa310) Ports: 80/open/tcp//http///
Host: 192.168.0.133 (arch-pc) Ports: 80/open/tcp//http///</description></item><item><title>Linux tar Command - Creating tar file via CLI</title><link>https://sekor.eu.org/techlog/linux-tar-command-creating-tar-file-via-cli/</link><pubDate>Mon, 01 Oct 2012 11:24:23 +0000</pubDate><guid>https://sekor.eu.org/techlog/linux-tar-command-creating-tar-file-via-cli/</guid><description>Creating a tar archive tar -cvf archiveName.tar directoryToPack/ or
tar -cvf archiveName.tar /dir1 /dir2 file1 file2 or
tar -cvf archive.tar /dir/music /dir/photos /dir/text.txt Unpacking tar tar -zxvf archiveName.tar You can also unpack single files or directories using their list (divided by spaces) at the end of the command:
tar -xf archiveName.tar file1 file2 dir1 dir2 Packaging the same file formats tar cvzf allphps.tar *.php List the contents of a tar file List all files in allphps.</description></item><item><title>PHP Security - disabled the exec, etc.</title><link>https://sekor.eu.org/techlog/php-security-disabled-the-exec-etc./</link><pubDate>Sun, 30 Sep 2012 08:05:06 +0000</pubDate><guid>https://sekor.eu.org/techlog/php-security-disabled-the-exec-etc./</guid><description>In /etc/php5/apache2/php.ini
as someone already can upload phpshell it will not do too much…
disable_functions = exec, shell_exec, system, popen, passthru, escapeshellarg, escapeshellcmd, proc_close, proc_open, ini_alter, dl, popen, show_source, set_time_limit, php_uname, phpinfo, diskfreespace, disk_total_space, disk_free_space, get_current_user, posix_uname  </description></item><item><title>Own XMPP/Jabber Server on Debian</title><link>https://sekor.eu.org/techlog/own-xmpp/jabber-server-on-debian/</link><pubDate>Sun, 30 Sep 2012 06:23:50 +0000</pubDate><guid>https://sekor.eu.org/techlog/own-xmpp/jabber-server-on-debian/</guid><description>Installing ejab­berd: aptitude install ejabberd Configuration: nano /etc/ejabberd/ejabberd.cfg Find and change the line: {acl, admin, {user, &amp;quot;YOURNAME&amp;quot;, &amp;quot;YOURDOMAIN&amp;quot;}}. Append a little below your domain: {hosts, [&amp;quot;YOURDOMAIN&amp;quot;]}. Restart ejabberd: ejabberdctl restart Register an account for yourself: ejabberdctl register YOURNAME YOURDOMAIN YOURPASSWORD If the ejabberd is on a different server set SRV records: jid.YOURDOMAIN.TLD. A IPSERVEREJABBERD _xmpp-client._tcp.YOURDOMAIN.TLD. SRV 10 0 5222 jid.YOURDOMAIN.TLD. _xmpp-server._tcp.YOURDOMAIN.TLD. SRV 10 0 5269 jid.</description></item><item><title>Connection Limit Linux</title><link>https://sekor.eu.org/techlog/connection-limit-linux/</link><pubDate>Sun, 16 Sep 2012 10:06:30 +0000</pubDate><guid>https://sekor.eu.org/techlog/connection-limit-linux/</guid><description>iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 10 -j REJECT --reject-with tcp-reset</description></item><item><title>Show all php Errors</title><link>https://sekor.eu.org/techlog/show-all-php-errors/</link><pubDate>Sun, 16 Sep 2012 09:59:53 +0000</pubDate><guid>https://sekor.eu.org/techlog/show-all-php-errors/</guid><description>Show all php error in php file
error_reporting(E_ALL); ini_set(&amp;#39;display_errors&amp;#39;, &amp;#39;1&amp;#39;);</description></item><item><title>Linux commands to help me work</title><link>https://sekor.eu.org/techlog/linux-commands-to-help-me-work/</link><pubDate>Sun, 16 Sep 2012 09:57:49 +0000</pubDate><guid>https://sekor.eu.org/techlog/linux-commands-to-help-me-work/</guid><description>Search for files and directories given text
grep -i -n -r 'Search string' /var/www/path/ Shows how many times is the search text in the text and returns the result in numbers.
cat access.log|grep 'Search string' | wc -l Remove all .gz from /var/log/
find /var/log/ -name &amp;quot;*.gz&amp;quot; -type f -delete Find and replace text in all files in a directory
find ./ -type f -exec sed -i 's/string1/string2/g' {} \; find /var/log/ -type f -exec sed -i 's/string1/string2/g' {} \; Unpack tar files</description></item><item><title>Contact</title><link>https://sekor.eu.org/contact/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://sekor.eu.org/contact/</guid><description>Sebastian Korotkiewicz System Administrator, self-employed -- Direct contact
Mail skorotkiewicz@gmail.com fediverse @modinfo@pod.sekor.eu.org nostr af26863d814cbaf3e4849d30fa2d1f8a2ab138c236f9b0210ae17c1dde1e1fb7 -- XMPP skorotkiewicz@404.city (snopyta.org) -- Phone +49 (0)159 0268 1236 IRC l__q @ irc.libera.chat (freenode) Keyoxide.org keyoxide.org/B498E2E410902F8AEC108F4F5BDC557B496BDB0D Keybase.io keybase.io/modinfo I&amp;rsquo;m also on
Github github.com/skorotkiewicz Gitlab gitlab.com/skorotkiewicz Reddit reddit.com/user/skorotkiewicz Twitter twitter.com/skorotkiewicz Steam steamcommunity.</description></item><item><title>Search</title><link>https://sekor.eu.org/search/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://sekor.eu.org/search/</guid><description>#search-input{width:90%;padding:15px;font-size:16px;margin-bottom:10px;}ul#results-container{list-style-type:circle;}ul#results-container li{padding:3px;}.post, .wrapper_post {min-height: 70vh;} Type here what you are looking for, maybe I wrote about it on my blog already?
JavaScript is required for the searcher to work properly.
window.simpleJekyllSearch = new SimpleJekyllSearch({ searchInput: document.getElementById('search-input'), resultsContainer: document.getElementById('results-container'), json: '/index.json', searchResultTemplate: '{title}', noResultsText: 'No results found', limit: 10, fuzzy: false, exclude: ['Welcome'] })</description></item></channel></rss>