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
--- shunit2 2011-05-01 20:10:33.000000000 +0000 | |
+++ shunit2-color 2015-09-03 11:23:08.854549999 +0000 | |
@@ -829,18 +829,18 @@ | |
&& _shunit_skipped_="skipped=${__shunit_assertsSkipped}" | |
if [ ${_shunit_ok_} -eq ${SHUNIT_TRUE} ]; then | |
- _shunit_msg_='OK' | |
+ _shunit_msg_="\033[32;1mOK\033[0m\n" | |
[ -n "${_shunit_skipped_}" ] \ | |
&& _shunit_msg_="${_shunit_msg_} (${_shunit_skipped_})" |
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 | |
HTTPD=apache | |
ps aux | grep "$HTTPD" | awk '{mem+=$6} END{ print "Average: " (mem/NR) "MB" }' |
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
# do after installation of gawk 4.1.3 (to /usr/local/bin/gawk) | |
sudo update-alternatives --install /usr/bin/awk awk /usr/local/bin/gawk 15 |
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
git clone https://github.com/letsencrypt/letsencrypt | |
# or | |
wget https://github.com/letsencrypt/letsencrypt/archive/master.zip | |
unzip master.zip | |
cd letsencrypt |
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 | |
# Let's encryptから入手した fullchain.pem の場所 | |
KEY=/etc/letsencrypt/live/shield.jp/fullchain.pem | |
# CT情報の保存先 | |
SCTS_DIR=/etc/letsencrypt/live/shield.jp/scts | |
# ct-submitコマンド | |
CTSUBMIT=/usr/local/bin/ct-submit | |
echo 1 | |
sudo sh -c "$CTSUBMIT ct.googleapis.com/aviator \ |
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
;; -*- mode:lisp; package:markdown-mode -*- | |
;; markdown.l ( http://www.geocities.jp/kiaswebsite/xyzzy/markdown.html ) | |
;; Rev: 227 を元に改変 | |
;; | |
;; License | |
;; ======= | |
;; | |
;; Copyright (c) 2011 Yousuke Ushiki <[email protected]> | |
;; Copyright (c) 2005,2006 kia |
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
PKCS11Provider opensc-pkcs11.dll |
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/bash | |
# build_openresty_with_http2_patch.sh | |
# Date: 10-Dec-2015 | |
# Tested with: Ubuntu 14.04 | |
VER=1.9.3.2 | |
OPENRESTY=ngx_openresty-$VER.tar.gz | |
OPENSSL_PATH=/usr/local/src/openssl-1.0.2e | |
# HTTP/2 patch for Nginx |
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
[package] | |
name = "nickel-helloworld-postgres" | |
version = "0.1.0" | |
authors = ["johndoe"] | |
[dependencies] | |
nickel = "*" | |
r2d2 = "*" | |
postgres = "*" | |
openssl = "*" |
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 | |
bfgminer -o stratum+tcp://eu.stratum.bitcoin.cz:3333 -u someuser.worker1 -p 123456789 |