Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
PACKAGE_LIST_FILE="fdroid_packages.txt"
DOWNLOAD_DIR="fdroid_apks"
check_dependency() {
command -v "$1" >/dev/null 2>&1 || {
echo >&2 "Error: '$1' command not found. Please install it."
exit 1
}
@beucismis
beucismis / factorio-server-manager.service
Last active February 25, 2025 20:50
Factorio Server Manager Systemd Service File
[Unit]
Description=A tool to help manage Factorio multiplayer servers including mods and save games.
After=network.target
Wants=network-online.target
[Service]
Restart=always
Type=simple
WorkingDirectory=/home/user/factorio-server-manager
ExecStart=/home/user/factorio-server-manager/factorio-server-manager --dir /home/user/.steam/steam/steamapps/common/Factorio --port 3131
#!/bin/bash
USER=beucismis
LOG_FILENAME=usbsniffer.log
LOG_FILE_PATH=/home/$USER/usbsniffer/$LOG_FILENAME
TARGET_DIR_PATH=/home/$USER/usbsniffer/files/
function usage() {
echo "Usage: $0 {device_name} (e.g. sda1)"
exit 1
<?xml version="1.0" encoding="utf-16"?><OtobusListesi qId="98"><Otobus xmlYazmaSaati="20:17:26"><hatno>110</hatno><hatadi>Bayramyeri-Gökpınar</hatadi><plaka>20 BL 153/B-153</plaka><hiz>24,00</hiz><latitude>37,77959000</latitude><longitude>29,08227333</longitude><kalanduraksayisi>16</kalanduraksayisi><beklenenDurakSira>19</beklenenDurakSira><otobusDurakSira>3</otobusDurakSira><kalkisaKadarkiDakika>0</kalkisaKadarkiDakika><sure>0:22:13</sure></Otobus><Otobus xmlYazmaSaati="20:17:26"><hatno>130</hatno><hatadi>Teleferik-Servergazi Hastanesi</hatadi><plaka>20 BL 139/B-139</plaka><hiz>0,00</hiz><latitude>37,79534500</latitude><longitude>29,09790000</longitude><kalanduraksayisi>49</kalanduraksayisi><beklenenDurakSira>50</beklenenDurakSira><otobusDurakSira>-1</otobusDurakSira><kalkisaKadarkiDakika>0</kalkisaKadarkiDakika><sure>1:3:36</sure></Otobus><Otobus xmlYazmaSaati="20:17:26"><hatno>130</hatno><hatadi>Teleferik-Servergazi Hastanesi</hatadi><plaka>20 BB 632/M-632</plaka><hiz>3,00</hiz><latitude>37,77065000</latit
@beucismis
beucismis / my-ublock-static-filters.txt
Last active February 9, 2023 19:42
My uBlock Static Filters
! 2023-01-21 https://www.turkanime.co
www.turkanime.co##div.row:nth-of-type(3) > div.col-xs-12:nth-of-type(1)
www.turkanime.co##.col-xs-4 > .row > div.col-xs-12:nth-of-type(1)
www.turkanime.co##div.col-xs-6:nth-of-type(2)
www.turkanime.co##.col-xs-4 > .row > div.col-xs-12:nth-of-type(4) > .panel
www.turkanime.co##.col-xs-4 > .row > div.col-xs-12:nth-of-type(5) > .panel
www.turkanime.co##.alert-dark.alert
www.turkanime.co##.hidden-xs.alert-default.alert
www.turkanime.co##.ceviri.alert-info.alert
@beucismis
beucismis / syncthing
Created August 13, 2022 10:37
Syncthing service file for OpenRC
#!/sbin/openrc-run
name=$RC_SVCNAME
description="Syncthing - Open Source Continuous File Synchronization"
supervisor="supervise-daemon"
command_user="beucismis"
command="/usr/bin/syncthing"
command_args="-no-browser -no-restart -logflags=0"
import os
import inquirer
EDITOR = os.environ["EDITOR"]
NOTES_PATH = os.environ["NOTES_PATH"]
questions = [
inquirer.List(
"filename",
message="Select file to edit",
We couldn’t find that file to show.
@beucismis
beucismis / out.cfg
Last active April 3, 2022 19:30
31.png
{"canvases_enabled": [0], "pixels": [{"x": 659, "y": 1734, "color_index": 27}, {"x": 660, "y": 1734, "color_index": 27}, {"x": 661, "y": 1734, "color_index": 27}, {"x": 662, "y": 1734, "color_index": 27}, {"x": 663, "y": 1734, "color_index": 27}, {"x": 664, "y": 1734, "color_index": 27}, {"x": 665, "y": 1734, "color_index": 27}, {"x": 666, "y": 1734, "color_index": 27}, {"x": 667, "y": 1734, "color_index": 27}, {"x": 668, "y": 1734, "color_index": 27}, {"x": 669, "y": 1734, "color_index": 27}, {"x": 670, "y": 1734, "color_index": 27}, {"x": 659, "y": 1735, "color_index": 27}, {"x": 660, "y": 1735, "color_index": 4}, {"x": 661, "y": 1735, "color_index": 4}, {"x": 662, "y": 1735, "color_index": 4}, {"x": 663, "y": 1735, "color_index": 4}, {"x": 664, "y": 1735, "color_index": 4}, {"x": 665, "y": 1735, "color_index": 4}, {"x": 666, "y": 1735, "color_index": 4}, {"x": 667, "y": 1735, "color_index": 4}, {"x": 668, "y": 1735, "color_index": 4}, {"x": 669, "y": 1735, "color_index": 4}, {"x": 670, "y": 1735, "color_in
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2022-01-04T00:07:24.089Z",
"redirects": [
{
"description": "Medium to Scribe",
"exampleUrl": "https://medium.com/@nickname/post-123456abcdef",
"exampleResult": "https://scribe.rip/@nickname/post-123456abcdef",
"error": null,
"includePattern": "^https?://(?:.*\\.)*(?<!link.)medium\\.com(/.*)?$",