Skip to content

Instantly share code, notes, and snippets.

View strnh's full-sized avatar
🚲
Long Ride

strnh strnh

🚲
Long Ride
  • Crew
  • Yokohama,Japan
  • 09:04 (UTC +09:00)
  • X @strnh
View GitHub Profile

Keybase proof

I hereby claim:

  • I am strnh on github.
  • I am strnh (https://keybase.io/strnh) on keybase.
  • I have a public key ASDKQH8wFOylAHiznLyxUfO2OGLc0p9rf68cBU30bQjKxgo

To claim this, I am signing this object:

@strnh
strnh / Dell-warranty check
Created January 28, 2013 08:41
Dell warranty check for FreeBSD
#!/bin/sh
if [ $1 = ""] ; then
echo $1
SERIAL=`kenv | grep system | grep serial | awk 'BEGIN{FS="="}{ print substr(substr( $2,2),1,7)}'`
else
SERIAL=$1
fi
echo "Service Tag :" $SERIAL
/usr/local/bin/curl -G "http://www.dell.com/support/troubleshooting/jp/ja/jpbsd1/Servicetag/"$SERIAL 2>/dev/null |\