根据启动Bash Shell的方式不同,对Shell有两种分类方式
根据Shell的启动方式不同,可以将Shell分为
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # author: Rolando Espinoza La fuente | |
| from scrapy.conf import settings | |
| from scrapy.core import signals | |
| from scrapy.core.manager import scrapymanager | |
| from scrapy.item import Item, Field | |
| from scrapy.selector import HtmlXPathSelector | |
| from scrapy.spider import BaseSpider |
| #!/bin/sh | |
| ### get news from your friends at renren.com | |
| # Copyright: (c) 2009,2010 Jakukyo Friel <[email protected]> | |
| # License: GPL v2 | |
| # Config area | |
| # We put everything in an hg repo. You should set it up already. | |
| renrepo=$HOME/repo/renren |
| #!/usr/bin/env python | |
| # Usage: | |
| # This script will generate two files(vpnup and vpndown) after executing. | |
| # Do chmod a+x on the two newly created files, and then move them to the | |
| # openvpn config folder. then add the following two lines to the vpn config file: | |
| # up vpnup | |
| # down vpndown | |
| # you might also need 'redirect-gateway' in the config file, if you don't use vpn | |
| # as the default gateway. |
| ctrl-z | |
| bg | |
| touch /tmp/stdout | |
| touch /tmp/stderr | |
| gdb -p $! | |
| # In GDB | |
| p dup2(open("/tmp/stdout", 1), 1) | |
| p dup2(open("/tmp/stderr", 1), 2) |
| # To install the Python client library: | |
| # pip install -U selenium | |
| # Import the Selenium 2 namespace (aka "webdriver") | |
| from selenium import webdriver | |
| # iPhone | |
| driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub') | |
| # Android |
| #!/bin/bash | |
| ##################################### | |
| #Author: Leon Lee # | |
| #email: [email protected] # | |
| #QQ: 730395591 # | |
| #Version: 1.0 # | |
| #Note: If you have some good ideas # | |
| # or advice, please mail me^^ # | |
| ##################################### |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <arpa/inet.h> | |
| #include <netinet/in.h> | |
| #include <signal.h> |
| brew install flac ffmpeg cuetools # ставим нужные пакеты | |
| # скачиваем cuetag.sh скрипт, например отсюда https://github.com/gumayunov/split-cue/blob/master/cuetag | |
| ffmpeg -i 1.ape 1.flac # конвертируем во flac, так как libmac для APE не ставится на osx | |
| cuebreakpoints 1.cue | shnsplit -o flac 1.flac #нарезаем на треки | |
| cuetag 1.cue split-track*.flac #прописываем тэги (cuetag.sh ставится отдельно отдельно) | |
| #конвертируем в ALAC | |
| for f in split-track*.flac | |
| do |
| # /etc/nginx/sites-available/fanfou.shellex.info | |
| # 这儿假设的域名是 fanfou.shellex.info | |
| # 请替换为实际的域名 | |
| server { | |
| resolver 8.8.8.8; | |
| listen 443; | |
| server_name fanfou.shellex.info; | |
| ssl on; |