With Audio and Screen Sharing Enabled
Add the i386 architecture to the list of dpkg architectures :
sudo dpkg --add-architecture i386
| # LVDB - LLOOGG Memory DB | |
| # Copyriht (C) 2009 Salvatore Sanfilippo <[email protected]> | |
| # All Rights Reserved | |
| # TODO | |
| # - cron with cleanup of timedout clients, automatic dump | |
| # - the dump should use array startsearch to write it line by line | |
| # and may just use gets to read element by element and load the whole state. | |
| # - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands. | |
| # - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump! |
| import boto3 | |
| import botocore | |
| from random import randint | |
| from time import sleep | |
| def client_throttle(action, **kwargs): | |
| while True: | |
| try: | |
| return action(**kwargs) | |
| except botocore.exceptions.ClientError as e: |
| ## get all the pageviews on the boundary-vpc host in the last hour, sort by timestamp | |
| curl -X GET "http://elastic-04:9200/logstash-2015.03.31/_search/?pretty" -d' | |
| { | |
| "query": { | |
| "filtered": { | |
| "query": { | |
| "match": {"host" : "boundary-vpc"} | |
| }, | |
| "filter": { |
| curl -s https://ipchicken.com | egrep -o '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}' |
| # encoding: UTF-8 | |
| require 'optparse' | |
| require 'net/http' | |
| require 'json' | |
| def parse_options(argv) | |
| opts = {} | |
| @parser = OptionParser.new do |o| |
| # Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
| # Will include all hosts the playbook is run on. | |
| # Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
| - name: "Build hosts file" | |
| lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
| when: hostvars[item].ansible_default_ipv4.address is defined | |
| with_items: groups['all'] |
| //Node.js script to act as a listener for webhooks. | |
| // | |
| // Copyright (c) 2014, PagerDuty, Inc. <[email protected]> | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // * Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // * Redistributions in binary form must reproduce the above copyright |
| # A guide to prevent pain and suffering while upgrading to OS X Mavericks | |
| # This will vary greatly depending on system set up, so read the instructions carefully | |
| # Back up Virtulenvs | |
| #################### | |
| # Very important! | |
| # For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv | |
| # in order to prevent loss of dependencies during the upgrade. |