Skip to content

Instantly share code, notes, and snippets.

Avatar

Victor Motha svmotha

View GitHub Profile
@svmotha
svmotha / tableLogCenter.py
Created Jun 11, 2017
Query and update DynamoDB tables using hash keys
View tableLogCenter.py
from boto3.dynamodb.conditions import Key
class logCenter(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
# Update new followers to database (have already recieved direct messages)
def dynamoPut(self, follower, table):
table.put_item(
@svmotha
svmotha / createTable.py
Created Jun 11, 2017
Check if DynamoDB table already exists and create one if it doesn't
View createTable.py
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')
@svmotha
svmotha / authentication.py
Last active Jun 11, 2017
Tweepy twitter authentication with 'secret' twitter keys import.
View authentication.py
import tweepy
from keyStorage.keys import keys
class apiConnect():
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
# Authenticate user credentials and get access to twitter API
def authentication(self):
# Use user keys
@svmotha
svmotha / Sublime Text 3 Build 3103 License Key - CRACK
Created Feb 12, 2017
Sublime Text 3 Build 3103 License Key - CRACK
View Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@svmotha
svmotha / Contract Killer 3.md
Created Jan 26, 2016 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post