Skip to content

Instantly share code, notes, and snippets.

@countbuggula
countbuggula / hardware
Last active June 1, 2016 22:53
hardware info
#!/bin/bash
# Syntax: while read server; do ./hardware <user> $server && echo "" ; done < serverlist.txt > hardware.txt
ssh_user=$1
ssh_host=$2
command_string="hostname && cat /proc/cpuinfo | grep 'model name' | sort -u && echo -e 'Cores:' && cat /proc/cpuinfo | grep 'core id' | sort -u | wc -l && cat /proc/meminfo | grep MemTotal && df -hl -x tmpfs | gawk -v hostname=$line '$1 ~ /^[0-9]+$/{sum += $1;} END{print hostname \" Total: \" (sum/1024/1024) \"G\";}'""
ssh -n -o BatchMode=yes -o StrictHostKeyChecking=no $ssh_user@$ssh_host $command_string 2>&1| grep -v "tput" | sed 's/^/ /g'
#!/bin/bash
set -o pipefail
set -s
#####
# This script will take a fresh Mint install and make it suitable for getting stuff done.
# It may not work against another Ubuntu Installation type.
# Run it with: bash <(wget -qO- https://gist.githubusercontent.com/countbuggula/e1007e3bf3ddacc385fd4b130a8cfbc8/raw/2d4f4ec7586704d6ca4a262200920e2dbd422549/setup-mint.bash)
#####
@countbuggula
countbuggula / gist:00a905365023689ddb35da1e95d5e6aa
Last active September 27, 2019 22:33
Popular arcade (MAME) games
Breakout (1976)
Space Invaders (1978)
Super Breakout (1978)
Galaxian (1979)
Lunar Lander (1979)
Asteroids (1979)
Battlezone (1979)
Centipede (1980)
Missile Command (1980)
Pac-Man (1980)
Ghostbusters (1984)
Could not copy "Miracle on 34th Street (1947)"
Could not copy "Saving Mr. Banks (2013)"
Could not copy "Hunger Games, The (2012)"
Could not copy "Indiana Jones and the Last Crusade (1989)"
Could not copy "Shaolin Soccer (2001) [少林足球]"
Could not copy "Star Trek First Contact (1996)"
Could not copy "October Sky (1999)"
Could not copy "Hocus Pocus (1993)"
Could not copy "Big Trouble in Little China (1986)"
@countbuggula
countbuggula / tiresome.txt
Created November 17, 2018 00:28
tiresome
David,
CentOS 6 latest version of util-ling is 2.17. I believe GPT support was add in 2.30. This is a real thing you have to deal with not a theoretical problem. One of the OSs you quoted is in fact old enough to be effected.
We could provide warnings or we could use universal tools instead that would work all the time. I'm not sure why this suggestion keeps getting shot down. Why is the more problematic and less universal tool + warnings a better solution?
The default installers in all both RHEL/CentOS 7 as well as all the version of Ubuntu Linux you mentioned now support dm-raid as well as dm-crypt transparently from the installer. The likelihood of one-offs is growing. Not to mention we get what we get from customers. (I just remembered there is a LUKS volume in RIA that I know of as well - and not one I built.)
I also didn't notice any Linux version restrictions on your wiki page. It just says "Linux Drive Space Management." We might actually have more VMs running Linux OSs older than the ones you lis
@countbuggula
countbuggula / arm.txt
Created December 10, 2018 21:45
mirrors
#!/bin/bash
# URL of the Launchpad mirror list
MIRROR_LIST=https://launchpad.net/ubuntu/+archivemirrors
# Set to the architecture you're looking for (e.g., amd64, i386, arm64, armhf, armel, powerpc, ...).
# See https://wiki.ubuntu.com/UbuntuDevelopment/PackageArchive#Architectures
ARCH=$1
# Set to the Ubuntu distribution you need (e.g., precise, saucy, trusty, ...)
# See https://wiki.ubuntu.com/DevelopmentCodeNames