-
install chrome-har-capture
~ npm install -g chrome-har-capturer
-
install Chrome Canary
~ /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222 --headless
-
capture har
This file contains 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
➜ ~ /Applications/webrecorderplayer-electron.app/Contents/Resources/app/python-binaries/webrecorder {file.warc} |
This file contains 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
# https://github.com/internetarchive/warctools | |
~ warcfilter -H video/mp4 original.warc.gz > video.warc | |
# https://github.com/chfoo/warcat | |
~ python3 -m warcat extract video.warc --output-dir ./videos --progress | |
This file contains 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
(venv) ➜ twarc git:(master) ✗ pyinstaller --clean --hidden-import urllib3 --hidden-import queue --onefile twarc.py | |
(venv) ➜ twarc git:(master) ✗ ls -lah dist/twarc | |
-rwxr-xr-x 1 raffaele 5.4M Jan 4 21:01 dist/twarc | |
(venv) ➜ twarc git:(master) ✗ file dist/twarc | |
dist/twarc: Mach-O 64-bit executable x86_64 | |
./dist/twarc --help | |
usage: twarc [-h] [--log LOG] [--consumer_key CONSUMER_KEY] |
This file contains 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
package EPrints::Plugin::Export::DEPOSITOLEGALE; | |
# eprint needs magic documents field | |
# documents needs magic files field | |
use EPrints::Plugin::Export::XMLFile; | |
@ISA = ( "EPrints::Plugin::Export::DIDL" ); |
This file contains 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
function swh-check() { curl -s --data "q=$(sha1sum $* | cut -d " " -f 1)" https://archive.softwareheritage.org/api/1/content/known/search/ | jq . } |
~ mediawiki=$(curl -s https://raw.githubusercontent.com/wikimedia/mediawiki/master/index.php | gsha1sum | cut -d " " -f 1)
~ curl -s --data "q=$mediawiki" https://archive.softwareheritage.org/api/1/search/ | jq .
{
"search_stats": {
"nbfiles": 1,
"pct": 100
},
This file contains 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
➜ Downloads unzip -l extension_0_0_129.crx | |
Archive: extension_0_0_129.crx | |
warning [extension_0_0_129.crx]: 566 extra bytes at beginning or within zipfile | |
(attempting to process anyway) | |
Length Date Time Name | |
-------- ---- ---- ---- | |
0 05-13-16 22:41 icons/ | |
7952 05-13-16 22:41 icons/icon128.png | |
759 05-13-16 22:41 icons/icon16.png | |
2858 05-13-16 22:41 icons/icon48.png |
This file contains 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
brew install lua5.1 | |
curl http://warriorhq.archiveteam.org/downloads/wget-lua/wget-1.14.lua.LATEST.tar.bz2 | tar -xj --strip-components=1 | |
sed -i -e s=usr/include/lua5.1=usr/local/include/lua5.1=g configure.ac | |
./configure | |
make | |
cp src/wget /usr/local/bin/wget-lua | |
wget-lua --help|grep lua | |
GNU Wget 1.14.lua.20130523-9a5c, a non-interactive network retriever. | |
Usage: wget-lua [OPTION]... [URL]... |
This file contains 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
Homebrew build logs for homebrew/x11/scantailor on OS X 10.11.1 | |
Build date: 2015-12-04 21:22:47 |