See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
all: | |
g++ main.cpp -ldlib -o Test |
import boto3 | |
class tableCreate(object): | |
def __init__(self, **kwargs): | |
self.__dict__.update(kwargs) | |
# Query client and list_tables to see if table exists or not | |
def queryCreate(self): | |
# Instantiate your dynamo client object | |
client = boto3.client('dynamodb') |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
*.pyc | |
__pycache__ |
#!/usr/bin/env bash | |
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
# Versions | |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` |
Log into your server with ssh, something like
ssh -i "my_secret.pem" [email protected]
If it's a new server, you'll need to install a few things.
Install conda with
# Use Pandas & SQLAlchemy. | |
# https://stackoverflow.com/questions/23103962/how-to-write-dataframe-to-postgres-table | |
# Note this will create a new table; see the 'faster option' at the above link for a method using 'copy' to an existing table. | |
# However, 'copy' cannot do an upsert; that requires inserting to a temp table, then upserting form temp table to destination table. | |
# This will lack PKs and FKs and indexes, of course, so if used naively you may see data duplication. | |
# Also the df.to_sql command can do an append (but not upsert), using the if_exists param: | |
# https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.html |