Skip to content

Instantly share code, notes, and snippets.

@ryanjohnston
ryanjohnston / com.apple.postfix.custom.plist
Last active September 10, 2018 14:17
[🛠 MacOS - Postfix] Configuration and setup #config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.postfix.master</string>
<key>Program</key>
<string>/usr/libexec/postfix/master</string>
<key>ProgramArguments</key>
<array>
@ryanjohnston
ryanjohnston / README.md
Last active September 14, 2018 20:47
[Crontab - Snippets] Gists, Snippets and Workflows #cli
@ryanjohnston
ryanjohnston / asl.conf
Last active September 9, 2018 18:30
[MacOS - Logging] Snippets, Gists and Workflows
##
# configuration file for syslogd and aslmanager
##
# aslmanager logs
> /var/log/asl/Logs/aslmanager external style=lcl-b ttl=2
# authpriv messages are root/admin readable
? [= Facility authpriv] access 0 80
@ryanjohnston
ryanjohnston / htaccess - enable CORS for fonts.txt
Last active September 9, 2018 18:42
[Apache - htaccess] Configuration Snippets, Gists and Workflows #config
<FilesMatch "\.(woff2|woff|ttf|svg|eot|js|css)$">
<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</ifModule>
</FilesMatch>
@ryanjohnston
ryanjohnston / menu-example.js
Last active September 9, 2018 18:36
[Moovweb - Snippets] Snippets, Gists and Workflows
import fetch from 'fetch'
import { withGlobalState } from 'moov-pwa/router'
import globalState from '../globalState'
export default async function menuHandler() {
// Need to learn about config api
// const { hostname, port, apiKey } = Config.get('upstreamApi')
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
@ryanjohnston
ryanjohnston / README.md
Last active September 9, 2018 18:39
[AWS EFS - Snippets] Snippets, Gists and Workflows for Amazon Elastic File System #efs

AWS Related scripts

Scripts I use for configuring and using AWS. Buyer beware.

@ryanjohnston
ryanjohnston / CRUD.md
Last active September 14, 2018 12:22
[dev 🛠 crud examples] Basic CRUD operations with various languages #dev

CRUD - Create, Read, Update and Delete

Collection of code snippets demonstrating basic CRUD operations in multiple languages.

@ryanjohnston
ryanjohnston / SNIPPETS-JAVASCRIPT.md
Last active September 10, 2018 14:15
[🛠 JavaScript - Snippets] Snippets, Gists and Workflows about general JavaScript functionality #dev

Snippets - JavaScript

@ryanjohnston
ryanjohnston / TMUX.md
Last active March 22, 2020 08:29
[TMUX - Info] Terminal multi-plexer #cli
@ryanjohnston
ryanjohnston / PRODUCTIVITY.md
Last active September 10, 2018 14:53
[🛠 Productivity - Wakatime] Suggestions and tips for using wakatime for time tracking #productivity

Productivity

Table of Contents

  • Wakatime - Automated time tracking service for developers.

Wakatime

Open-source plugin for metrics, goals, leaderboards, and automatic time tracking. There are many integration methods provided but these are the ones that I use: