This is my docker systemd setup. I stored no configs or environment vars in this gist.
# Install Dependencies
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
#file /etc/sysconfig/slapd | |
# OpenLDAP server configuration | |
# see 'man slapd' for additional information | |
# Where the server will run (-h option) | |
# - ldapi:/// is required for on-the-fly configuration using client tools | |
# (use SASL with EXTERNAL mechanism for authentication) | |
# - default: ldapi:/// ldap:/// | |
# - example: ldapi:/// ldap://127.0.0.1/ ldap://10.0.0.1:1389/ ldaps:/// | |
SLAPD_URLS="ldap:/// ldaps:///" |
This gist is a compilation of two tutorials. You can find the original tutorials here and here. What should you know before using this? Everything can be executed from the home folder. For easier cleanup at the end you can make directory where you'll download everything, and then just use rm -rf .
. Although, you should be careful. If some strange bugs arise unexpectedly somewhere sometimes, just keep in mind that some user names have underscores in them (this is probably nothing to worry about).
sudo adduser --no-create-home --disabled-login --shell /bin/false --gecos "Prometheus Monitoring User" prometheus
sudo adduser --no-create-home --disabled-login --shell /bin/false --gecos "Node Exporter User" node_exporter
sudo adduser --no-create-home --disabled-login --shell /bin/false --gecos "Alertm
Command | Shortcut |
---|---|
xfce4-screenshooter --fullscreen --clipboard |
Ctrl + PrtScrn |
xfce4-screenshooter --fullscreen --save /home/dianjuar/Pictures |
PrtScrn |
xfce4-screenshooter --region --clipboard |
Ctrl + Shift + PrtScrn |
xfce4-screenshooter --region --save /home/dianjuar/Pictures |
Shift + PrtScrn |
xfce4-screenshooter --window --clipboard |
Ctrl + Super + PrtScrn |
xfce4-screenshooter --window --save /home/dianjuar/Pictures |
Super + PrtScrn |
#http://www.oidview.com/mibs/0/IF-MIB.html | |
#http://www.net-snmp.org/docs/mibs/interfaces.html | |
cisco_custom: | |
version: 2 | |
auth: | |
community: public | |
walk: | |
- 1.3.6.1.2.1.2.2.1 | |
- 1.3.6.1.2.1.31.1.1.1 | |
metrics: |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Disable vim automatic visual mode on mouse select | |
issue: :set mouse-=a | |
add to ~/.vimrc: set mouse-=a | |
my ~/.vimrc for preserving global defaults and only changing one option: | |
source $VIMRUNTIME/defaults.vim | |
set mouse-=a |
#!/usr/bin/env python | |
#coding=utf-8 | |
import apt | |
import apt_pkg | |
from time import strftime | |
import os | |
import subprocess | |
import sys |
# /dir/ means exclude the root folder /dir | |
# /dir/* means get the root folder /dir but not the contents | |
# dir/ means exclude any folder anywhere where the name contains dir/ | |
# Examples excluded: /dir/, /usr/share/mydir/, /var/spool/dir/ | |
# /dir means exclude any folder anywhere where the name contains /dir | |
# Examples excluded: /dir/, /usr/share/directory/, /var/spool/dir/ | |
# /var/spool/lpd//cf means skip files that start with cf within any folder within /var/spool/lpd | |
# | |
# include, + | |
# exclude, - |