Skip to content

Instantly share code, notes, and snippets.

Julian Pawlowski jpawlowski

Block or report user

Report or block jpawlowski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jpawlowski
jpawlowski / zabbix_mibs_vendors_link.sh
Last active Mar 14, 2020
SNMP MIB and SNMPTT helper script for Zabbix integration
View zabbix_mibs_vendors_link.sh
@jpawlowski
jpawlowski / install_cups+airprint_centos7.md
Last active Mar 13, 2020
Install and configure CUPS 2.1.2 on CentOS 7 (LXC running on Proxmox VE) host including AirPrint
View install_cups+airprint_centos7.md

Basic setup, e.g. enable ssh

yum -y install epel-release
yum -y upgrade
yum -y install openssh-server net-tools iputils psmisc less which man mc bash-completion bash-completion-extras bash-argsparse bind-utils traceroute htop mtr
echo "export HISTTIMEFORMAT='%F %T  '" > /etc/profile.d/history.sh
echo "export HISTIGNORE='ls -l:pwd:date:'" >> /etc/profile.d/history.sh
echo "export HISTCONTROL=ignoredups" >> /etc/profile.d/history.sh
systemctl enable sshd
systemctl start sshd
@jpawlowski
jpawlowski / zabbix_snmp_setup.md
Last active Mar 5, 2020
SNMPTT installation on CentOS 7 for Zabbix integration
View zabbix_snmp_setup.md

SNMPTT installation on CentOS 7 for Zabbix integration

yum install wget make gcc net-snmp net-snmp-utils

cd /usr/local/src
wget http://downloads.sourceforge.net/project/snmptt/snmptt/snmptt_1.4/snmptt_1.4.tgz

tar xfz snmptt_*.tgz
snmp_*
cp -rv snmptt snmpttconvert snmpttconvertmib snmptthandler-embedded /usr/sbin/
@jpawlowski
jpawlowski / brew-sync.sh
Last active Jan 24, 2020
Sync Homebrew installations between Macs via Dropbox
View brew-sync.sh
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@jpawlowski
jpawlowski / haproxy.cfg
Last active Nov 30, 2019
Geeking out with HAproxy on pfSense: The ultimate port 443 TLS/SSL router | http://loredo.me/post/116633549315/geeking-out-with-haproxy-on-pfsense-the-ultimate
View haproxy.cfg
global
maxconn 2000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
chroot /tmp/haproxy_chroot
daemon
tune.ssl.default-dh-param 2048
# Modern browser compatibility only as mentioned here:
@jpawlowski
jpawlowski / install_rsyslog_centrallogging_centos7.md
Last active Nov 3, 2019
Configure rsyslogd on CentOS 7 as Remote Syslog Server
View install_rsyslog_centrallogging_centos7.md

Configure rsyslogd on CentOS 7 as Remote Syslog Server

echo "\$ModLoad imudp" > /etc/rsyslog.d/server.conf
echo "\$UDPServerRun 514" >> /etc/rsyslog.d/server.conf
echo "\$ModLoad imtcp" >> /etc/rsyslog.d/server.conf
echo "\$InputTCPServerRun 514" >> /etc/rsyslog.d/server.conf
echo "\$PreserveFQDN on" >> /etc/rsyslog.d/server.conf

yum -y install rsyslog-gnutls rsyslog-mysql rsyslog-crypto
@jpawlowski
jpawlowski / msys_hetzner-etc_network_interfaces
Created Aug 12, 2012
Debian network configuration for Proxmox VE server running on a Hetzner host
View msys_hetzner-etc_network_interfaces
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
# device: eth0
iface eth0 inet manual
# IPv4 bridge
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!)
@jpawlowski
jpawlowski / gist:4d1d096432f0f54164ed29188f083586
Last active Oct 6, 2019
macOS Catalina 10.5 GM Direct Download Link
View gist:4d1d096432f0f54164ed29188f083586
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/AppleDiagnostics.chunklist
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/AppleDiagnostics.dmg
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/BaseSystem.chunklist
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/BaseSystem.dmg
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/InstallESDDmg.pkg
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/InstallInfo.plist
http://swcdn.apple.com/content/downloads/22/22/061-26769-A_7W1UT0LW93/hvmo0d13zco309g89ia09j6cdk6blq8fsm/RecoveryHDMetaDmg.pkg
@jpawlowski
jpawlowski / HAproxy_uberspace.markdown
Last active Jul 23, 2019
Setup HAproxy on an Uberspace webspace
View HAproxy_uberspace.markdown

HAproxy als Reverse Proxy auf Uberspace installieren

Wer bei verschiedenen Reverse Proxy Aktivitäten auf seinem Uberspace mit Apache auf Grenzen stößt, kann HAproxy installieren. Ähnlich wie Pound ist es DASein Swiss Army Knife für alle HTTP, HTTPS und TCP Aktivitäten. Man kann sehr granular auf Layer 3-7 beeinflussen, wie Daten an andere Server und Dienste weitergeschleust werden sollen.

Ich benötigte HAproxy, um eine Website von einem externen Server via TLS gesichert per Uberspace verfügbar zu machen, also ein recht simles Szenario.

Apache Proxy einrichten

View IT_naming_schema.md

IT Naming Schema - RfC DRAFT 2016-001


DNS SUFFIX AND SEARCH

DOMAIN NAMES:

intdomain.tld - technical internal use extdomain.tld - technical external use internal.company.tld - nice looking internal names in accordance with company name to satisfy marketing aspects; should mostly be CNAMEs to intdomain.tld company.tld - nice looking names in accordance with company name to satisfy marketing aspects; should mostly be CNAMEs to extdomain.tld

You can’t perform that action at this time.