This file contains hidden or 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 -*- | |
''' | |
argparse の挙動が Python 2.x と Python 3.x で異なる件について | |
本家のチケット: http://bugs.python.org/issue16308 | |
''' | |
import argparse |
This file contains hidden or 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
1 マス目に入る数字 | |
1: 50.973% | |
2: 25.739% | |
3: 12.432% | |
4: 6.030% | |
5: 2.806% | |
6: 1.173% | |
7: 0.504% | |
8: 0.212% | |
9: 0.087% |
This file contains hidden or 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 | |
set -e | |
VERSION=6.2 | |
cd /etc/yum.repos.d | |
cp CentOS-Base.repo{,.orig} | |
sed -i "s/\$releasever/${VERSION}/" CentOS-Base.repo |
This file contains hidden or 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 -*- | |
import os | |
import base64 | |
import urllib | |
import hashlib | |
import hmac | |
import httplib | |
import urlparse |
NewerOlder