- 設定書式
- 設定項目は左から「分」「時」「日」「月」「曜日」となっている。
* * * * * [実行コマンド]
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # | |
| #author: rex | |
| #blog: http://iregex.org | |
| #filename tr.py | |
| #created: 2010-08-01 20:24 | |
| #source uri: http://iregex.org/blog/trie-in-python.html | |
| # escape bug fix by fcicq @ 2012.8.19 |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| #!/bin/sh | |
| # | |
| # Copyright (c) 2012 NGMOCO | |
| # Updated by Jesse Sanford <[email protected]> | |
| # | |
| # Portions taken from debian package by | |
| # Javier Fernandez-Sanguino <[email protected]> | |
| # | |
| # This is free software; you may redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as |
| [global] | |
| index-url = https://pypi.mirrors.ustc.edu.cn/simple | |
| trusted-host = pypi.mirrors.ustc.edu.cn | |
| disable-pip-version-check = true | |
| allow-all-external = true | |
| timeout = 120 |
| # -*- coding: utf-8 -*- | |
| """ | |
| An example flask application showing how to upload a file to S3 | |
| while creating a REST API using Flask-Restful. | |
| Note: This method of uploading files is fine for smaller file sizes, | |
| but uploads should be queued using something like celery for | |
| larger ones. | |
| """ | |
| from cStringIO import StringIO |
| #!/bin/sh | |
| PROXY_USER=user | |
| PROXY_PASS=password | |
| PROXY_PORT=3128 | |
| # Clear the repository index caches | |
| yum clean all | |
| # Update the operating system |
| #!/usr/bin/env zsh | |
| local LAMBDA="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)" | |
| if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi | |
| # Git sometimes goes into a detached head state. git_prompt_info doesn't | |
| # return anything in this case. So wrap it in another function and check | |
| # for an empty string. | |
| function check_git_prompt_info() { | |
| if git rev-parse --git-dir > /dev/null 2>&1; then |