Skip to content

Instantly share code, notes, and snippets.

View sq3's full-sized avatar
🚀
Raketen Style

Marc Schnitzius sq3

🚀
Raketen Style
View GitHub Profile
#!/usr/bin/env python
import suds
def get_service_information(service_tags):
url = "http://xserv.dell.com/services/assetservice.asmx?WSDL"
client = suds.client.Client(url)
service_information = []
# confirm you can access the internet
if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then
echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue."
read
fi
# make 2 partitions on the disk.
parted -s /dev/sda mktable msdos
parted -s /dev/sda mkpart primary 0% 100%