This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ p2.py -h | |
usage: p2.py [-h] [-c FILE] [--option1 OPTION1] [--option2 OPTION2] | |
optional arguments: | |
-h, --help show this help message and exit | |
-c FILE, --conf_file FILE | |
Specify config file | |
--option1 OPTION1 some option | |
--option2 OPTION2 some other option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIE5TCCBE6gAwIBAgIKUCQN3QADAAAmcjANBgkqhkiG9w0BAQUFADBGMQswCQYD | |
VQQGEwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzEiMCAGA1UEAxMZR29vZ2xlIElu | |
dGVybmV0IEF1dGhvcml0eTAeFw0xMTA0MTMwOTE2NDVaFw0xMjA0MTMwOTI2NDVa | |
MGYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1N | |
b3VudGFpbiBWaWV3MRMwEQYDVQQKEwpHb29nbGUgSW5jMRUwEwYDVQQDFAwqLmdv | |
b2dsZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANZ+W4zQYGKC3kXU | |
Lw9brzZddICikrOUI0KUeoCZEoauBWdbO5ev7JmM44vHVumiI+xsaXhyv0KfGjk0 | |
V0Jk58okbp3oz2WQTm/9n8NMrDzVNc7Dj7dTk6QDIXNXuY5ufPDQc4HgFAz5B6eT | |
AsNlCorjoNIEJmq43hSV9M8xVCwjAgMBAAGjggK4MIICtDAdBgNVHQ4EFgQUlJdu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIE5TCCBE6gAwIBAgIKZ+eONAADAAAiYzANBgkqhkiG9w0BAQUFADBGMQswCQYD | |
VQQGEwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzEiMCAGA1UEAxMZR29vZ2xlIElu | |
dGVybmV0IEF1dGhvcml0eTAeFw0xMTAyMTYwMDI0NTNaFw0xMjAyMTYwMDM0NTNa | |
MGYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1N | |
b3VudGFpbiBWaWV3MRMwEQYDVQQKEwpHb29nbGUgSW5jMRUwEwYDVQQDFAwqLmdv | |
b2dsZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOpx2otu08SclYvZ | |
EWYpUVI+MYANr6cNadHdpUiUsAWayK+Y6DH6B4EvDrGNgQUEA235HVPexdggkaE3 | |
nbdIjys/cwpPQXsYpuJsz/Cn6B4lkC3FsEHRewHvLvGcWYuORPt5AO4x/aR4AYeo | |
4j/9vje52R4NMFmVjK5x1bMh3FAjAgMBAAGjggK4MIICtDAdBgNVHQ4EFgQUFV05 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
pwd=`pwd` | |
mkdir subrepo | |
cd subrepo | |
git init | |
echo Hello World > README | |
git add README | |
git commit -m "Initial Commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
check_root() | |
{ | |
if [ $UID -ne 0 ]; then | |
echo "Must be root to run setup-fermi-cloud" | |
exit 1 | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""vifm mediaprg for Mac OSX""" | |
from __future__ import print_function | |
import argparse | |
import plistlib | |
import subprocess | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import ConfigParser | |
conf_parser = argparse.ArgumentParser( | |
# Turn off help, so we print all options in response to -h | |
add_help=False | |
) | |
conf_parser.add_argument("-c", "--conf_file", | |
help="Specify config file", metavar="FILE") |
OlderNewer