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
| one_hour_ago := time.Now().AddDate(0, 0, -1).Add(time.Hour * 23) |
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
| flip() { | |
| echo; | |
| echo -en "( º_º) ┬─┬ \r"; sleep .2; | |
| echo -en " ( º_º) ┬─┬ \r"; sleep .2; | |
| echo -en " ( ºДº)┬─┬ \r"; sleep .2; | |
| echo -en " (╯'Д')╯︵⊏ \r"; sleep .1; | |
| echo -en " (╯'□')╯︵ ⊏ \r"; sleep .1; | |
| echo " (╯°□°)╯︵ ┻━┻"; sleep .1; | |
| } |
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
| Multiple vulnerabilities have been discovered in the PHP language: | |
| CVE-2015-4598 | |
| thoger at redhat dot com discovered that paths containing a NUL | |
| character were improperly handled, thus allowing an attacker to | |
| manipulate unexpected files on the server. | |
| CVE-2015-4643 |
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
| headers = { | |
| "Accept": "application/vnd.travis-ci.2+json" | |
| "Authorization": "token {}".format(travis_token) | |
| } | |
| hook_data = { | |
| "hook": { | |
| "id": hook_id, | |
| "active": True, | |
| } |
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
| tag: | |
| @if [ $$(git rev-list $$(git describe --abbrev=0 --tags)..HEAD --count) -gt 0 ]; then \ | |
| if [ $$(git log -n 1 --oneline $$(git describe --abbrev=0 --tags)..HEAD CHANGELOG.md | wc -l) -gt 0 ]; then \ | |
| git tag $$(python setup.py --version) && git push --tags || echo 'Version already released, update your version!' | |
| else \ | |
| echo "CHANGELOG not updated since last release!"; \ | |
| exit 1; \ | |
| fi; \ | |
| else \ | |
| echo "No commits since last release!"; \ |
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
| 0.06s$ Installing caching utilities | |
| 0.81sattempting to download cache archive | |
| fetching master/cache--python-2.7.tgz | |
| found cache | |
| 0.26s/home/travis/.casher/bin/casher:65:in `add': undefined local variable or method `url' for #<Casher:0x000000023cd3e8> (NameError) | |
| from /home/travis/.casher/bin/casher:35:in `block in run' | |
| from /home/travis/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/timeout.rb:69:in `timeout' | |
| from /home/travis/.casher/bin/casher:35:in `run' | |
| from /home/travis/.casher/bin/casher:120:in `<main>' | |
| The command "rvm 1.9.3 --fuzzy do $CASHER_DIR/bin/casher add $HOME/.cache/pip" failed and exited with 1 during . |
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
| { | |
| "DescribeSecurityGroupsResponse": { | |
| "-xmlns": "http://ec2.amazonaws.com/doc/2014-09-01/", | |
| "requestId": "59dbff89-35bd-4eac-99ed-be587EXAMPLE", | |
| "securityGroupInfo": { | |
| "item": [ | |
| { | |
| "ownerId": "111122223333", | |
| "groupId": "sg-1a2b3c4d", | |
| "groupName": "WebServers", |
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
| <DescribeSecurityGroupsResponse xmlns="http://ec2.amazonaws.com/doc/2014-09-01/"> | |
| <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> | |
| <securityGroupInfo> | |
| <item> | |
| <ownerId>111122223333</ownerId> | |
| <groupId>sg-1a2b3c4d</groupId> | |
| <groupName>WebServers</groupName> | |
| <groupDescription>Web Servers</groupDescription> | |
| <vpcId/> | |
| <ipPermissions> |
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
| import boto.ec2 | |
| ec2_conn = boto.ec2.connect_to_region('us-east-1') | |
| def check_events(): | |
| statuses = ec2_conn.get_all_instance_status(filters={"event.description": "Scheduled reboot"}) | |
| for status in statuses: | |
| if status.events: | |
| for event in status.events: | |
| print "{}: {}".format(status.id, event.description) |