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
cat ~/.ssh/id_rsa.pub | ssh root@MY_DOKKU_SERVER dokku ssh-keys:add MY_KEY_NAME |
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
dokku apps:create minio | |
dokku config:set minio MINIO_ACCESS_KEY=$(echo `openssl rand -base64 45` | tr -d \=+ | cut -c 1-20) | |
dokku config:set minio MINIO_SECRET_KEY=$(echo `openssl rand -base64 45` | tr -d \=+ | cut -c 1-32) | |
sudo mkdir -p /var/lib/dokku/data/storage/minio | |
sudo chown 32769:32769 /var/lib/dokku/data/storage/minio | |
dokku storage:mount minio /var/lib/dokku/data/storage/minio:/home/dokku/data | |
dokku domains:set minio minio.MY_DOMAIN.com |
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
dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git | |
dokku config:set --no-restart minio [email protected] | |
dokku letsencrypt minio |
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
mkdir /home/dokku/minio/nginx.conf.d/ | |
echo 'client_max_body_size 50m;' > /home/dokku/minio/nginx.conf.d/upload.conf | |
chown dokku:dokku /home/dokku/minio/nginx.conf.d/upload.conf | |
service nginx reload |
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
interface NewsletterDetailProps extends RouteComponentProps<any>, React.Props<any> { | |
} | |
const NewsletterDetail: React.StatelessComponent<NewsletterDetailProps> = props => { | |
const match = props.match; | |
return ( | |
... | |
); | |
}; |
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
# Usage: | |
# docker-compose up --force-recreate | |
version: "2.1" | |
services: | |
#--------------# | |
zalenium: | |
image: "dosel/zalenium" | |
container_name: zalenium | |
hostname: zalenium |
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
chrome_settings = webdriver.DesiredCapabilities.CHROME.copy() | |
remote_chrome_driver = webdriver.Remote(desired_capabilities=chrome_settings) |
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
function randomizeText(selection, documentRoot) { | |
documentRoot.children.forEach(node => { | |
// [1] | |
if (node instanceof Artboard) { | |
// [2] | |
let artboard = node; | |
let rectangles = artboard.children.filter(artboardChild => { | |
// [3] | |
return artboardChild instanceof Text; |
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
git subtree push --prefix backend subdomain master | |
(cd frontend && exec yarn run build) | |
(cd frontend && exec netlify deploy --dir=./build --prod) |
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
/* /index.html 200 |