Skip to content

Instantly share code, notes, and snippets.

View moosh3's full-sized avatar
๐Ÿ
doing devop things

Alec Cunningham moosh3

๐Ÿ
doing devop things
View GitHub Profile
version: '2'
services:
freepbx-app:
container_name: freepbx-app
image: tiredofit/freepbx
ports:
#### If you aren't using a reverse proxy
#- 80:80
#### If you want SSL Support and not using a reverse proxy
@moosh3
moosh3 / docker-compose.portainer.yml
Created December 2, 2018 20:24
Portainer web UI
version: '2'
services:
portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
example.com {
tls [email protected]
root /var/www/wordpress
gzip
fastcgi / /run/php/php7.2-fpm.sock php
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?{query}
}
}
mtr
tshark
netcat
nmap
nethogs
iptraf
@moosh3
moosh3 / crontab
Last active January 6, 2019 16:38
#m h dom mon dow command
30 06 * * 0 pgbackrest --type=full --stanza=staging backup
30 06 * * 1-6 pgbackrest --type=diff --stanza=staging backup
# nmap -p80 -Pn -oG - 10.1.0.1/24
#
Host: 10.1.0.43 () Ports: 80/open/tcp//http///
$1 $2 $3 $4 $5
# nmap -p80 -Pn -oG - 10.1.0.1/24 | awk '/open/{print $2 " " $3}'
10.1.0.1 ()
10.1.0.2 ()
...
//snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
//snippet-sourceauthor:[Doug-AWS]
//snippet-sourcedescription:[Creates a KMS key.]
//snippet-keyword:[AWS Key Management Service]
//snippet-keyword:[CreateKey function]
//snippet-keyword:[Go]
//snippet-service:[kms]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[2018-03-16]
/*
#snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
#snippet-sourceauthor:[Doug-AWS]
#snippet-sourcedescription:[Creates a customer master key using KMS.]
#snippet-keyword:[AWS Key Management Service]
#snippet-keyword:[create_key method]
#snippet-keyword:[Ruby]
#snippet-service:[kms]
#snippet-sourcetype:[full-example]
#snippet-sourcedate:[2018-03-16]
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#!/bin/sh
case "$SSH_ORIGINAL_COMMAND" in
*\&*)
echo "Rejected"
;;
*\(*)
echo "Rejected"
;;
*\{*)