| Title | Description
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
| h1.public strong a { | |
| color: #4078C0; | |
| } | |
| a.subnav-item.js-subnav-item.selected { | |
| background-color: #4078C0; | |
| } | |
| svg.octicon.octicon-file-directory path { | |
| color: #4078C0; |
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
| #!/bin/bash | |
| # | |
| # Compare two PDF files. | |
| # Dependencies: | |
| # - pdfinfo (xpdf) | |
| # - pdfjam (texlive-extra-utils) | |
| # - diffpdf | |
| # | |
| MAX_HEIGHT=15840 #The maximum height of a page (in points), limited by pdfjam. |
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
| base_ec2_private: | |
| provider: my-ec2-us-east-private-ips | |
| image: ami-018c9568 | |
| size: Micro Instance | |
| ssh_username: ubuntu | |
| base_ec2_public: | |
| provider: my-ec2-us-east-public-ips | |
| image: ami-018c9568 | |
| size: Micro Instance |
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
| ### top.sls (more tweaks) | |
| dev: | |
| '*': | |
| - nodes.{{ grains['id' }} | |
| base: | |
| '*': | |
| - nodes.{{ grains['id' }} |
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
| {% set a = 'world' %} | |
| {% set b = 'hello-{test}' %} | |
| test: | |
| file.touch: | |
| - name: /tmp/{{ b.format(test=a) }} |
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
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
Need a rapid way of pulling your logs back using salt? With one config option in /etc/salt/master and two quick commands, you can do this in parallel across your boxes.
First, use archive.tar to tarball up your logs
salt '*' archive.tar cvzf /tmp/logs.tgz /var/log/
Next up, cp.push to pull the logs back from the minions up to the master
In order to use cp.push, you'll need to set file_recv to True within /etc/salt/master.
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 logging | |
| try: | |
| import nacl.state | |
| from nacl.auto import * | |
| from nacl.run import run | |
| HAS_NACL = True | |
| except ImportError: | |
| HAS_NACL = False |
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
| repo_cr_ots: | |
| git.latest: | |
| - name: ssh://git_user@server/usr/local/git/ots.git | |
| - target: /var/www/ots | |
| - rev: {{ revision }} |
NewerOlder