Skip to content

Instantly share code, notes, and snippets.

@zivester
zivester / gist:a61eb14fb25bcf067c69
Last active October 22, 2015 06:32
download-ubuntu-torrents.pl
#!/usr/bin/env perl
#
# Download all the torrents for a particular ubuntu release.
#
# Requires: wget
#
# Usage:
# perl download-ubuntu-torrents.pl /tmp/
#
@zivester
zivester / gist:d00ca1b3a27522d79e71f06c9ab8a3db
Created July 18, 2016 00:53
eBay 256gb m.2 Liteon sold to leonid3131
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: LITEONIT LGT-256M6G
Serial Number: SD0E97903L1TH4510BJF
Firmware Version: 2G87901
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
@zivester
zivester / gist:685b3151ca22e14c72f650aad56adb67
Created July 18, 2016 00:53
eBay 256gb m.2 Liteon sold to leonid3131
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: LITEONIT LGT-256M6G
Serial Number: SD0E97903L1TH4510BJF
Firmware Version: 2G87901
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
@zivester
zivester / gist:bf37a8e21d9b257046b65651dec82be1
Created July 18, 2016 00:53
eBay 256gb m.2 Liteon sold to leonid3131
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: LITEONIT LGT-256M6G
Serial Number: SD0E97903L1TH4510BJF
Firmware Version: 2G87901
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
@zivester
zivester / gist:fe01ad5160e8912b6b65009b2a043982
Last active February 1, 2019 18:31
sed convert hex color codes to rgb
#!/bin/bash
#
# no-hex-clean.sh
#
# Usage: Pipe hex codes to this script
#
# e.g.
#
# $ cat *.svg | perl -ne '/(#[0-9A-Fa-f]{6})/g && print "$1\n"' | sort | uniq | ./no-hex-clean.sh
#