I hereby claim:
- I am turbo-ele on github.
- I am turboele (https://keybase.io/turboele) on keybase.
- I have a public key ASC3H4NV9Sfcv5D7FxtqlXJBiM_c9OMna4u8sD1Y0OvGugo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ## shell script: | |
| # HOST=$1 | |
| # scp -r ~/kubernetes/rename_log_symlinks.py $HOST:/home/admin/ | |
| # ssh $HOST "sudo python rename_log_symlinks.py" | |
| # ssh $HOST "rm rename_log_symlinks.py" | |
| import os | |
| import re | |
| import shutil |
| # vi: set fileencoding=utf-8 | |
| # -*- coding: utf-8; -*- | |
| import sys | |
| import argparse | |
| from crate import client | |
| def main(): | |
| parser = argparse.ArgumentParser( |
| #!/bin/sh | |
| CDPATH="" | |
| SCRIPT="$0" | |
| # SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path. | |
| while [ -h "$SCRIPT" ] ; do | |
| ls=`ls -ld "$SCRIPT"` | |
| # Drop everything prior to -> | |
| link=`expr "$ls" : '.*-> \(.*\)$'` |
| #!/bin/sh | |
| # OPTIONS: | |
| # -d: start the daemon in the background | |
| # -p <filename>: log the pid to a file (useful to kill it later) | |
| # -v: print crate version to stdout | |
| # -h: print usage information | |
| # -D: set a java system property value | |
| # -C: set a Crate property value | |
| # -X: set a nonstandard java option |
| <?xml version="1.0" ?> | |
| <container xmlns="http://symfony.com/schema/dic/services" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | |
| <services> | |
| <service id="acme_newsletter.newsletter_manager" class="Acme\Bundle\NewsletterBundle\Manager\NewsletterManager"> | |
| <argument type="service" id="mailer" /> | |
| <argument type="service" id="session" /> |