I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
#!/usr/bin/env sh | |
## | |
# This is script with useful tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh | |
# |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
##################### ElasticSearch Configuration Example ##################### | |
# This file contains an overview of various configuration settings, | |
# targeted at operations staff. Application developers should | |
# consult the guide at <http://elasticsearch.org/guide>. | |
# | |
# The installation procedure is covered at | |
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
# | |
# ElasticSearch comes with reasonable defaults for most settings, |
$ diff -u /etc/nginx/nginx.conf{.ORIG,}
--- /etc/nginx/nginx.conf.ORIG 2014-04-13 04:15:51.907316500 +0000
+++ /etc/nginx/nginx.conf 2014-04-13 05:02:22.807316500 +0000
@@ -30,7 +30,9 @@
# Logging Settings
##
- access_log /var/log/nginx/access.log;
+ log_format vhosts '$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
#!/bin/bash | |
# See http://mybookworld.wikidot.com/forum/t-583096 | |
# See http://tech.roxee.tv/2012/06/12/solving-the-my-book-live-insane-load/ | |
# http://community.wd.com/t5/My-Book-Live-Duo/New-MyBook-Duo-4Tb-astonishingly-slow-I-mean-really-soul/td-p/417642/page/5 | |
# Disable all this stuff, but also make miocrawler drops its logs. | |
# vi /etc/rsyslog.d/miocrawler.conf | |
# [root@storagecasa rsyslog.d]# cat miocrawler.conf |
global | |
log logstash local0 #Change logstash to your naming | |
log-send-hostname | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
maxconn 4000 | |
defaults |
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
#!/bin/sh | |
# To the extent possible under law, Viktor Szakats | |
# has waived all copyright and related or neighboring rights to this | |
# script. | |
# CC0 - https://creativecommons.org/publicdomain/zero/1.0/ | |
# SPDX-License-Identifier: CC0-1.0 | |
# shellcheck disable=SC3040,SC2039 | |
set -o errexit -o nounset; [ -n "${BASH:-}${ZSH_NAME:-}" ] && set -o pipefail |
➜ ~ sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.12.1 | |
BuildVersion: 16B2333a | |
➜ ~ ls -l /System/Library/Filesystems/apfs.fs/Contents/Resources | |
total 2088 | |
-rwxr-xr-x 1 root wheel 349760 22 Sep 03:48 apfs.util | |
-rwxr-xr-x 1 root wheel 352880 22 Sep 03:48 apfs_invert |