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
# 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 ()
...
@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
mtr
tshark
netcat
nmap
nethogs
iptraf
example.com {
tls domain-admin@example.com
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}
}
}
@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
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 / values.yaml
Created November 22, 2018 00:20
datadog
# Default values for datadog.
image:
# This chart is compatible with different images, please choose one
repository: datadog/agent # Agent6
# repository: datadog/dogstatsd # Standalone DogStatsD6
tag: 6.6.0 # Use 6.6.0-jmx to enable jmx fetch collection
pullPolicy: IfNotPresent
## It is possible to specify docker registry credentials
## See https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
# pullSecrets:
@moosh3
moosh3 / cidr
Created October 25, 2018 17:30
Netmask Netmask (binary) CIDR Notes
_____________________________________________________________________________
255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr)
255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable
255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable
255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable
255.255.255.192 11111111.11111111.11111111.11000000 /26 62 useable
255.255.255.128 11111111.11111111.11111111.10000000 /25 126 useable
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* This is <linux/capability.h>
*
* Andrew G. Morgan <morgan@kernel.org>
* Alexander Kjeldaas <astor@guardian.no>
* with help from Aleph1, Roland Buresund and Andrew Main.
*
* See here for the libcap library ("POSIX draft" compliance):
*

Keybase proof

I hereby claim:

  • I am aleccunningham on github.
  • I am aleccunningham (https://keybase.io/aleccunningham) on keybase.
  • I have a public key ASDVWnn89eWkzgjSDIJ69Sa6ZFI-Fe_XxKO5CnpLzCr6Ngo

To claim this, I am signing this object: