Skip to content

Instantly share code, notes, and snippets.

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
  • 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
#!/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
myano / index.patch
Last active September 21, 2018 21:31
This is a new handler I made for the archivenow project for Megalodon.jp along with the modifications to the web portion.
--- 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;
}
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)" ]
then
lsb_release -a
fi
## Test for RHEL
if [ -e /etc/redhat-release ]
@myano
myano / recommended_addons.md
Last active August 10, 2017 16:09
Recommended Browser Addons/Extensions

Recommended Firefox Addons

Updated: 2017-08-10 NO LONGER MAINTAINED

These are some addons I recommend for use in Firefox to make your browsing more secure and privacy-focused. The addons link titles that are in bold are what I consider to be "must-haves" and the ones without bolded title links should be considered optional.

The "easiness" ranking ranks the extensions on how "easy" it is to install and set up. It starts at 5 being the most easy and then decreases down to 1 in "easiness". 5 means you can use the addon without any configuring (it "just works" out of the box). 4 may require some configuring to enable some main features. 3 requires several options changed to utilize its features. 2 requires some technical knowledge on what the addon actually does and what implications come from changing various settings, these kind of addons might take some set up. 1 would take considerable knowledge on what a web browser does when a website is loaded in order to

def lovelike(jenni, input):
if input.sender in ['#reddit-baseball']:
return
if random.random() <= 0.25:
verb = input.group(1)
obj = input.group(2)
if len(obj) >= 100:
obj = obj[:100] + ' [...]'
out = 'I '