Skip to content

Instantly share code, notes, and snippets.

ExampleS3BucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
Bucket: !Ref ExampleS3Bucket
PolicyDocument:
Id: AllowExternalAccountAccess
Version: '2012-10-17'
Statement:
- Action:
- s3:GetObject
@daharon
daharon / requirements.txt
Created April 19, 2017 07:20
Calling Akamai's HTTPDownloadReportService
appdirs==1.4.3
cached-property==1.3.0
defusedxml==0.5.0
isodate==0.5.4
lxml==3.7.3
packaging==16.8
pyparsing==2.2.0
pytz==2017.2
requests==2.13.0
requests-toolbelt==0.7.1
abstract class Var
class Default : Task() {
val vars = object : Var {
var directoryMode = "0750"
}
override val definitions = definition {
directory("Create new directory") {
mode = vars.directoryMode // <- Unresolved reference directoryMode
OLD_PUB=
STACK=Dev
INSTANCE_SSH_PORT=22
INSTANCE_REGIONS=(
us-east-1
us-west-1
us-west-2
)
for INSTANCE_REGION in ${INSTANCE_REGIONS[@]}; do
echo "===========================================> Handling region: $INSTANCE_REGION"
Traceback (most recent call last):
File "/etc/sensu/plugins/check_graphite_data", line 186, in <module>
main(sys.argv[1:])
File "/etc/sensu/plugins/check_graphite_data", line 165, in main
graphite_data = get_value(url, seconds)
File "/etc/sensu/plugins/check_graphite_data", line 91, in get_value
data = pull_graphite_data(url)
File "/etc/sensu/plugins/check_graphite_data", line 38, in pull_graphite_data
data = urllib.urlopen(url).read()
File "/usr/lib/python2.7/urllib.py", line 86, in urlopen
Buildfile: /opt/teamcity-agent/work/66c8507cf0d7b32c/build/build-client.xml
build-define-build:
clean-flexunit-display:
[echo] Preventive cleanup of display server 9090
[exec]
[exec] Can't find file /home/teamcity/.vnc/tcagent-13-ed-automation:9090.pid
[exec] You'll have to kill the Xvnc4 process manually
[exec]
vagrant@tcagent-ubuntu-precise:~$ sudo npm install -g inherits@'^2.0.1'
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/inherits
npm ERR! Error: No compatible version found: inherits@'^2.0.1'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","2.0.0","2.0.1"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:638:10
npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
#
# Generated by Chef for analyticsdb-5-ed-manual
#
# Local modifications will be overwritten.
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
@daharon
daharon / so_12626064.py
Created October 7, 2012 21:13
Attempting to induce memory leaks, a la http://stackoverflow.com/questions/12626064
#!/usr/bin/env python
import time
import resource
import logging
from tornado import web, ioloop, gen, options
from tornado.httpclient import AsyncHTTPClient
from tornado.escape import url_escape
@daharon
daharon / during_startup.txt
Created February 21, 2012 22:38
MySQL-Cluster SQL node will not come back up in upgrade from 7.1.18 to 7.2.4
root 7735 5419 0 15:58 pts/0 00:00:00 sudo service mysql start
root 7736 7735 0 15:58 pts/0 00:00:00 /bin/sh /sbin/service mysql start
root 7741 7736 0 15:58 pts/0 00:00:00 /bin/sh /etc/init.d/mysql start
root 7747 7741 0 15:58 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/sql2.office.sazze.com.pid
mysql 8031 7747 12 15:58 pts/0 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/sql2.office.sazze.com.err --pid-file=/var/lib/mysql/sql2.office.sazze.com.pid --port=3306