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
-- chargen.lua | |
-- RFC 864 (https://tools.ietf.org/html/rfc864) | |
-- Init character table | |
local chars = {} | |
for j = 0x21, 0x7E do table.insert(chars, string.char(j)) end | |
-- Main loop | |
local size, i, p = #chars, 0, ngx.print | |
while true do |
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
Description='A basic static ethernet connection' | |
Interface=ens3 | |
Connection=ethernet | |
IP=static | |
Address=('111.112.113.114/255.255.254.0') | |
Gateway='111.112.113.1' | |
DNS=('108.61.10.10') | |
## For IPv6 autoconfiguration | |
#IP6=stateless |
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
$ httping -c 3 qiita.com | |
PING qiita.com:80 (/): | |
connected to 54.248.127.202:80 (386 bytes), seq=0 time=579.29 ms | |
connected to 54.248.127.202:80 (386 bytes), seq=1 time=530.49 ms | |
connected to 54.248.127.202:80 (386 bytes), seq=2 time=533.82 ms | |
--- http://qiita.com/ ping statistics --- | |
3 connects, 3 ok, 0.00% failed, time 4645ms | |
round-trip min/avg/max = 530.5/547.9/579.3 ms |
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
pkgbase=paho-mqtt | |
pkgname=(python-$pkgbase python2-$pkgbase) | |
package_python-paho-mqtt() { | |
pkgdesc="Python client library for MQTT v3.1 and v3.1.1" | |
depends=('python') | |
cd $srcdir/$pkgbase-$pkgver | |
python setup.py install --root="$pkgdir" --optimize=1 | |
} |
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 |
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/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
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
;; -*- 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
#!/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 \ |