This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Infrastructure\Serializer; | |
use Symfony\Component\Serializer\Encoder\DecoderInterface; | |
use Symfony\Component\Serializer\Encoder\EncoderInterface; | |
class FormEncoder implements EncoderInterface, DecoderInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Login | |
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" \ | |
--save-cookies cookies.txt --keep-session-cookies --no-check-certificate --delete-after \ | |
--post-data="log=REPLACE_WITH_LOGIN&pwd=REPLACE_WITH_PASS&testcookie=1" https://example.com/wp-login.php | |
# Download PDFs | |
wget --mirror --load-cookies cookies.txt --keep-session-cookies --no-check-certificate \ | |
--random-wait -e robots=off -A.pdf --page-requisites --adjust-extension --convert-links --backup-converted --no-parent \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYSTEMD_COLORS=false multitail -l 'journalctl -f' -l 'ssh router /log print follow-only' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
DB_HOST="HOST" | |
DB_PORT=3306 | |
DB_USER="USER" | |
DB_PASS="PASS" | |
DB_NAME="NAME" | |
BACKUP_DIR="$HOME/Dropbox/sql" | |
DB_FILE="dump.sql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- add this to your rc.lua, or include it as a dependency | |
-- Don't forget to add this to the layout section: | |
-- right_layout:add(protonvpnwidget) | |
protonvpnwidget = wibox.widget.textbox() | |
protonvpnwidget:set_text(" ProtonVPN: N/A ") | |
protonvpnwidgettimer = timer({ timeout = 5 }) | |
protonvpnwidgettimer:connect_signal("timeout", | |
function() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
echo "Wget $1" | |
wget --spider --recursive --level=3 --no-verbose --output-file=sitemap.txt $1 | |
echo "Grep URLs" | |
grep -i URL /tmp/sitemap.txt | awk -F 'URL:' '{print $2}' | awk '{$1=$1};1' | awk '{print $1}' | sort -u | sed '/^$/d' > /tmp/sitemap-urls.txt | |
header='<?xml version="1.0" encoding="UTF-8"?><urlset | |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(hol|hova|honnan|merre|mettol|meddig|mennyi|hany|hanyfele|mekkora|mifele|melyik|milyen|mikent|miert|hogyan|mikor|mikortol|mikent|mennyi|honnan|miota) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?i)^(ako|aka|ake|kde|kam|kedy|co|naco|preco|koho|odkial|kto|ktory|ktora|ktore)[" "] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/librenms-alerts.service | |
[Unit] | |
Description=Run librenms poller | |
[Service] | |
Type=oneshot | |
ExecStart=/opt/librenms/alerts.php | |
User=librenms |
NewerOlder