Skip to content

Instantly share code, notes, and snippets.

@krisek
krisek / zero_rule_hub_and_spoke
Last active September 13, 2021 12:59
zerotier simple hub and spoke ruleset
# Create a tag for which department someone is in
tag department
id 10 # arbitrary, but must be unique
enum 100 spoke # has no meaning to filter, but used in UI to offer a selection
enum 200 hub
enum 300 super
;
# Whitelist only IPv4 (/ARP) and IPv6 traffic and allow only ZeroTier-assigned IP addresses
drop # drop cannot be overridden by capabilities
You can check if an SSL certificate matches a Private Key by using the 3 easy commands below.
For your SSL certificate: openssl x509 –noout –modulus –in <file>.crt | openssl md5
For your RSA private key: openssl rsa –noout –modulus –in <file>.key | openssl md5
For your CSR: openssl req -noout -modulus -in <file>.csr | openssl md5
@krisek
krisek / README.md
Last active November 19, 2020 21:56
Spotlight photos on X

This Gist contains a bash and a fish shell script to get MS Spotlight photos on your Linux machine.

Depends on curl, jq and sed.

@krisek
krisek / README.md
Last active October 22, 2020 06:41
DevOps install
#devops install

curl -L https://get.oh-my.fish | fish
sudo bash -c 'echo /usr/local/bin/fish >> /etc/shells'
chsh -s /usr/local/bin/fish
omf theme bobthefish

git clone https://github.com/jimeh/tmux-themepack.git ~/.tmux-themepack
MATCH (t:Tag{value:'whatever'})-[:TAGGED]-(v:AWSVpc)-[:MEMBER_OF_AWS_VPC]-(n)-[:SUBNET|:TAGGED]-(lb) WHERE EXISTS(lb.dnsname) OR lb.key = 'Name' RETURN n,lb
MATCH (t:Tag{value:'hnq40'})-[:TAGGED]-(v:AWSVpc)-[:MEMBER_OF_AWS_VPC]-(n)-[:SUBNET|:TAGGED]-(lb)-[:DNS_POINTS_TO|:MEMBER_OF_EC2_SECURITY_GROUP]-(d) WHERE EXISTS(lb.dnsname) OR lb.key = 'Name' RETURN n,lb,d