- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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!! | |
######################################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
write_files: | |
- path: /etc/aws.conf | |
owner: root | |
content: | | |
[Global] | |
- path: /opt/bin/consume-tokens.sh | |
owner: root | |
permissions: 0755 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
=========================================================================== | |
ANT News Bot | |
=========================================================================== | |
Sample files are provided below. | |
Folder structure: | |
/ | |
/ant | |
/ant/ant-contrib (external ant lib) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT n.title, SUM(w.count) as total | |
FROM project_usage_week_release w | |
INNER JOIN field_data_field_release_project r ON w.nid = r.entity_id | |
INNER JOIN node n ON n.nid = r.field_release_project_target_id | |
INNER JOIN | |
field_data_field_release_version v ON v.entity_id = r.entity_id | |
WHERE LEFT(v.field_release_version_value, 3) = '7.x' | |
AND FROM_UNIXTIME(w.timestamp) BETWEEN CURDATE()-INTERVAL 2 WEEK AND CURDATE() | |
GROUP BY n.title | |
ORDER BY total DESC; |