Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / amt.cpp
Created October 28, 2015 15:47 — forked from chitreshkakwani/amt.cpp
Array Mapped Trie design
// Store all the levels in separate tables
/* Level 1 - 0000100001 | 0
Level 2 - 0000101100 | 2
0110000000 | 0
Level 3 - 0000100010 | 7
0000100010 | 5
0000100010 | 3
@Teino1978-Corp
Teino1978-Corp / README.md
Created October 28, 2015 15:34 — forked from jharding/README.md
Help beta test typeahead.js v0.10.0! Please direct all feedback here: https://github.com/twitter/typeahead.js/pull/335

build status

[typeahead.js][gh-page]

Inspired by [twitter.com]'s autocomplete search functionality, typeahead.js is a flexible JavaScript library that provides a strong foundation for building robust typeaheads.

The typeahead.js library is built on top of 2 components: the data component,

@Teino1978-Corp
Teino1978-Corp / proposal.md
Created October 28, 2015 15:10 — forked from stuartpb/proposal.md
A proposal for a Generalized Hashcash Format

Generalized Hashcash Header

History

Proposal goals

  • Enable some degree of modularity and interoperability for hashcash library components.
  • Specify hashcash patterns for domains beyond email.
  • Allow individual components, such as the hashing function, to change without breaking orthogonal components, such as calculation and valuation.
@Teino1978-Corp
Teino1978-Corp / deduplicate.py
Created October 28, 2015 06:30 — forked from arpanpal010/deduplicate.py
Duplicate mover/remover based on file hashes.
#!/usr/bin/python
from __future__ import print_function
import sys, hashlib, os, shutil, time
from collections import Counter
#function to remove duplicates in folder by genrating and comparing their hash values
#has option to remove file automatically or move them to a separate place.
@Teino1978-Corp
Teino1978-Corp / linkthedots.sh
Created October 28, 2015 06:27 — forked from arpanpal010/linkthedots.sh
copy dot files from various locations to a single folder for backup.
#!/bin/bash
#script to copy the dotfiles to/from here to/from their proper places
#added file structure preservation - files are copied to their location related to root
#added logging errors
#to clone/sync my dotfiles: git clone https://github.com/arpanpal010/dotfiles.git
#Usage:
#$ sh linkthedots.sh collect --> get files
@Teino1978-Corp
Teino1978-Corp / getter_media.sh
Created October 28, 2015 06:18 — forked from arpanpal010/getter_media.sh
script for gathering movie_ids, name_ids and character_ids from the mothership.
#!/bin/bash
#script for scraping movie IDs and name ids from IMDb. This script recusively crawls IMDb pages and extracts related movie/people/character ids and stores them in txt files.
#USAGE: -getid => gets movie ids into list_(imdb|name|character)_id.txt
# -getinfo=> gets data(XML/JSON/JSONP) and puts in store_data
# -print => prints current id/info status
#
#Added functionality to get data from omdbapi in JSON/XML format. Tweak custom URL according to need.
#Added functionality to get data from myapifilms in JSON/XML/JSONP format. Tweak custom URL according to need.
#CAUTION: DON'T RUN -getid and -getinfo together in same argument rather use separate windows!!
########################################################################
@Teino1978-Corp
Teino1978-Corp / rpibackup.sh
Created October 28, 2015 06:16 — forked from arpanpal010/rpibackup.sh
Backup files from remote pc to a single location in storage (preserves relative paths).
#!/bin/bash
#this script backs up files from various locations in a remote computer.
#using scp to SFTP the files from remote.
#files are stored as they are to / in $backupdir (hierarchy preserved), either specify absolute path for backupdir, or use $rootdir as a container
#in future this script will be run as a cronjob
#have to provide password everytime, TODO setup keys (although this has nothing to do with the script)
#usage: files that are to be backed up from pi (mainly configs and server settings)
@Teino1978-Corp
Teino1978-Corp / passgen.sh
Created October 28, 2015 06:13 — forked from arpanpal010/passgen.sh
Simple password generator based on sha1 hashing and base64 encoding (require bash 4)
#!/bin/bash
#simple password geenrator based on sha1 hashing and base64 encoding.
#needs grep,read and sha1sum, base64
#written in bash 4.3.18
#
#added case-insensitivity in "INDEX"
#added master password hash generation
#added timing - clear screen after a time
#added hash based pasword checking (prompting for master password)
@Teino1978-Corp
Teino1978-Corp / gitlister.sh
Created October 28, 2015 06:07 — forked from arpanpal010/gitlister.sh
Script to find git repositories when it becomes bit hard to keep track of cloned/modifed repos.
#!/bin/bash
#script to find git repositories when it becomes hard to keep track of all git repositories
#takes $1 as root path to search, default= $PWD
# argumnet -diff checks if any of the gits are modified locally
# argumnet -url checks if any of the gits are modified locally
# both arguments are enabled by default so use -nodiff, -nourl
#read location or use current dir
@Teino1978-Corp
Teino1978-Corp / gfeed2js.js
Created October 28, 2015 06:04 — forked from arpanpal010/gfeed2js.js
google feeds api parser in javascript. somewhat like feed2js but much simpler layout.
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
/*!-- Sample feedbox html --
<div class="feeds">
<p class="feed-title">
<a href="url">title</a>
description
</p>
<ul>
<li> entry </li>