Skip to content

Instantly share code, notes, and snippets.

@myano
myano / feeds-science
Created Dec 9, 2020
RSS feed list for `CarlSagan` in ##science on freenode
View feeds-science
5|BBC - Science & Enviroment (video)|http://feeds.bbci.co.uk/news/video_and_audio/science_and_environment/rss.xml
7|BBC - Science & Environmen|http://feeds.bbci.co.uk/news/science_and_environment/rss.xml
4|NPR - Science|https://www.npr.org/rss/rss.php?id=1007
7|Ars Technica - Science|http://feeds.arstechnica.com/arstechnica/science
13|Scientific American|http://rss.sciam.com/basic-science
5|Reuters|https://feeds.feedspot.com/infiniterss.php?followfeedid=81905&q=site:http%3A%2F%2Ffeeds.reuters.com%2Freuters%2FscienceNews
5|NSF - Discoveries|http://www.nsf.gov/rss/rss_www_discoveries.xml
2|NYT - Science|https://rss.nytimes.com/services/xml/rss/nyt/Science.xml
4|NYT - Space|https://rss.nytimes.com/services/xml/rss/nyt/Space.xml
4|NIST|https://www.nist.gov/news-events/news/rss.xml
View archiveteam_google.md

ArchiveTeam

Notes

Please change any reference to 'yano' to your own username.

Setting Up VMs

I would spin up a Hetzner cloud and run the following series of commands on a new VM; and then move on to the next one.

View achiveteam.md
for i in {0002..0099}; do /sbin/ip -6 addr add 2a01:aaaa:bbbb:cccc::$i/128 dev eth0; done
curl -L https://wtfismyip.com/text
apt update; apt -y upgrade; apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common git-core libgnutls28-dev libgnutls30 screen lua5.1 liblua5.1-0 liblua5.1-0-dev python-dev python-pip bzip2 zlib1g-dev unzip python-setuptools build-essential flex autoconf python-gnutls atop htop rsync dnsutils; curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"; apt update; apt -y install docker-ce; systemctl restart docker && for i in {8001..8015}; do docker run --detach --env DOWNLOADER="yano" --env SELECTED_PROJECT="auto" --env CONCURRENT_ITEMS="6" --publish $i:8001 --restart always archiveteam/warrior-dockerfile; done
View sentences.md
  • Modern Language Association (MLA) Style
    • "Leave one space after a period or other concluding punctuation mark, unless your instructor prefers two spaces. Whichever spacing you choose, be sure to use it consistently throughout your paper. See the MLA’s formatting guidelines for more information."
    • https://style.mla.org/number-of-spaces-after-period/
  • Publications Manual of the American Psychological Association (also known as the "APA style")
    • "allows for two spaces in draft manuscripts but recommends one space in published work"
    • "Although the usual convention for published works remains one space after each period, and indeed the decision regarding whether to include one space or two rests, in the end, with the publication designer, APA thinks the added space makes sense for draft manuscripts in light of those manuscript readers who might benefit from a brief but refreshing pause."
    • http://blog.apastyle.org/apastyle/2009/07/on-two-spaces-following-a-period.html
  • AP Style Guide Ch
View wsl.md

These steps assume you have already gone through the steps of enabling the Linux Subsystem for Windows 10 and that you have installed a distribution, prferrably a Debian-based distribution such as Ubuntu.

  1. Install VcXsrv Windows X Server, https://sourceforge.net/projects/vcxsrv/
  2. Install WSL
    1. To install WSL, Open a Powershell as Administrator
    2. Run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    3. Reboot
  3. Open up a "Command Prompt" on Windows.
  4. Run lxrun /install /y
View join.py
#!/usr/bin/env python3
import copy
from collections import OrderedDict
f = open('weechat.conf', 'r')
formats = ['/join -noswitch ', '/query ']
networks = {
View st_handler.py
import os
import requests
import re
new_header = 'Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0'
headers = {'User-Agent': new_header}
r_url = re.compile('<a href="(http\S+)" target=_blank>archive here</a>')
re_exists_url = re.compile("archive here: <a href=(http\S+?)>http\S+?</a></h3>")
@myano
myano / index.patch
Last active Sep 21, 2018
This is a new handler I made for the archivenow project for Megalodon.jp along with the modifications to the web portion.
View index.patch
--- index.html-orig 2018-09-21 17:27:49.048418655 -0400
+++ index.html 2018-09-21 15:30:11.071417494 -0400
@@ -60,7 +60,7 @@
}
#text_url{
- width:333px;
+ width:800px;
font-size: 12.5px;
}
View .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
View WhereAmI.sh
#!/usr/bin/env bash
## Test for Debian
if [ -x "$(command -v lsb_release)" ]
then
lsb_release -a
fi
## Test for RHEL
if [ -e /etc/redhat-release ]