View compile.sh
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
docker run --rm -i -v "$PWD:/work" \ | |
-e OVPN_VER="2.5.3" \ | |
-e OVPN_BIN32="OpenVPN-2.5.3-I601-x86.msi" \ | |
-e OVPN_BIN64="OpenVPN-2.5.3-I601-amd64.msi" \ | |
-e OVPN_CONF="user.ovpn" \ | |
-e OVPN_SITE="vpn.example.net" \ | |
-e OUT_NAME="vpn_rdp_setup" \ | |
-e PASSWORD="asdf" \ | |
amake/innosetup:64bit openvpn_rdp_docker.iss |
View .htaccess
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
# --- HTTP BASIC AUTH /wp-login.php ------------------ | |
SetEnvIf Request_URI "/wp-login.php" auth=1 | |
AuthName "Please login." | |
AuthType Basic | |
AuthUserFile /var/www/.htpasswd | |
Order Allow,Deny | |
Satisfy any | |
Allow from all |
View add_hosts.py
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
from pyzabbix import ZabbixAPI | |
import sys | |
import argparse | |
url = 'http://localhost/' | |
user = 'Admin' | |
password = 'zabbix' | |
CLI=argparse.ArgumentParser() | |
CLI.add_argument( |
View app.yml
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
esphome: | |
name: test | |
platform: ESP32 | |
board: esp32doit-devkit-v1 | |
wifi: | |
ssid: "My_WiFi_AP" | |
password: "secretPassword123" | |
ap: | |
ssid: "Test Fallback Hotspot" |
View imap_quota_check.py
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
import imaplib, re | |
import os | |
p = re.compile('d+') | |
# --------------------------------- | |
login="user@example.net" | |
password="password123" | |
imap_server="example.net" | |
imap_port=993 |
View docker-compose.yml
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
version: "3" | |
services: | |
init-guacamole-db: | |
image: guacamole/guacamole:latest | |
command: ["/bin/sh", "-c", "test -e /init/initdb.sql && echo 'init file already exists' || /opt/guacamole/bin/initdb.sh --postgres > /init/initdb.sql" ] | |
volumes: | |
- dbinit:/init | |
postgres: |
View gist:d86880b14ef882f447b9b9bcf4d4a764
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
https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory | |
yum install perl gcc libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb pkgconfig krb5-workstation zlib-devel setroubleshoot-server libaio-devel setroubleshoot-plugins policycoreutils-python libsemanage-python setools-libs-python setools-libs popt-devel libpcap-devel sqlite-devel libidn-devel libxml2-devel libacl-devel libsepol-devel libattr-devel keyutils-libs-devel | |
cyrus-sasl-devel cups-devel bind-utils libxslt docbook-style-xsl openldap-devel pam-devel bzip2 vim wget openldap-devel openldap-clients nss-pam-ldapd pam-devel net-tools | |
./configure --enable-debug --enable-selftest --with-ads --with-systemd --with-winbind | |
make -j | |
make install | |
cat /etc/systemd/system/samba.service |
View all_google-ips.txt
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
martin@martin:~$ whois -h whois.arin.net "n google" | grep -i '^Google' | sed 's/.*)//' | tr -d ' ' | |
2620:E7:4000::-2620:E7:4000:FFFF:FFFF:FFFF:FFFF:FFFF | |
2620:E7:C000::-2620:E7:C000:FFFF:FFFF:FFFF:FFFF:FFFF | |
108.170.192.0-108.170.255.255 | |
108.177.0.0-108.177.127.255 | |
142.250.0.0-142.251.255.255 | |
172.217.0.0-172.217.255.255 | |
172.253.0.0-172.253.255.255 | |
173.194.0.0-173.194.255.255 | |
192.178.0.0-192.179.255.255 |
View gist:d3fd5975bccee1441a302e76faa3d874
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
# https://plugins.svn.wordpress.org/wp-fail2ban/trunk/filters.d/wordpress-hard.conf | |
# https://github.com/TrogloGeek/fail2ban-apache-sqlinject | |
# Test: fail2ban-regex /var/log/apache2/access.log /etc/fail2ban/filter.d/wordpress.conf | |
[INCLUDES] | |
before = common.conf | |
[Definition] |
View nyni.php
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
public function checkIfSeznam():bool | |
{ | |
return $this->get('utm_source') === 'www.seznam.cz' && in_array($this->get('utm_medium'), ['sekce-z-internetu', 'z-boxiku']); | |
} |
NewerOlder