#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
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
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 |
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.
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
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 |
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
# 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 |
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
groups: | |
- name: node_exporter_alerts | |
rules: | |
- alert: Node down | |
expr: up{job="monitoring-pi"} == 0 | |
for: 2m | |
labels: | |
severity: warning | |
annotations: | |
title: Node {{ $labels.instance }} is down |
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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
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 logging | |
from typing import Dict | |
from typing import List | |
import boto3 | |
import neo4j | |
from .util import get_botocore_config | |
from cartography.util import aws_handle_regions | |
from cartography.util import run_cleanup_job |
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 json | |
import requests | |
import os | |
import re | |
import hashlib | |
templates = { | |
'slack': {}, | |
'teams': { |
OlderNewer