start new:
tmux
start new with session name:
tmux new -s myname
| 2019-02-03 12:04:14,643 DEBUG livemedia-creator: Namespace(anaconda_args=None, app_file='appliance.xml', app_name=None, app_template=None, arch=None, armplatform=None, compress_args=[], compression='xz', disk_image=None, domacboot=True, dracut_args=None, fs_image=None, fs_label='Anaconda', image_name='centos-7-docker.tar.xz', image_only=False, image_type=None, iso='/tmp/boot.iso', iso_name=None, iso_only=False, keep_image=False, kernel_args=None, ks=['/tmp/centos7.ks'], live_rootfs_keep_size=False, live_rootfs_size=0, location=None, logfile='/tmp/livemedia.log', lorax_templates=None, make_ami=False, make_appliance=False, make_disk=False, make_fsimage=False, make_iso=False, make_oci=False, make_ostree_live=False, make_pxe_live=False, make_tar=True, make_vagrant=False, no_kvm=False, no_virt=False, oci_config=None, oci_runtime=None, ovmf_path='/usr/share/edk2/ovmf/', project='Linux', proxy=None, qcow2=False, qemu_args=[], ram=2048, releasever='29', result_dir=None, squashfs_args=None, timeout=None, title='Linux |
| # This is a minimal CentOS kickstart designed for docker. | |
| # It will not produce a bootable system | |
| # To use this kickstart, run the following command | |
| # livemedia-creator --make-tar \ | |
| # --iso=/path/to/boot.iso \ | |
| # --ks=centos-7.ks \ | |
| # --image-name=centos-root.tar.xz | |
| # | |
| # Once the image has been generated, it can be imported into docker | |
| # by using: cat centos-root.tar.xz | docker import -i imagename |
| HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
| Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
| Latest version of this file (in English) is usually at: | |
| http://www.pement.org/awk/awk1line.txt | |
| This file will also be available in other languages: | |
| Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
| USAGE: |
| # A dotfile to turn iTerm2 tabs a different colour based on the hostname glob. | |
| # Useful for marking different environments in different colours. | |
| # Cargo-culted from multiple sources, apologies for not fully acknowledging them :( | |
| # The colours you set are defined in a function that calls another pair of functions. | |
| # Here I've used Solarized Dark, but of course you can use anything you like. | |
| # Solarized colours | |
| function tab_sol_yellow { set_iterm_title "$1"; tab_color 181 137 0; } | |
| function tab_sol_orange { set_iterm_title "$1"; tab_color 203 75 22; } | |
| function tab_sol_red { set_iterm_title "$1"; tab_color 220 50 47; } |
| #!/usr/bin/perl | |
| # AJPING - pings a servlet engine with AJP protocol | |
| # Sends: \x12\x34\x00\x01\x0a | |
| # Expects: \0x41\0x42\0x00\0x01\0x09 | |
| # | |
| # taken from https://www.joedog.org/2012/06/06/ajp-functional-test/ | |
| # license: Creative Commons Attribution-NonCommercial 3.0 License | |
| # | |
| use strict; | |
| use Socket; # Part of perl |
| #!/bin/bash | |
| # Scans the list of hosts and checks that | |
| # DNS has a forward and reverse record for them | |
| # Then compares the wiki host name with the PTR host name | |
| # Generates a simple dokuwiki table | |
| # runs in cron early every morning: | |
| # check-dns-from-wiki.sh /data/wiki/data/pages/it/hostlist.txt > /data/wiki/data/pages/it/dnscheckresults.txt | |
| # data is in a table, example: | |
| # | [[:IT:hosts:test01.example.net]] | A test server, managed by XYZ corp | contact this person in case of emergency | |
| #!/bin/bash | |
| # Creates a simple dokuwiki page, listing Borg backups from a text file | |
| # File has one entry per line: "host.example.net-2017-08-31-02:55 Thu, 2017-08-31 02:55:03" | |
| # Runs in cron early every morning: list-backups.sh host.example.net.txt > dokuwikipage.txt | |
| BACKUP_LIST=$1 | |
| HOST_NAME=$(basename -s .txt "${BACKUP_LIST}") | |
| echo "====== ${HOST_NAME} Backup List ======" |
| # Other links: | |
| # https://christophermonzon.wordpress.com/2016/10/04/centos-7-network-performance/ | |
| # https://lwn.net/Articles/616241/ | |
| # https://wiki.mikejung.biz/Sysctl_tweaks | |
| # https://access.redhat.com/solutions/190643 | |
| # http://fasterdata.es.net/network-tuning/udp-tuning/ | |
| # MariaDB Tuning | |
| vm.swappiness = 1 |
| #!/bin/bash -e | |
| JDK_MAJOR_VERSION='8' | |
| JDK_MINOR_VERSION='66' | |
| JDK_FILENAME="jdk-${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}-linux-x64.tar.gz" | |
| JDK_DOWNLOAD_BASE='http://local-mirror.example.com/miscfiles/' | |
| JDK_DOWNLOAD_URL="${JDK_DOWNLOAD_BASE}${JDK_FILENAME}" | |
| JAVA_BASE_DIR="/opt/java" | |
| JDK_TARBALL="${JAVA_BASE_DIR}/.download/${JDK_FILENAME}" |