This file contains 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
drive md5sum -depth 10000 | sort -k 1 > /tmp/filelist.txt | |
awk 'BEGIN { FS=" " } { c[$1]++; l[$1,c[$1]]=$0 } END { for (i in c) { if (c[i] > 1) for (j = 1; j <= c[i]; j++) print l[i,j] } }' /tmp/filelist.txt > /tmp/dupes.txt | |
cat /tmp/dupes.txt | |
echo "number of duplicates: $(wc -l /tmp/dupes.txt)" |
This file contains 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
$ export RANCHER_HOST=foo.bar.suf | |
$ export RANCHER_PORT=8080 | |
$ export RANCHER_PROJECT_ID=1a8 | |
$ export RANCHER_STACK_NAME=killerapp | |
$ ./cattle-deploy.py | |
output: | |
snapshot epoch is1437634695 | |
created temp file /var/folders/sx/ht6gznq979v5r725sqt7_p617p38sz/T/tmpprzZsd |
This file contains 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
define get_subnet_locations() return $subnet_locations do | |
@subnets = rs_cm.subnets.get() | |
$list = [] | |
foreach @subnet in @subnets do | |
$subnet = to_object(@subnet) | |
$subnet_name = $subnet['details'][0]['name'] | |
$subnet_href = select($subnet['details'][0]['links'], {'rel':'self'})[0]['href'] | |
$subnet_network_href = select($subnet['details'][0]['links'], {'rel':'network'})[0]['href'] | |
This file contains 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
[flaccid@lister docker-git]$ git push | |
Counting objects: 6, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (6/6), done. | |
Writing objects: 100% (6/6), 1.09 KiB | 0 bytes/s, done. | |
Total 6 (delta 4), reused 0 (delta 0) | |
remote: error: The following error occurred when parsing commit | |
remote: error: 2c72926277da7c00dee9d42d471c185e13e6f2be: | |
remote: error: missing source file: docker.service | |
remote: error: hook declined to update refs/heads/master |
This file contains 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
var rsApiClient = function (){ | |
var self = this; | |
self.login = function (host, refreshToken){ | |
var fetch = require('node-fetch'); | |
var FormData = require('form-data'); | |
var form = new FormData(); | |
form.append('refresh_token', refreshToken); | |
form.append('grant_type', 'refresh_token'); |
This file contains 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
>>> dev.bLength | |
18 | |
>>> foo = 'bLength' | |
>>> getattr(dev, foo)() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: 'int' object is not callable |
This file contains 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
INFO: Starting agent for 0A90EA3346CA1D7B2B53 | |
INFO: Access Key: 0A90EA3346CA1D7B2B53 | |
INFO: Config URL: http://lister:8080/v1 | |
INFO: Storage URL: http://lister:8080/v1 | |
INFO: API URL: http://lister:8080/v1 | |
INFO: IP: 192.168.0.9 | |
INFO: Port: | |
INFO: Required Image: rancher/agent:v0.8.2 | |
INFO: Current Image: rancher/agent:v0.8.2 | |
INFO: Using image rancher/agent:v0.8.2 |
This file contains 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
my-service: | |
environment: | |
TZ: Australia/Melbourne | |
labels: | |
io.rancher.scheduler.global: 'true' | |
io.rancher.container.pull_image: always | |
io.rancher.container.start_once: 'true' | |
io.rancher.service.hash: 91bdc4dfc7e67786522a3e7aefb2af0f502e14c4 | |
io.rancher.container.network: 'true' | |
io.rancher.scheduler.affinity:host_label_ne: log_host=true |
This file contains 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
771-41fd-98c6-358b2b8608ad][77c4003c-a0af-4469-8093-b273a6297034] Checking candidate: | |
2016-01-20 22:19:08,474 INFO [6c670148-d3ae-413d-aef1-dd3a74e7f7f4:301757] [instance:32614] [instance.start->(InstanceStart)->instance.allocate->(InstanceAllocate)] [] [ecutorService-2] [i.c.p.a.service.AbstractAllocator ] [33d8fa53-c771-41fd-98c6-358b2b8608ad][77c4003c-a0af-4469-8093-b273a6297034] host [23] | |
2016-01-20 22:19:08,474 INFO [6c670148-d3ae-413d-aef1-dd3a74e7f7f4:301757] [instance:32614] [instance.start->(InstanceStart)->instance.allocate->(InstanceAllocate)] [] [ecutorService-2] [i.c.p.a.service.AbstractAllocator ] [33d8fa53-c771-41fd-98c6-358b2b8608ad][77c4003c-a0af-4469-8093-b273a6297034] volume [18] | |
2016-01-20 22:19:08,474 INFO [6c670148-d3ae-413d-aef1-dd3a74e7f7f4:301757] [instance:32614] [instance.start->(InstanceStart)->instance.allocate->(InstanceAllocate)] [] [ecutorService-2] [i.c.p.a.service.AbstractAllocator ] [33d8fa53-c771-41fd-98c6-358b2b8608ad][77c4003c-a0af-4469-8093-b273a6297034] |
This file contains 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
# http://mechanize.rubyforge.org/ | |
require 'mechanize' | |
agent = Mechanize.new | |
login_page = agent.get("https://my.rightscale.com/") | |
logged_in_page = login_page.form_with(:action => '/session') do |form| | |
form.email="bill.gates@microsoft.com" | |
form.password="bluescreen" | |
end.click_button |
NewerOlder