In config/environment.js
:
// config/environment.js
'use strict';
/*
* Mostly this is the stock module config.
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
Community
Cheatsheets
Books
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/_build/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/deps/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> |
# Instructions for syncing a local folder with a remote FTP or SFTP server | |
# The only requirement is homebrew. To get git-ftp: | |
brew update && brew install git-ftp | |
# Initialize a git repo in the directory you want to sync. Track all files, and commit them to your repo: | |
git init | |
git add -A && git commit -m "Committed all files" |
Community
Cheatsheets
Books
import asyncio | |
import time | |
from threading import Thread | |
from nats.aio.client import Client as NATS | |
from nats.aio.errors import ErrConnectionClosed, ErrTimeout | |
class Component(object): | |
def __init__(self, nc, loop): | |
self.nc = nc |
// load as early as possible | |
if(process.env.NOW){ | |
require('dotenv').config({path:'./.envnow', silent:true}); | |
}else{ | |
require('dotenv').config({silent:true}); | |
} | |
// now you can deploy with: | |
//$cp .env .envnow && now && rm -r .envnow |