- Configure Gmail in you gitconfig:
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = <gmail email address>
from = <email address for From: field>
'use strict'; | |
var Sequelize = require('sequelize'); | |
var sequelize = new Sequelize('mainDB', null, null, { | |
dialect: "sqlite", | |
storage: './test.sqlite', | |
}); | |
sequelize |
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = <gmail email address>
from = <email address for From: field>
import os | |
import logging | |
import asks | |
import trio | |
import time | |
import contextvars | |
logging.basicConfig(level='DEBUG') | |
logger = logging.getLogger(__name__) |
diff --git a/platter.py b/platter.py | |
index 2891b6d..8824e38 100644 | |
--- a/platter.py | |
+++ b/platter.py | |
@@ -356,7 +356,7 @@ class Builder(object): | |
python=os.path.basename(self.python), | |
postinstall=postinstall, | |
)).encode('utf-8')) | |
- os.chmod(fn, 0100755) | |
+ os.chmod(fn, 0o100755) |
import tweepy
exec(open('/etc/environment').read())
bot_username = 'RyeArtsCodingC'
def tweet(text):
auth = tweepy.OAuthHandler(C_KEY, C_SECRET)
auth.set_access_token(A_TOKEN, A_TOKEN_SECRET)
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
def add_cors_headers(response): | |
response.headers['Access-Control-Allow-Origin'] = '*' | |
if request.method == 'OPTIONS': | |
response.headers['Access-Control-Allow-Methods'] = 'DELETE, GET, POST, PUT' | |
headers = request.headers.get('Access-Control-Request-Headers') | |
if headers: | |
response.headers['Access-Control-Allow-Headers'] = headers | |
return response | |
app.after_request(add_cors_headers) |
@app.route("/test_session") | |
def write(): | |
session['uid']='my_uid' | |
return session.get('uid') | |
@app.route("/read_session") | |
def read(): | |
return session.get('uid') |