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
| NameVirtualHost *:80 | |
| <VirtualHost *:80> | |
| ServerName foo.nostacktrace.com | |
| ProxyRequests off | |
| ProxyPass / http://localhost:8081/ | |
| ProxyPassReverse / http://localhost:8081/ | |
| </VirtualHost> |
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
| NameVirtualHost *:443 | |
| SSLCertificateFile /path/to/server.crt | |
| SSLCertificateKeyFile /path/to/server.key | |
| <VirtualHost *:443> | |
| ServerName foo.nostacktrace.com | |
| SSLEngine on | |
| ProxyRequests off |
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
| NameVirtualHost *:80 | |
| <VirtualHost *:80> | |
| ServerName foo.nostacktrace.com | |
| Redirect / https://foo.nostacktrace.com/ | |
| </VirtualHost> | |
| <VirtualHost *:80> | |
| ServerName bar.nostacktrace.com | |
| Redirect / https://bar.nostacktrace.com/ |
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
| from django.db import models | |
| from django_extensions.db.fields import UUIDField | |
| class AutoUUIDField(UUIDField): | |
| def contribute_to_class(self, cls, name): | |
| assert not cls._meta.has_auto_field, "A model can't have more than one AutoField." | |
| super(UUIDField, self).contribute_to_class(cls, name) | |
| cls._meta.has_auto_field = True | |
| cls._meta.auto_field = self |
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
| # Minor brain surgery. | |
| URLopener.open_https = open_https |
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
| $ ssh-keygen -R myserver.nostacktrace.com | |
| /Users/norman/.ssh/known_hosts updated. | |
| Original contents retained as /Users/norman/.ssh/known_hosts.old | |
| $ ssh [email protected] | |
| The authenticity of host 'myserver.nostacktrace.com (174.129.159.201)' can't be established. | |
| RSA key fingerprint is bb:cc:31:17:0a:95:0e:37:d9:c0:2d:20:d8:ee:29:a1. | |
| Are you sure you want to continue connecting (yes/no)? yes | |
| Warning: Permanently added 'myserver.nostacktrace.com,174.129.159.201' (RSA) to the list of known hosts. |
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
| user "random" do | |
| comment "Random User" | |
| uid 1000 | |
| gid "users" | |
| home "/home/random" | |
| shell "/bin/zsh" | |
| password "$1$JJsvHslV$szsCjVEroftprNn4JHtDi." | |
| end |
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
| remote_file "/tmp/testfile" do | |
| source "http://www.example.com/tempfiles/testfile" | |
| mode "0644" | |
| checksum "08da002l" | |
| end |
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
| remote_file "/usr/local/bin/lein" do | |
| source "https://raw.github.com/technomancy/leiningen/1.7.1/bin/lein" | |
| mode "0755" | |
| end |
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
| maven "mysql-connector-java" do | |
| group_id "mysql" | |
| version "5.1.19" | |
| dest "/usr/local/tomcat/lib/" | |
| end |
OlderNewer