This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import mimetypes | |
from azure.storage import BlobService | |
BLOB_ACCOUNT = "foo" | |
BLOB_KEY = "bar" | |
DEST_CONTAINER = "test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
wp2tumblr.py | |
Python script for migrating your Wordpress blog to Tumblr | |
Karteek Edamadaka | |
Modified by Thomas Conte for his own needs | |
""" | |
import os | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using Microsoft.WindowsAzure; | |
using System.IO; | |
using System.Xml.Linq; | |
using NDesk.Options; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
import math | |
import Image | |
# C64 color palette | |
COLOR_BLACK = (0, 0, 0) | |
COLOR_WHITE = (255, 255, 255) | |
COLOR_RED = (104, 55, 43) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.windowsazurestatus.com/windowsazure/support/status/servicedashboardcontent.aspx | grep RSSFeedCode | perl -ne '/href=\"(.+)\" target=/; print "https://www.windowsazurestatus.com/windowsazure/support/status/", $1, "\n";' | sort -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib2 | |
import json | |
import time | |
import calendar | |
import subprocess | |
url = 'http://api.thingm.com/blink1/events/01234567DEADC0DE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parameters | |
#$publishSettingFilePath = "C:\Users\tconte\Downloads\Hermes-Recette-11-21-2013-credentials.publishsettings" | |
$publishSettingFilePath = "C:\Users\tconte\Downloads\Windows Azure BizSpark 1111-JeromeSAS-4-19-2013-credentials.publishsettings" | |
#$subscriptionName = "Hermes-Recette" | |
$subscriptionName = "Windows Azure BizSpark 1111" | |
$outfiledisks="C:\dev\result_disks.txt" | |
$outfilefiles="C:\dev\results_files.txt" | |
$outfilenetworks="C:\dev\results_network.txt" | |
$outfileendpoints="C:\dev\results_endpoints.txt" | |
$outfilevms="C:\dev\results_vms.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wc=New-Object System.Net.WebClient | |
foreach ($i in 0..23) { | |
$n = "{0:D2}" -f $i | |
echo $n | |
$url = "http://dumps.wikimedia.org/other/pagecounts-raw/2013/2013-04/pagecounts-20130401-" + $n + "0000.gz" | |
$wc.DownloadFile($url, $url.SubString($url.LastIndexOf("/")+1)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure('2') do |config| | |
config.vm.box = 'trusty64' | |
config.vm.provider :azure do |azure, override| | |
override.vm.box = 'azuredummybox' | |
override.ssh.username = 'tom' # assigned below | |
override.ssh.password = 'Pass123!' # assigned below | |
azure.mgmt_certificate = 'C:\Users\tconte\Dropbox\Dev\management_cert.pfx' | |
azure.mgmt_endpoint = 'https://management.core.windows.net' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** This sample Arduino sketch uploads telemetry data to Azure Mobile Services | |
** See the full article here: http://hypernephelist.com/2014/07/11/arduino-uno-azure-mobile-services.html | |
** | |
** Thomas Conté @tomconte | |
*/ | |
#include <SPI.h> | |
#include <Ethernet.h> |
OlderNewer