Skip to content

Instantly share code, notes, and snippets.

View apperceive's full-sized avatar

Apperceive apperceive

View GitHub Profile
@apperceive
apperceive / seldump
Created October 4, 2015 13:54
Simple example to dump all selectors using Sabberworm CSS parser
<?php
require_once(dirname(__FILE__).'/bootstrap.php');
$oParser = new Sabberworm\CSS\Parser(file_get_contents('php://stdin'));
$oCss = $oParser->parse();
foreach($oCss->getAllDeclarationBlocks() as $oBlock) {
foreach($oBlock->getSelectors() as $oSelector) {
@apperceive
apperceive / README.md
Last active October 16, 2015 19:28
Internet Archive python command line interface examples
@apperceive
apperceive / archive.org-urls.txt
Last active August 18, 2023 22:32
archive.org url's
http://archive.org/details/IDENTIFIER
http://archive.org/download/IDENTIFIER/FILENAME.EXT
http://archive.org/services/img/IDENTIFIER
http://archive.org/embed/IDENTIFIER
http://archive.org/compress/IDENTIFIER/formats=JPEG&file=/IDENTIFIER.zip
https://archive.org/edit/IDENTIFIER
https://archive.org/manage/IDENTIFIER
@apperceive
apperceive / archive.org-media-types.txt
Created October 16, 2015 23:34
archive.org media types
article,audio,collection,data,education,etree,image,movies,other,software,texts,web
@apperceive
apperceive / archive.org-download-image-example.html
Created October 17, 2015 00:15
display an archive.org image
<img src="https://archive.org/download/AliciasShoes/alicias_shoes.jpg" />
@apperceive
apperceive / ia-urls.md
Last active November 12, 2015 15:56
My archive.org reading list
@apperceive
apperceive / db-table-last-access.sql
Last active October 22, 2015 13:34
Show mySQL database table last access dates
SELECT update_time, table_name FROM information_schema.tables WHERE table_schema = 'MYDB' ORDER BY 1,2;
@apperceive
apperceive / usa-power-grab-timeline-riki-ott.csv
Last active November 2, 2015 01:03
CSV version of Riki Ott's US Power Grab Timeline data
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
Start Date,End Date,Headline,Text,Media,Media Credit,Media Caption,Media Thumbnail,Type,Tag
2/23/2013,,Corporate Rights and Power Historical Timeline ,"From the Ultimate Civics 'Organizing for Change' manual and the 'Rethinking Democracy' high school curriculum.",,Video posted by FluxRostrum,"<a href=""http://www.youtube.com/watch?feature=player_embedded&v=OkUw99XJkfI"" title='Corporate Power Grab Historical Timeline , on Youtube'>Corporate Power Grab Historical Timeline </a>",,title,
1/1/1776,,Revolutionary War begins,,,,,,,
1/1/1789,,*The US Constitution,"The writers of the Constitution were very interested in protecting their property. Without using the words 'slave' or 'slavery', they made slavery legal and institutionalized it. 'No person held in Service or Labour in one State,… escaping into another, shall… be discharged from such Service or Labour, but shall be delivered up on Claim of the Party to whom such Service or Labour may be due.' [Art. 4, Sec. 2]",,,,,,
1/1/1791,,*Bill of Rights,"The first 10
@apperceive
apperceive / usa-power-grab-timeline-riki-ott.tsv
Last active November 2, 2015 01:06
CSV version of Riki Ott's US Power Grab Timeline data
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 10 columns, instead of 4 in line 4.
Start Date End Date Headline Text Media Media Credit Media Caption Media Thumbnail Type Tag
2/23/2013 Corporate Rights and Power Historical Timeline From the Ultimate Civics 'Organizing for Change' manual and the 'Rethinking Democracy' high school curriculum. Video posted by FluxRostrum <a href='http://www.youtube.com/watch?feature=player_embedded&v=OkUw99XJkfI' title='Corporate Power Grab Historical Timeline , on Youtube'>Corporate Power Grab Historical Timeline </a> title
1/1/1776 Revolutionary War begins
1/1/1789 *The US Constitution The writers of the Constitution were very interested in protecting their property. Without using the words “slave” or “slavery,” they made slavery legal and institutionalized it. “No person held in Service or Labour in one State,… escaping into another, shall… be discharged from such Service or Labour, but shall be delivered up on Claim of the Party to whom such Service or Labour may be due.” [Art. 4, Sec. 2]
1/1/1791 *Bill of Rights The first 10 Amendmen