05/25/2018: tested with macOS Sierra High 10.12.6
08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5
Install MailCatcher:
brew install ruby
sudo gem install mailcatcher
As i had a hard time finding anything in the mailchimp documentation, i thought it might help a lost soul to put this info here: | |
If you cannot find your marketing_permission_id of your mailchimp list (eg. for GDPR compliance), you can do a signup request (maybe others too), | |
using the API, and it will return its data, including the marketing_permissions array containing the unique id for the opt-in. | |
POST: | |
{ | |
"email_address": "[email protected]", | |
"status": "subscribed", | |
"status_if_new": "subscribed", | |
"merge_fields": { | |
"FNAME": "John", |
var Person = (function () { | |
function Person(name) { | |
this.name = name; | |
} | |
return Person; | |
})(); | |
function greeter(person) { | |
return "hallo " + person.name; | |
} | |
var person = new Person("bert"); |
#!/bin/sh | |
red="\033[0;31m" | |
yellow="\033[1;33m" | |
green="\033[1;32m" | |
reset="\033[0m" | |
read -a changed_files <<< $(git diff --cached --name-only --raw) | |
# check if there're any JS related files in commit | |
runTests=false |
05/25/2018: tested with macOS Sierra High 10.12.6
08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5
Install MailCatcher:
brew install ruby
sudo gem install mailcatcher
import os.path | |
from fabric.api import run, env, put | |
from fabric.context_managers import cd | |
from fabric.api import local | |
from datetime import datetime | |
from cuisine import * | |
ROOT_PATH = os.path.dirname(__file__) |
<!DOCTYPE HTML> | |
<html lang="en" ng-app="myApp"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dynamic Pagination w/ Filtering</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content="Kim Maida"> | |
<!-- JS Libraries --> |
#!/bin/sh | |
version="1.4.15" | |
priority="10415" | |
libevent="/usr/local/libevent/2.0.20-stable/" | |
supervisordir="/etc/supervisord.d" | |
# create user | |
sudo groupadd memcached | |
sudo useradd -r -g memcached -s /sbin/nologin -M -d /var/run/memcached memcached |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# Formatted for readability | |
SELECT src, src_height, src_width, src_small, src_small_height, src_small_width | |
FROM photo | |
WHERE pid IN (SELECT pid | |
FROM photo_tag | |
WHERE subject='243117879034102' ) | |
OR | |
pid IN (SELECT pid | |
FROM photo | |
WHERE aid IN (SELECT aid |