start new:
tmux
start new with session name:
tmux new -s myname
| from gcrawler import GCrawler, Downloader | |
| import unittest | |
| import urllib2 | |
| import logging | |
| import traceback | |
| from datetime import datetime | |
| import re | |
| logging.basicConfig(level=logging.DEBUG) |
| import gevent | |
| from gevent import monkey, queue | |
| monkey.patch_all() | |
| import urllib2 | |
| from time import sleep | |
| import traceback | |
| import logging |
| import gevent | |
| from gevent import monkey, queue | |
| monkey.patch_all() | |
| import urllib2 | |
| from time import sleep | |
| import traceback | |
| import logging |
| # -*- coding: utf-8 -*- | |
| """ | |
| proxy.py | |
| ~~~~~~~~ | |
| get proxy list from http://pachong.com | |
| """ | |
| from bs4 import BeautifulSoup | |
| import requests |
| from nonlocal_ import nonlocal_ | |
| def foo(): | |
| a = 1 | |
| def bar(): | |
| nonlocal_('a') | |
| a = 2 | |
| bar() | |
| return a |
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |