- Postico client for mac
- pgcli - Postgres CLI with autocompletion and syntax highlighting
- pghero - Server and query performance dashboard
There are two main modes to run the Let's Encrypt client (called Certbot):
- Standalone: replaces the webserver to respond to ACME challenges
- Webroot: needs your webserver to serve challenges from a known folder.
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com.
HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.
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 | |
| # using homebrew -- http://brew.sh | |
| #docker and docker-machine | |
| brew install docker | |
| brew install docker-machine | |
| brew install docker-machine-parallels | |
| #consul | |
| brew install consul |
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
| (defun copy-from-osx () | |
| (shell-command-to-string "pbpaste")) | |
| (defun paste-to-osx (text &optional push) | |
| (let ((process-connection-type nil)) | |
| (let ((proc (start-process "pbcopy" "*Messages*" "pbcopy"))) | |
| (process-send-string proc text) | |
| (process-send-eof proc)))) | |
| (setq interprogram-cut-function 'paste-to-osx) |
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
| #!/usr/bin/env puma | |
| threads 0, 4 | |
| # workers 3 | |
| bind "unix:///var/tmp/project.sock" | |
| pidfile "/var/run/puma/project.pid" | |
| environment "production" | |
| stdout_redirect "/var/log/puma/project.log" |
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
| description "project server config" | |
| pre-start script | |
| mkdir -p /var/log/puma | |
| chown deploy. /var/log/puma | |
| mkdir -p /var/run/puma | |
| chown deploy. /var/run/puma | |
| end script |
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
| -- Use Instapaper to export a CSV file of your articles. | |
| -- Must have Numbers to open it in. | |
| -- Will create PDF documents in /Instapaper/<your folder in Instapaper> groups. | |
| -- Be sure to select an open database in DT Pro before you run this. | |
| -- | |
| -- Created by Annard Brouwer, 24/08/2014 | |
| -- | |
| -- This program is free software released "as-is"; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | |
| -- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
| -- Get a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
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
| # 301 rewrite! | |
| require 'rack/rewrite' | |
| use Rack::Rewrite do | |
| r301 %r{.*}, 'http://somedomain.com$&', :if => Proc.new {|rack_env| | |
| rack_env['SERVER_NAME'] != 'somedomain.com' | |
| } | |
| end | |
| # Attribution goes to https://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/try_static.rb |
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 | |
| WEBHOST_NAGIOS="<Host that nagios is runing on>" | |
| SLACK_CHANNEL="#<Channel name>" | |
| SLACK_BOTNAME="<Bot Name>" | |
| WEBHOOK_URL="<Webhook URL>" #Get it from Slack Incoming WebHooks setup instruction | |
| #Set the message icon based on Nagios service state | |
| if [ "$NAGIOS_SERVICESTATE" = "OK" ] | |
| then |
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/ruby | |
| require 'json' | |
| require 'time' | |
| class Snapshot | |
| def initialize() | |
| @format = 'json' | |
| @zone = get_zone | |
| @hostname = hostname |