Skip to content

Instantly share code, notes, and snippets.

View icanhazdevops's full-sized avatar

TRON DevOps icanhazdevops

  • Rackspace
  • The Cloud!
View GitHub Profile
root@ansible-tower:~# ./rax.py --host ansible-tower.rackerhorn.com
{
"ansible_ssh_host": "162.242.254.253",
"rax_accessipv4": "162.242.254.253",
"rax_accessipv6": "2001:4802:7802:103:be76:4eff:fe20:7431",
"rax_addresses": {
"private": [
{
"addr": "10.208.200.60",
"version": 4
[{"sso":"jason.chateau","name":"Jason Chateau","status":"available","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"rebe6644","name":"Becky Geinzer","status":"available","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"davi6646","name":"Davide Coon","status":"away","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"bruce.brown","name":"Bruce Brown","status":"away","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"nich6637","name":"Nick Sunday","status":"available","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"aaro5916","name":"Aaron Davis","status":"available","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"just6196","name":"Justin Craig","status":"away","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"dani6471","name":"Daniel Sullivan","status":"away","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"jose5732","name":"Joe Engel","status":"available","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"terr4330","name":"Brant Bumpers","status":"away","logtime":"2013-10-23T19:32:49.000Z"},{"sso":"victor.jasso","name":"Victor Jasso","status
@icanhazdevops
icanhazdevops / gist:7118922
Created October 23, 2013 13:37
cdn access log
72.3.128.84 - - [22/Aug/2013:17:18:23 +0000] "GET /f22df706e4469359e3bb-fad1f7da98713b93a881e1958da78503.r75.cf1.rackcdn.com/notary.png HTTP/1.1" 200 294887 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0" "-"
50.56.230.140 - - [22/Aug/2013:17:18:34 +0000] "GET /f22df706e4469359e3bb-fad1f7da98713b93a881e1958da78503.r75.cf1.rackcdn.com/ HTTP/1.1" 200 614 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0" "-"
50.56.230.140 - - [22/Aug/2013:17:18:35 +0000] "GET /f22df706e4469359e3bb-fad1f7da98713b93a881e1958da78503.r75.cf1.rackcdn.com/favicon.ico HTTP/1.1" 404 367 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0" "-"
50.56.230.140 - - [22/Aug/2013:17:18:36 +0000] "GET /f22df706e4469359e3bb-fad1f7da98713b93a881e1958da78503.r75.cf1.rackcdn.com/favicon.ico HTTP/1.1" 404 367 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0" "-"
50.56.230.140 - - [22/Aug/2013:17:18:36 +0000] "GET /f22df706e4469359e3bb-fad1f
#!/usr/bin/env python
import os
import sys
import time
import pyrax
from os.path import expanduser
home = expanduser("~")
pyrax.set_setting("identity_type", "rackspace")
#!/usr/bin/env python
import os
import sys
import pyrax
pyrax.set_setting('identity_type', 'rackspace')
pyrax.set_credentials('username', 'apikey')
dns = pyrax.cloud_dns
#!/usr/bin/env python
# Copyright 2013 Rackspace
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#!/usr/bin/env python
# Copyright 2012 Rackspace
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@icanhazdevops
icanhazdevops / gist:6029442
Last active December 19, 2015 22:39
temp url
// connect to Cloud Files
$objstore = $connection->ObjectStore('cloudFiles', 'DFW');
// Set a secret
define('TEMP_URL_SECRET', 'This is my secret');
$objstore->SetTempUrlSecret(TEMP_URL_SECRET);
// Put the container and file names
$mycontainer = $objstore->Container('CdnContainer');
$object = $mycontainer->DataObject('FOOBAR');