Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wideglide on github.
  • I am wideglide (https://keybase.io/wideglide) on keybase.
  • I have a public key ASCAUQOs5tVMOC2GASAWkemCESRQ-lT55tkyxprpI3OBJAo

To claim this, I am signing this object:

run command against multiple hosts, sudo with password required

#!/bin/bash

echo -n "current password [ENTER]:"
read PASS

for i in {1..64}; do
 ssh -t -oStrictHostKeyChecking=no 10.0.0.$i <
@wideglide
wideglide / rack_manage.md
Last active March 14, 2019 19:46
server management

ipmitool

Install / use ipmitool with CoreOS

core@localhost ~ $ sudo modprobe ipmi_si ipmi_devintf
core@localhost ~ $ toolbox --bind=/dev/ipmi0
[root@localhost ~]# dnf install ipmitool
[root@localhost ~]# ipmitool chassis power status
@wideglide
wideglide / install_pxe.md
Last active July 16, 2017 23:25
CentOS 6 pxeboot

Install dependencies

yum install epel-release wget curl
yum -y intall tftp-server dhcp lighttpd

Configure web server

service lighttpd start
chkconfig lighttpd on
@wideglide
wideglide / useful-commands.md
Last active December 27, 2018 01:41
oneliner tips

transferring files across the network, with progress

  • PUSH
tar cf - ./* | pv -pterb -s 1024M | ssh -o Compression=no -C user@host tar xf - -C /home/user/
  • PULL