gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
While adding L2 constructs for AWS IoT I have identified a singleton pattern shared among several packages. This document demonstrates that the pattern is common enough to be found in several packages yet sparsley documented and leads to issues. Are these issues resolved with better understanding through documentation or does the pattern ussage warrant further discussion?
From @aws-cdk/core
README.md:
When defining resources for a custom resource provider, you will likely want to define them as a stack singleton so that only a single instance of the provider is created in your stack and which is used by all custom resources of that type.
#!/bin/bash | |
systemctl daemon-reload | |
systemctl restart docker.service | |
docker swarm leave --force | |
site=$(curl -s https://api.ipify.org/?format=text) echo $site docker swarm join --advertise-addr $site \ | |
--token SWMTKN-1-2nle9d1yoocuhtchkx9m1uba0xs8uwwquj1dq1v5ipjgp4fka5-aabs7ghllav8g7wjbv62zz3tp \ | |
172.31.62.216:2377 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
$white: #ffffff; | |
$black: #000000; | |
$red50: #ffebee; | |
$red100: #ffcdd2; | |
$red200: #ef9a9a; | |
$red300: #e57373; | |
$red400: #ef5350; | |
$red500: #f44336; | |
$red600: #e53935; | |
$red700: #d32f2f; |
[alias] | |
st = status -sb | |
tree = log --graph --oneline --decorate --color --all | |
standup = log --since '1 day ago' --oneline | |
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' | |
everything = log --pretty=format:'%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]' --decorate --date=short |
One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.
Most workflows make the following compromises:
-
Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the
secure
flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection. -
Use production SSL certificates locally. This is annoying
-- | |
-- PostgreSQL Northwind Database v1.0 from Ramiro Estigarribia Canese | |
-- you may contact him at email [email protected] | |
-- | |
SET statement_timeout = 0; | |
SET client_encoding = 'UTF8'; | |
SET standard_conforming_strings = on; | |
SET check_function_bodies = false; |
import imaplib, email | |
def fetch_csv_from_email(self): | |
file_name_list = [] | |
detatch_dir = '.' | |
if 'files' not in os.listdir(detatch_dir): | |
os.mkdir('files') | |
mail_session = imaplib.IMAP4_SSL('your_mail_box') | |
typ, account_details = mail_session.login('username', 'psswd') |