Skip to content

Instantly share code, notes, and snippets.

Karol Babioch kbabioch

View GitHub Profile
View firefox-reaper.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Firefox DoS ❄️</title>
</head>
<body>
</body>
<script>
@ekreutz
ekreutz / ansible_variable_precedence.md
Created Dec 22, 2017
Ansible variable precedence (order, hierarchy)
View ansible_variable_precedence.md
@kbabioch
kbabioch / check_myip
Created Apr 22, 2017
Checks whether the given hostname matches the own external IP address. The external IP address is determined by querying https://myip.babioch.de.
View check_myip
#! /bin/sh
# Copyright (c) 2017 Karol Babioch <karol@babioch.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@a-dma
a-dma / yubitouch.sh
Last active Apr 24, 2020
Bash script for setting or clearing touch requirements for cryptographic operations in the OpenPGP application on a YubiKey 4.
View yubitouch.sh
#!/bin/bash
# Bash script for setting or clearing touch requirements for
# cryptographic operations the OpenPGP application on a YubiKey 4.
#
# Author: Alessio Di Mauro <alessio@yubico.com>
GCA=$(which gpg-connect-agent)
DO=0
UIF=0
@thomasfr
thomasfr / iptables.sh
Last active Jun 10, 2020
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
View iptables.sh
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers
You can’t perform that action at this time.