Skip to content

Instantly share code, notes, and snippets.

View AdrianKoshka's full-sized avatar
🦉
Focusing

Adrian Lucrèce Céleste AdrianKoshka

🦉
Focusing
View GitHub Profile
@AdrianKoshka
AdrianKoshka / wou.sh
Created February 1, 2016 02:35
A little WoL script for doing updates.
#!/usr/bin/env bash
BCAST_IP="your broadcast IP here"
MAC_ADDR="your mac address here"
wakeonlan -i $BCAST_IP $MAC_ADDR #send magic packet to computer
echo "Waiting for boot"
sleep 2m # this is just filler, waits two minutes for computer to boot.
ssh [email protected] -t "sudo apt-get update; sudo apt-get upgrade; sudo poweroff"
#runs commands, then shuts computer down
@AdrianKoshka
AdrianKoshka / specs.md
Last active February 3, 2016 01:49
Some specs of the pogoplug series 4

lspci -vvnn

$ lspci -vvnn

00:00.0 Host bridge [0600]: Marvell Technology Group Ltd. 88F6281 [Kirkwood] ARM SoC [11ab:6281] (rev 03)
	Subsystem: Marvell Technology Group Ltd. Device [11ab:11ab]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
PUSERIAL 000069 # CPU serial number
CPUMODEL 2086 # CPU model number
MAINSIZE 1024 # Main storage size in megabytes
XPNDSIZE 0 # Expanded storage size in megabytes
CNSLPORT 3270 # TCP port number to which consoles connect
NUMCPU 4 # Number of CPUs
LOADPARM 0120.... # IPL parameter
OSTAILOR LINUX # OS tailoring
PANRATE SLOW # Panel refresh rate (SLOW, FAST)
ARCHMODE ESAME # Architecture mode ESA/390 or ESAME
@AdrianKoshka
AdrianKoshka / lscpu.txt
Last active March 23, 2016 00:20
Dell Latitude CPi A366XT specs
Architecture: i686
CPU op-mode(s): 32-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
@AdrianKoshka
AdrianKoshka / everytape.sh
Last active April 23, 2016 23:39
Tape Drive Backup Script
#!/usr/bin/env bash
# A simple shell script to backup dirs to tape drive.
# -------------------------------------------------------------------------
# Copyright (c) 2005 nixCraft project
# Copyright (c) 2016 Theodore Seán Tubbs
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
@AdrianKoshka
AdrianKoshka / gittape.sh
Created April 23, 2016 23:34
gittape, for backing up my git stuff to a DLT tape.
#!/usr/bin/env bash
# A simple shell script to backup dirs to tape drive.
# -------------------------------------------------------------------------
# Copyright (c) 2005 nixCraft project
# Copyright (c) 2016 Theodore Seán Tubbs
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
@AdrianKoshka
AdrianKoshka / dltvsdlt.md
Last active April 24, 2016 00:10
DLT vs sDLT

Capacity

  • DLT:
    • 40 GB uncompressed
    • 80 GB compressed (assuming perfect 2:1 ratio)
  • sDLT
    • 110 GB uncompressed
    • 320 GB compressed (assuming perfect 2:1 ratio)

Speed

@AdrianKoshka
AdrianKoshka / test.xml
Created July 3, 2016 19:37
working KVM config for OpenIndiana
<domain type='kvm'>
<name>test</name>
<uuid>92e02cc2-00f2-44ea-ad6b-9bbc0aecf7ce</uuid>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
@AdrianKoshka
AdrianKoshka / manifest.md
Created July 11, 2016 18:49
clearlinux manifests
adrian@clr ~ $ sudo swupd search *
Attempting to download version string to memory
Searching for '*'

Signature check succeeded.
Downloading Clear Linux manifests
   22.73 MB total...

 'R-basic' manifest...
@AdrianKoshka
AdrianKoshka / make_ipxe_uefi_usb.md
Last active December 9, 2025 02:37
Making a UEFI bootable iPXE USB drive

Making a UEFI bootable iPXE USB drive

Build the UEFI executable for iPXE

# First we'll clone iPXE
$ git clone git://git.ipxe.org/ipxe.git
# Go into the src directory of the cloned git repo
$ cd ipxe/src
# Compile the UEFI iPXE executable