$ uname -r
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
| <?xml version='1.0' encoding='utf-8'?> | |
| <opml version="1.0"> | |
| <head /> | |
| <body> | |
| <outline text="https://xeiaso.net" type="rss" xmlUrl="https://xeiaso.net/blog.rss" /> | |
| <outline text="https://fasterthanli.me/" type="rss" | |
| xmlUrl="https://fasterthanli.me/index.xml" /> | |
| <outline text="https://matt-rickard.com" type="rss" xmlUrl="/rss/" /> | |
| <outline text="https://jmmv.dev/" type="rss" xmlUrl="/feed.xml" /> | |
| <outline text="https://paulstamatiou.com" type="rss" |
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
| # content provided as part of thread here: https://www.reddit.com/r/aws/comments/cffmxr/how_do_you_strip_the_attachments_from_aws_sessns/ | |
| from email.parser import BytesParser | |
| from email import policy | |
| import os | |
| # event will be JSON from SES incoming email rule - NOT an S3 PUT event | |
| def lambda_handler(event, context): | |
| try: | |
| ses_mail = event['Records'][0]['ses']['mail'] |
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
| curl --include \ | |
| --no-buffer \ | |
| --header "Connection: Upgrade" \ | |
| --header "Upgrade: websocket" \ | |
| --header "Host: example.com:80" \ | |
| --header "Origin: http://example.com:80" \ | |
| --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
| --header "Sec-WebSocket-Version: 13" \ | |
| http://example.com:80/ |
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
| rm -rf /var/lib/cloud/instance && rm -rf /var/lib/cloud/instances/* && rm -rf /var/lib/cloud/sem/* | |
| cloud-init init && cloud-init modules --mode config && cloud-init modules --mode final |
This assumes you are now connected to the server via SSH.
sudo -sEnter root mode for admin accessgroupadd devgroupCreate new group to be later granted access to /var/www/html
useradd -G root,devgroup masterdevCreate new root user. Also add to the devgrouppasswd masterdevChange password for the new root user- At this point, you'll need to input your new root user's new password
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
| language: ruby | |
| rvm: | |
| - 1.9.3 | |
| before_install: | |
| - openssl aes-256-cbc -K $encrypted_755628117be5_key -iv $encrypted_755628117be5_iv | |
| -in travis_ci_ec2.pem.enc -out ~/.ssh/travis_ci_ec2.pem -d | |
| - chmod 600 ~/.ssh/travis_ci_ec2.pem | |
| install: | |
| - bundle install --without vagrant | |
| - bundle exec berks install |
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 Chef | |
| class Node | |
| class ImmutableMash | |
| def to_hash | |
| h = {} | |
| self.each do |k,v| | |
| if v.respond_to?('to_hash') | |
| h[k] = v.to_hash | |
| elsif v.respond_to?('each') | |
| h[k] = [] |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant::Config.run do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "precise64" |
NewerOlder