start new:
tmux
start new with session name:
tmux new -s myname
location /redirect/ { | |
rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last; | |
} |
Here's the concept of the "Too busy right now" feature:
On the frontend where you collect the user's email, you need to detect the user's timezone on the frontend using javascript (this will help → http://pellepim.bitbucket.org/jstz/).
The user will subscribe to your list with their email while passing in their email and timezone data into your backend script.
<?php | |
${"\x47LO\x42A\x4c\x53"}["\x6e\x6f\x73\x77\x66\x61\x70\x64\x67\x68z"]="\x74\x69\x6d\x65\x7a\x6fne"; | |
${"G\x4cO\x42\x41\x4c\x53"}["\x6foi\x70\x70l"]="\x61w\x73_k\x65\x79"; | |
${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x71\x65\x75e\x71\x78\x76"]="\x6e\x61m\x65"; | |
${"\x47\x4cO\x42\x41\x4cS"}["w\x6e\x6a\x70\x6a\x6b\x66"]="\x725"; | |
${"\x47\x4cOB\x41\x4cS"}["\x68\x61\x61s\x75\x79\x64\x70\x65a"]="\x723"; | |
${"G\x4c\x4f\x42AL\x53"}["\x63\x69q\x67\x67p\x75"]="\x716"; | |
${"\x47L\x4f\x42\x41L\x53"}["yek\x74\x6d\x74\x70"]="\x72\x36"; | |
${"\x47L\x4fBA\x4c\x53"}["\x69\x7a\x68\x78em\x78j\x77\x68"]="\x72\x32"; | |
${"\x47L\x4fB\x41LS"}["ico\x6ayr\x75o\x6e"]="\x72\x31"; |
server { | |
listen 80; | |
listen [::]:80; | |
server_name domain.com; | |
autoindex off; | |
index index.php index.html; | |
root /srv/www/domain.com/public; |
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store
. For more information about GPG, consult the GNU Privacy Handbook.
To get started, install pass
and generate a keypair.
$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
//Using S3.php from https://github.com/tpyo/amazon-s3-php-class. Place it in includes/helpers | |
//Replaces Sendy's includes/create/upload.php | |
<?php | |
include('../functions.php'); | |
include('../login/auth.php'); | |
require_once('../helpers/S3.php'); | |
//Init | |
$file = $_FILES['file']['tmp_name']; |
#Growth Hacking List
######https://www.hackisition.com/find-automate-growth-engines/
Sendy woudln't be the Mailchimp killer without a proper Shopify integration. There we go, thanks to the Shopify gem and some ActiveRecord awesomeness.
NB: The script always keep in sync Shopify's accepts_marketing field with Sendy's unsubscribed field. I added custom fields like country and order count as an example of what we can do with it.
First make sure that you have the right ruby install (with rbenv for instance), with the right gems installed
(like activerecord
, shopify_api
, etc) and the right mysql packages for the activerecord adapter;