Skip to content

coders-home

PHP, Bash etc.

  • Home
  • Java
    • Tutorials
    • Tools
  • Linux
    • Shell-Scripting
    • Tutorials
  • PHP
    • Scripte
    • Tutorials
  • Impressum
  • Deutsch
  • English

Deny in iptables based on AS-number

7. December 2015Nicht kategorisiertMalte
iptables -N AS_DENY; iptables -I INPUT -j AS_DENY; whois -T route -i origin AS57169 | grep '^route:' | awk '{print $2}' | aggregate -q | xargs -n1 -I% iptables -A AS_DENY -s % -j DROP
Leave a comment

Search for entrys containing a specific string

7. December 2015Nicht kategorisiertMalte
SELECT * FROM `Liste` WHERE Webseite LIKE '%http:// http://%%'
//the string in this case is "http:// http://"
Leave a comment

Compress every folder in the current directory with strongest compression possible

7. December 2015Nicht kategorisiertMalte
for D in *; do [ -d "${D}" ] && tar -cf - $D | xz -9 -c - > $D.tar.xz; done
Leave a comment

Posts navigation

Newer posts →

Recent Posts

  • ThinkBook G13/G13s G4 IAP and similar microphones not working recently
  • Problems with Ubuntu 24.04 in VirtualBox 7.0.20 VM on a Windows 10 host
  • Running Dell C1660w/Xerox Phaser 6000B on Ubuntu 24.04
  • Fun with regex: We match the requirements for the HTTPS DNS record type defined by RFC 9460
  • Compile SquirrelMail imapproxy with OpenSSL 1.1.1 and 3.0

RSS German Posts

  • Emby Server neben anderen UPnP-Anwendungen auf gleichem Linux-System betreiben (Bind-to-all Problem)
  • Gerbera Media Server Webinterface-Login nicht möglich (404 Not Found, JS-Ressourcen nicht verfügbar) unter Ubuntu 24.04
  • Confluence „Spaces by category“-Makro zur Auflistung aller sichtbaren Spaces
  • Fritz!Box per WireGuard mit Linux-WireGuard-Server verbinden und direktes Routing nutzen (ohne NAT)
  • WireGuard Client unter Windows mit unprivilegierten Benutzern

Own links

  • maltris.org
  • oprtr.org
  • autotagebuch.net
  • manage-it-for.me

Categories

  • Linux
  • Nicht kategorisiert
  • OSS
  • PHP
  • Windows

Archives

  • April 2025
  • August 2024
  • July 2024
  • February 2024
  • June 2023
  • February 2023
  • October 2021
  • May 2021
  • December 2020
  • March 2020
  • February 2020
  • December 2015

Links

  • stick-test.de
  • gadgetmania.de
  • browserlife.de
Proudly powered by WordPress