start new session with specified name:
tmux new -s mysession
attach:
tmux a # (or at, or attach)
attach to named:
! gerneral xterm settings ----- | |
XTerm*utf8: 1 | |
XTerm*pointerColor: white | |
XTerm*pointerColorBackground: black | |
XTerm*cursorColor: yellow | |
XTerm*cursorBlink: true | |
XTerm*selectToClipboard: true | |
XTerm*SaveLines: 9000 | |
XTerm*ScrollBar: false | |
XTerm*visualbell: true |
Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:
This process will work with either a qcow2
or raw
disk image. For
Get the Release.key | |
https://getfedora.org/keys/obsolete.html | |
rpm --import /tmp/Release.key | |
or | |
rpm --import https://getfedora.org/static/FB4B18E6.txt | |
Enable the Fedora19 repo (NOTE: obsolete/archived) | |
vi /etc/yum.repos.d/f19.repo |
#!/bin/bash | |
el_version="6" | |
kernel_major="2.6.32" | |
kernel_minor="279.5.1" | |
vz_major="042stab061" | |
vz_minor=".2" | |
echo "Fetching OpenVZ Repo..." | |
cd /etc/yum.repos.d |
Simple way to setup an arm chroot for building packages for your arm devices. This is an alternative to cross-compiling where you are limited to only linking against the libs in your toolchain.
You can store the chroot wherever you like. I choose to store it in a disk-image which I mount to my filesystem.
#!/bin/bash | |
# You must accept the Oracle Binary Code License | |
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html | |
# usage: get_jdk.sh <ext> <jdk_version> | |
# ext: rpm | |
# jdk_version: default 8 | |
ext=rpm | |
jdk_version=8 |
#!/bin/zsh -e | |
cd ~/tmpfs | |
mkdir -p .lxc-root .lxc-data/etc .lxc-data/home/lilydjwg/{.vim,.cache} .lxc-work | |
sudo GDK_DPI_SCALE=$GDK_DPI_SCALE zsh -e - <<'EOF' | |
modprobe overlay | |
mountpoint .lxc-root || mount -t overlay -o lowerdir=/,upperdir=$PWD/.lxc-data,workdir=$PWD/.lxc-root overlayfs $PWD/.lxc-root | |
# .lxc-root/etc/resolv.conf is protected |
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.