Skip to content

Instantly share code, notes, and snippets.

Lucas lucasjhall

Block or report user

Report or block lucasjhall

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
View nebula.lighthouse.dir.example.txt
/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 Jan 6, 2020
nebula.directory.example
View nebula.directoy.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 / icmp.rule.example.config
Last active Feb 16, 2020
blog.nebula.netdata.ie
View icmp.rule.example.config
inbound:
# Allow icmp between any nebula hosts
- port: any
proto: icmp
host: any
@lucasjhall
lucasjhall / cf-invalidate.php
Last active Nov 21, 2018 — forked from claylo/cf-invalidate.php
How to invalidate items in AWS CloudFront
View cf-invalidate.php
<?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
View example.gitlab-ci.yml
stages:
- test
- deploy
- invalidate
test:
stage: test
script:
- python munkilinter.py $CI_PROJECT_DIR
only:
View example-iam-s3-policy
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity ${yourIdentity}"
},
View filebeat-example.yml
filebeat.prospectors:
- input_type: log
paths:
- /var/log/{example}.log
output.logstash:
hosts: ["{IP}}:5520"]
logging.level: info
View FS Boxstarter
Disable-InternetExplorerESC
Disable-UAC
Enable-RemoteDesktop
Install-WindowsUpdate
cinst boxstarter
cinst chocolatey
cinst google-chrome-x64
@lucasjhall
lucasjhall / NM Generic.txt
Last active Sep 9, 2015
Boxstarter Win7 Deployment v1
View NM Generic.txt
Disable-InternetExplorerESC
Disable-UAC
Enable-RemoteDesktop
Install-WindowsUpdate
cinst boxstarter
cinst chocolatey
cinst google-chrome-x64
cinst firefox
cinst googledrive
You can’t perform that action at this time.