Skip to content

Instantly share code, notes, and snippets.

myano / feeds-science
Created Dec 9, 2020
RSS feed list for `CarlSagan` in ##science on freenode
View feeds-science
5|BBC - Science & Enviroment (video)|
7|BBC - Science & Environmen|
4|NPR - Science|
7|Ars Technica - Science|
13|Scientific American|
5|NSF - Discoveries|
2|NYT - Science|
4|NYT - Space|



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.

for i in {0002..0099}; do /sbin/ip -6 addr add 2a01:aaaa:bbbb:cccc::$i/128 dev eth0; done
curl -L
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 | apt-key add - && add-apt-repository "deb [arch=amd64] $(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
  • 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."
  • 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."
  • AP Style Guide Ch

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,
  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
#!/usr/bin/env python3
import copy
from collections import OrderedDict
f = open('weechat.conf', 'r')
formats = ['/join -noswitch ', '/query ']
networks = {
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 / index.patch
Last active Sep 21, 2018
This is a new handler I made for the archivenow project for 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 @@
- 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
#!/usr/bin/env bash
## Test for Debian
if [ -x "$(command -v lsb_release)" ]
lsb_release -a
## Test for RHEL
if [ -e /etc/redhat-release ]