Skip to content

Instantly share code, notes, and snippets.

View svmotha's full-sized avatar

Victor Motha svmotha

View GitHub Profile
@svmotha
svmotha / Contract Killer 3.md
Created January 26, 2016 13:47 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

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

@svmotha
svmotha / Sublime Text 3 Build 3103 License Key - CRACK
Created February 12, 2017 09:07
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 / authentication.py
Last active June 11, 2017 03:39
Tweepy twitter authentication with 'secret' twitter keys import.
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 / createTable.py
Created June 11, 2017 05:36
Check if DynamoDB table already exists and create one if it doesn't
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 / tableLogCenter.py
Created June 11, 2017 06:45
Query and update DynamoDB tables using hash keys
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(