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 DEBUG = false; | |
// XPath Selector | |
var $x = function (path) { | |
var r = document.evaluate(path, document, null, 9, null).singleNodeValue | |
return !!r ? [r] : []; | |
}; | |
var values = []; |
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
60c59,69 | |
< zmq.device(zmq.QUEUE, frontend, backend) | |
--- | |
> while True: | |
> sockets = dict(poll.poll()) | |
> if frontend in sockets: | |
> if sockets[frontend] == zmq.POLLIN: | |
> msg = frontend.recv() | |
> print 'Server received %s' % (msg) | |
> backend.send(msg) |
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
/** | |
* Open Amazon Cloud Drive folder and run this script to download all the files in the folder. | |
*/ | |
var items = document.getElementsByClassName('item'); | |
var i; | |
var url | |
var urls = [] | |
for(i = 0; i < items.length; ++i) { |
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
# How to use it | |
# copy the code into .bashrc our download the .bash_node_v file into your home | |
# and add to your .bashrc or .bash_profile: | |
# source .bash_node_v | |
# | |
# Configure it creating a .nrc (in your home or in the same folder you put this file) and add | |
# the folder where you want to install the node versions, for instance: | |
# NODE_PREFIX="/Software/node/" | |
# |
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
--- | |
- name: "Always tag shoudld not run if condition fails" | |
hosts: localhost | |
gather_facts: no | |
tasks: | |
- debug: msg="This should run" | |
tags: | |
- always |
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
Fri Nov 18 16:27:25 UTC 2016 |
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
package main | |
import ( | |
"log" | |
"strings" | |
) | |
type Session struct { | |
Email string | |
Password string |
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
[Unit] | |
Description=CloudWatch Logs agent | |
After=network.target | |
[Service] | |
Restart=always | |
TimeoutSec=infinity | |
ExecStart=/var/awslogs/bin/awslogs-agent-launcher.sh | |
[Install] |
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
#!/usr/bin/expect | |
set timeout 20 | |
set host [lindex $argv 0] | |
set user [lindex $argv 1] | |
set pass [lindex $argv 2] | |
set ipv6 [lindex $argv 3] | |
set chainName "Advanced" | |
spawn telnet $host |
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
import pip | |
def lambda_handler(event, context): | |
installed_packages = pip.get_installed_distributions() | |
installed_packages_list = sorted(["%s==%s" % (pkg.key, pkg.version) for pkg in installed_packages]) | |
print("\n".join(installed_packages_list)) |
OlderNewer