-
Install msmtp, a simple sendmail stand-in that sends mail via a relay host (which is what you want, in almost all cases):
brew install msmtp --with-macosx-keyringThe flag with-macosx-keyring will make msmtp use the MacOS keychain, which is a pretty secure way to keep your mail account password secure.
-
Configure it as described in this article. Don't use the manual installation method described there, Homebrew (which we used in step 1) is way more convenient.
-
Have mail use msmtp instead of sendmail by creating .mailrc with the following content (or adding it, it the file already exists):
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 android.app.Activity; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.Path; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.view.MotionEvent; | |
| import android.view.View; |
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
| /* search form div container */ | |
| #searchform { | |
| margin:20px; | |
| } | |
| /* Styling the search input field */ | |
| #field { | |
| float:left; | |
| width:300px; | |
| height:27px; |
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
| $('a#bookmark').click(function(e){ | |
| e.preventDefault(); | |
| var bookmarkURL = this.href; | |
| var bookmarkTitle = this.title; | |
| try { | |
| if (window.sidebar) { // moz | |
| window.sidebar.addPanel(bookmarkTitle, bookmarkURL, ""); | |
| } else if (window.external || document.all) { // ie | |
| window.external.AddFavorite(bookmarkURL, bookmarkTitle); | |
| } else if (window.opera) { // duh |
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/sh -e | |
| # ======================== | |
| # Start a Jekyll Server | |
| # ======================== | |
| # | |
| # Usage: /etc/init.d/jekyll-site {start|stop|force-reload|restart|status} | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: jekyll-site |
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"?> | |
| <com.example.myapp.adview | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:id="@+id/ad_view" | |
| android:layout_width="match_parent" | |
| android:layout_height="48dp" | |
| android:layout_gravity="bottom|fill_horizontal" | |
| android:background="#000000" | |
| /> |
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 python | |
| """ | |
| Real time log files watcher supporting log rotation. | |
| Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com> | |
| License: MIT | |
| """ | |
| import os |
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/groovy | |
| /* | |
| * Copyright (c) 2016, Andrey Makeev <amaksoft@gmail.com> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * 1. Redistributions of source code must retain the above copyright |
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
| require 'math' | |
| math.randomseed(os.time()) | |
| dns_providers = { | |
| { -- Quad9 | |
| {'9.9.9.9', hostname='dns.quad9.net', ca_file='/usr/local/etc/kresd/DigiCertECCSecureServerCA.pem'}, | |
| {'149.112.112.112', hostname='dns.quad9.net', ca_file='/usr/local/etc/kresd/DigiCertECCSecureServerCA.pem'} | |
| }, | |
| { -- Cloudflare | |
| {'1.1.1.1', hostname='cloudflare-dns.com', ca_file='/usr/local/etc/kresd/DigiCertECCSecureServerCA.pem'}, |
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
| /var/log/nginx_*.log { | |
| daily | |
| compress | |
| delaycompress | |
| rotate 2 | |
| missingok | |
| nocreate | |
| sharedscripts | |
| postrotate | |
| test ! -f /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid` |
OlderNewer