Skip to content

Instantly share code, notes, and snippets.

@lucasjhall
lucasjhall / icmp.rule.example.config
Last active February 16, 2020 22:55
blog.nebula.netdata.ie
inbound:
# Allow icmp between any nebula hosts
- port: any
proto: icmp
host: any
@lucasjhall
lucasjhall / nebula.lighthouse.dir.example.txt
Created January 7, 2020 01:30
nebula.lighthouse.dir.example
/nebula/lighthouse1
├── ca.cert # > /etc/nebula/
├── config.yaml # > /etc/nebula/
├── lighthouse.cert # > /etc/nebula/
├── lighthouse.key # > /etc/nebula/
├── nebula # > /user/local/bin/
└── nebula.service # > /etc/systemd/system/
@lucasjhall
lucasjhall / nebula.directoy.example
Last active January 6, 2020 23:04
nebula.directory.example
nebula
├── binaries # store local binaries here
├── ca # ca related activities
├── lighthouse1 # lighthouse related items and configs
└── node1 # node related itemd and configs
@lucasjhall
lucasjhall / cf-invalidate.php
Last active November 21, 2018 01:53 — forked from claylo/cf-invalidate.php
How to invalidate items in AWS CloudFront
<?php
/**
* Super-simple AWS CloudFront Invalidation Script
*
* Steps:
* 1. Set your AWS access_key in gitlab CI/CD
* 2. Set your AWS secret_key in gitlab CI/CD
* 3. Set your CloudFront DISTRIBUTION_ID in gitlab CI/CD
* 4. Define the batch of paths to invalidate
* 5. Run it on the command-line with: php invalidate-cloudfront.php $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY $DISTRIBUTION_ID
stages:
- test
- deploy
- invalidate
test:
stage: test
script:
- python munkilinter.py $CI_PROJECT_DIR
only:
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity ${yourIdentity}"
},
filebeat.prospectors:
- input_type: log
paths:
- /var/log/{example}.log
output.logstash:
hosts: ["{IP}}:5520"]
logging.level: info
@lucasjhall
lucasjhall / NM Generic.txt
Last active September 9, 2015 14:26
Boxstarter Win7 Deployment v1
Disable-InternetExplorerESC
Disable-UAC
Enable-RemoteDesktop
Install-WindowsUpdate
cinst boxstarter
cinst chocolatey
cinst google-chrome-x64
cinst firefox
cinst googledrive
Disable-InternetExplorerESC
Disable-UAC
Enable-RemoteDesktop
Install-WindowsUpdate
cinst boxstarter
cinst chocolatey
cinst google-chrome-x64