Skip to content

Instantly share code, notes, and snippets.

View Ansen's full-sized avatar
🐶
Working all day

An Ansen

🐶
Working all day
View GitHub Profile
#!/usr/bin/python
# -*- coding : utf-8 -*-
from bs4 import BeautifulSoup
import requests
username = '' # your v2ex username
password = '' # your v2ex password
login_url = 'https://v2ex.com/signin'
home_page = 'https://www.v2ex.com'
#!/bin/bash
# nginx Startup script for the Nginx HTTP Server
# it is v.0.0.2 version.
# chkconfig: - 85 15
# description: Nginx is a high-performance web and proxy server.
# It has a lot of features, but it's not for everyone.
# processname: nginx
# pidfile: /var/run/nginx.pid
# config: /usr/local/nginx/conf/nginx.conf
nginxd=/usr/local/nginx/sbin/nginx