Skip to content

Instantly share code, notes, and snippets.

View ibnesayeed's full-sized avatar

Sawood Alam ibnesayeed

View GitHub Profile
@ibnesayeed
ibnesayeed / Dockerfile
Created June 11, 2016 00:01
An example to illustrate basic Dockerization
FROM python
MAINTAINER Sawood Alam <@ibnesayeed>
RUN pip install beautifulsoup4
RUN pip install requests
ADD main.py /app/
WORKDIR /app
RUN chmod a+x main.py
ENTRYPOINT ["./main.py"]
Verifying that +ibnesayeed is my blockchain ID. https://onename.com/ibnesayeed
@ibnesayeed
ibnesayeed / sighup.go
Created June 3, 2016 15:18 — forked from andelf/sighup.go
golang process SIGHUP, HUP signal to reload configuration
// program
package main
import "os/signal"
import "os"
import "fmt"
import "syscall"
import "time"
SURT_URI DATETIME {
"id": "WARC-Record-ID",
"url": "ORIGIONAL_URI",
"status": "3-DIGIT_HTTP_STATUS",
"mime": "Content-Type",
"locator": "urn:ipfs/HEADER_DIGEST/PAYLOAD_DIGEST",
"others": {}
}
@ibnesayeed
ibnesayeed / memgator-tweets-hackarchives.txt
Created March 3, 2016 20:44
MemGator tweets during ArchiveUnleashed hackathon presentation
#MemGator A Memento Aggregator CLI and Server in Go https://github.com/oduwsdl/memgator #HackArchives @ibnesayeed @WebSciDL
Run #MemGator as @Docker container https://hub.docker.com/r/ibnesayeed/memgator/ #HackArchives @ibnesayeed @WebSciDL
Try #MemGator in your browser http://wsdl-salam.cs.odu.edu:10101/ #MemGatorTTY #HackArchives @ibnesayeed @WebSciDL
Run your own #MemGatorTTY @Docker container https://github.com/ibnesayeed/MemGatorTTY #MemGator #HackArchives @ibnesayeed @WebSciDL
<link href="http://cnn.com" rel="original">
<link href="http://web.archive.org/web/20000620180259/http://cnn.com" rel="first memento" datetime="Tue, 20 Jun 2000 18:02:59 GMT">
<link href="http://web.archive.org/web/20140101000142/http://cnn.com" rel="prev memento" datetime="Wed, 01 Jan 2014 00:01:42 GMT">
<link href="http://web.archive.org/web/20140101000142/http://cnn.com" rel="memento" datetime="Wed, 01 Jan 2014 00:01:42 GMT">
<link href="http://web.archive.org/web/20140101012350/http://cnn.com" rel="next memento" datetime="Wed, 01 Jan 2014 01:23:50 GMT">
<link href="http://web.archive.org/web/20151026180021/http://cnn.com" rel="last memento" datetime="Mon, 26 Oct 2015 18:00:21 GMT">
<link href="http://memgator.cs.odu.edu:1208/timemap/link/http://cnn.com" anchor="http://cnn.com" rel="timemap" type="application/link-format">
<link href="http://memgator.cs.odu.edu:1208/timemap/json/http://cnn.com" anchor="http://cnn.com" rel="timemap" type="application/json">
<link href="http://memgator.cs.odu.edu:1208/timema
@ibnesayeed
ibnesayeed / screen-capture.js
Last active October 13, 2015 16:51
Screen Capture Using PhantomJS
var gutenberg = ['gutenberg-pride-and-prejudice'];
var count = 0;
var fns = gutenberg;
var dom = 'gutenberg';
function capturePage(url, opf, idx) {
var page = require('webpage').create();
page.settings.userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.70 Safari/537.17';
page.viewportSize = {
width: 1024,
{
"@context": "https://oduwsdl.github.io/context/archprofile.jsonld",
"@id": "http://www.webarchive.org.uk/ukwa/",
"about": {
"accesspoint": "http://www.webarchive.org.uk/wayback/",
"mechanism": "http://oduwsdl.github.io/terms/mechanism#cdx",
"name": "UKWA 1996 Collection",
"profile_updated": "2015-01-20T17:25:30Z",
"suburi_class": "http://oduwsdl.github.io/terms/suburi#H3P1",
"more_meta_data": "..."
@ibnesayeed
ibnesayeed / xenforo-downloader.sh
Created April 8, 2015 13:10
A script to automatically download XenForo from customer area
#! /usr/bin/env bash
###############################################################################
# CONFIG #
###############################################################################
EMAIL="xenforo%40gmail.com"
PASSWORD="p4ssw0rd"
LICENSE="12A3B4CD56"
###############################################################################
@ibnesayeed
ibnesayeed / RTE
Created February 23, 2015 21:30
Rich Text Editor In Browser As Bookmarklet
data:text/html,<html><script>window.onload=function(){var a=document.body;a.addEventListener("keydown",function(b){if(b.ctrlKey&&83===b.which){document.location = 'data:text/html,' + document.childNodes[0].outerHTML;b.preventDefault();}},!1);document.title=document.body.innerText.replace(/\n[\s\S]+$/," - ")+new Date().toString();};</script><body contenteditable></body></html>