# getenforce
Disabled
Also we need docker, docker-compose, certbot (if you need LetEncrypt)
mkdir -p /opt/graphite/conf /opt/graphite/data /opt/graphite/storage /opt/statsd /opt/grafana/log
/etc/docker/compose/graphite/docker-compose.yml
MAC_ADDR=`curl -s http://169.254.169.254/latest/meta-data/mac` | |
CIDR_FULL=`curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/${MAC_ADDR}/vpc-ipv4-cidr-block` | |
CIDR_BASE=`echo ${CIDR_FULL} | cut -d/ -f1 | cut -d\. -f1-3` | |
LAST_OCTET=`echo ${CIDR_FULL} | cut -d/ -f1 | cut -d\. -f4` | |
DNS_OCTET=`expr ${LAST_OCTET} + 2` | |
DNS_IP="${CIDR_BASE}.${DNS_OCTET}" | |
echo $DNS_IP |
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist | |
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist |
# This error goes to STDERR | |
$ asdfasdf | |
-bash: asdfasdf: command not found | |
# We redirect STDERR to STDOUT, but STDOUT to null, so we can use grep against STDERR | |
$ asdfasdf 2>&1 >/dev/null | grep -q not ; echo $? | |
0 |
#!/usr/bin/python | |
''' Not my script, found on the Internet, and rediscovered on my hard drive | |
''' | |
import sys | |
def cidr_to_regex(cidr): | |
ip, prefix = cidr.split('/') | |
base = 0 | |
for val in map(int, ip.split('.')): |
#!/usr/bin/python | |
####################################################################### | |
# This program is free software; you can redistribute it and/or # | |
# modify it under the terms of the GNU General Public License as # | |
# published by the Free Software Foundation; either version 2 of the # | |
# License, or (at your option) any later version. # | |
# # | |
# This program is distributed in the hope that it will be useful, but # | |
# WITHOUT ANY WARRANTY; without even the implied warranty of # | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # |
# getenforce
Disabled
Also we need docker, docker-compose, certbot (if you need LetEncrypt)
mkdir -p /opt/graphite/conf /opt/graphite/data /opt/graphite/storage /opt/statsd /opt/grafana/log
/etc/docker/compose/graphite/docker-compose.yml
/******************************************************************************* | |
**3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 | |
** 10 20 30 40 50 60 70 80 | |
** | |
** program: | |
** rgba-glx | |
** | |
** author: | |
** Mirco "MacSlow" Mueller <macslow@bangang.de> | |
** |
ಠ_ಠ | |
( ͡° ͜ʖ ͡°) | |
¯\_(ツ)_/¯ | |
(╯°□°)╯︵ ┻━┻ | |
http://www.fileformat.info/convert/text/upside-down.htm | |
WRTTN http://wrttn.me/30dbfd/ | |
Unicode Emoticons |
#!/bin/bash | |
# | |
# Enable nopasswd mode for sudo on macOS from the userspace in fast and totally non-interactive way | |
# | |
# Type the password last time to apply the new mode and forget it for any console task for ages | |
# Use the rollback to restore password protection | |
# | |
# Developed and tested by https://juliyvchirkov.github.io/ under the MIT license on macOS Big Sur 11.2.0 | |
# | |
# Get latest version at https://gist.github.com/juliyvchirkov/3ca76582ed6b6a8366c9e7d60644960d |