As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: APPLICATION | |
| # Required-Start: $all | |
| # Required-Stop: $network $local_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start the APPLICATION unicorns at boot | |
| # Description: Enable APPLICATION at boot time. | |
| ### END INIT INFO |
| # This installs a PXE boot server. | |
| # | |
| # It's based on https://help.ubuntu.com/community/DisklessUbuntuHowto. | |
| # It's been used with ubuntu-10.10-server-amd64.iso and ubuntu-10.10-server-i386.iso. | |
| # | |
| # It requires two network cards. One for access to the outside world and one | |
| # for a private network of PXE clients. I've choosen this setup to not cause problems | |
| # with DHCP on the normal network. | |
| # | |
| # It also requires that you have a second partition mounted on /nfsroot. |
| ## Auto-restart PHP when it's returning errors | |
| # | |
| # Make sure that http://localhost/test.php is an actual PHP script. If it starts returning | |
| # 500 errors, restart the PHP-FPM service | |
| * * * * * /usr/bin/curl --head -sf http://localhost/test.php -o /dev/null || /usr/sbin/service php5-fpm restart |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Time-stamp: <2012-03-30 Fri 16:56 README.md>
Author....: 'Mash (Thomas Herbert)
Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration.
Please see http://toshine.org/etc for full article.
| <VirtualHost *> | |
| ServerName example.com | |
| WSGIDaemonProcess www user=max group=max threads=5 | |
| WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi | |
| <Directory /home/max/Projekte/flask-upload> | |
| WSGIProcessGroup www | |
| WSGIApplicationGroup %{GLOBAL} | |
| Order deny,allow |
| --- | |
| - hosts: all | |
| gather_facts: yes | |
| ## | |
| # Create the password then create the user | |
| # | |
| - name: Users | Generate password for new user | |
| shell: makepasswd --chars=20 | |
| register: user_password |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| packlist=`mktemp` | |
| git gc 2>&1 | | |
| grep '^warning: packfile .* cannot be accessed$' | | |
| cut -d' ' -f3 | | |
| sort -u > $packlist | |
| packs_count=`wc -l < $packlist` | |
| temp=`mktemp` |