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 | |
| from sys import argv | |
| import html2text | |
| file_name = argv[1] | |
| fh = open(file_name) | |
| contents = fh.read() | |
| fh.close() |
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
| #compdef knife_ssh | |
| #autoload | |
| _knife_ssh() { | |
| if hash knife 2>/dev/null; then | |
| if [[ ! -f ~/.knife_comp~ ]]; then | |
| echo "\nGenerating ~/.knife_comp~..." >/dev/stderr | |
| knife node list > ~/.knife_comp~ | |
| fi | |
| compadd `cat ~/.knife_comp~` |
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
| # collectd -T | |
| plugin_load: Could not find plugin "nginx" in /usr/lib/collectd | |
| Found a configuration for the `nginx' plugin, but the plugin isn't loaded or didn't register a configuration callback. | |
| Exiting normally. | |
| collectd: Stopping 5 read threads. | |
| collectd: Stopping 5 write threads. |
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
| " Commands for vimdiff-enhanced | |
| nno do :<C-U>exe 'diffget' v:count ? v:count : ''<CR> | |
| nno dp :<C-U>exe 'diffput' v:count ? v:count : ''<CR> |
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
| root@chef:~# cat /etc/resolv.conf | |
| nameserver 4.2.2.2 | |
| nameserver 8.8.8.8 |
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
| trobrock@app1:/var/myapp/current$ curl -v https://playfairapp.com | |
| * About to connect() to playfairapp.com port 443 (#0) | |
| * Trying 162.243.21.176... connected | |
| * successfully set certificate verify locations: | |
| * CAfile: none | |
| CApath: /etc/ssl/certs | |
| * SSLv3, TLS handshake, Client hello (1): | |
| * SSL connection timeout | |
| * Closing connection #0 | |
| curl: (28) SSL connection timeout |
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
| int LED = D7; | |
| void setup() { | |
| pinMode(LED, OUTPUT); | |
| } | |
| void loop() { | |
| digitalWrite(LED, HIGH); | |
| delay(250); | |
| digitalWrite(LED, LOW); |
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
| class Itlum.CapsulesEditController extends Ember.ObjectController | |
| actions: | |
| update: -> | |
| @model.save() |
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
| model: (params) -> | |
| @store.find('capsule').then (results) -> | |
| m = results.findBy('id', params.capsule_id) | |
| console.log m | |
| m |
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
| Error while loading route: TypeError: Cannot set property 'store' of undefined | |
| at Ember.Object.extend.modelFor (http://0.0.0.0:8000/js/app.js:64208:23) | |
| at Ember.Object.extend.recordForId (http://0.0.0.0:8000/js/app.js:63661:21) | |
| at deserializeRecordId (http://0.0.0.0:8000/js/app.js:64592:27) | |
| at http://0.0.0.0:8000/js/app.js:64570:11 | |
| at http://0.0.0.0:8000/js/app.js:62913:20 | |
| at http://0.0.0.0:8000/js/app.js:13556:16 | |
| at Object.OrderedSet.forEach (http://0.0.0.0:8000/js/app.js:13399:10) | |
| at Object.Map.forEach (http://0.0.0.0:8000/js/app.js:13554:10) | |
| at Function.Model.reopenClass.eachRelationship (http://0.0.0.0:8000/js/app.js:62912:42) |