To pupils: all binaries can be downloaded http://pan.baidu.com/s/1ntCChyp
After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.
For programmers:
| #! /bin/sh | |
| # ================================================================== | |
| # ______ __ _____ | |
| # /_ __/___ ____ ___ _________ _/ /_ /__ / | |
| # / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
| # / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
| #/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
| # Multi-instance Apache Tomcat installation with a focus | |
| # on best-practices as defined by Apache, SpringSource, and MuleSoft |
| # This requires tmux 2.1. a lot of these settings will error on anything earlier. | |
| # Act like Vim; use h,j,k,l to select panes and move the cursor | |
| set-window-option -g mode-keys vi | |
| bind-key h select-pane -L | |
| bind-key j select-pane -D | |
| bind-key k select-pane -U | |
| bind-key l select-pane -R | |
| # Look good |
To pupils: all binaries can be downloaded http://pan.baidu.com/s/1ntCChyp
After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.
For programmers:
| #!/bin/sh | |
| PROXY_USER=user | |
| PROXY_PASS=password | |
| PROXY_PORT=3128 | |
| # Clear the repository index caches | |
| yum clean all | |
| # Update the operating system |
| # -*- 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 | |
| # | |
| # Copyright (c) 2012 NGMOCO | |
| # Updated by Jesse Sanford <jsanford@ngmoco.com> | |
| # | |
| # Portions taken from debian package by | |
| # Javier Fernandez-Sanguino <jfs@debian.org> | |
| # | |
| # This is free software; you may redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as |
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)