start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/python | |
# All SSH libraries for Python are junk (2011-10-13). | |
# Too low-level (libssh2), too buggy (paramiko), too complicated | |
# (both), too poor in features (no use of the agent, for instance) | |
# Here is the right solution today: | |
import subprocess | |
import sys |
#!/bin/sh | |
# | |
# Shell script for installation and setup of L2TP/IPsec VPN tunnel in remote access | |
# mode. Remote access mode allaows individual users to login using username/password | |
# and be allocated IP on the private network. Uses shared secret (PSK) and username/password | |
# in file (ppp chap-secret) for authentication. VPN software is libreswan + xl2tpd + pppd. | |
# | |
# This should work on linux systems that are RHEL based. | |
# | |
# To install directly from this gist, you can curl the "raw" version and pipe that to |
#!/usr/bin/env node | |
########################################################################################### | |
# Dynamic inventory for Ansible with DNS | |
# Author Remie Bolte (https://nl.linkedin.com/in/remiebolte) | |
# | |
# This NodeJS script generates a dynamic inventory based on DNS TXT records. | |
# | |
# If you use the “--inventory” switch when calling Ansible, you can provide the | |
# path to a directory which includes inventory files. Ansible will automtically |
#!/bin/bash | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
# Custom history configuration | |
# Run script using: | |
# chmod u+x better_history.sh | |
# sudo su | |
# ./better_history.sh | |
echo ">>> Starting" | |
echo ">>> Loading configuration into /etc/bash.bashrc" | |
echo "HISTTIMEFORMAT='%F %T '" >> /etc/bash.bashrc | |
echo 'HISTFILESIZE=-1' >> /etc/bash.bashrc |