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
#coding: utf-8 | |
Earthquake.init do | |
config[:notify] = [/ruby/i, /#earthquake.gem/i] | |
output do |item| | |
next unless item["stream"] | |
if config[:notify].any?{|pattern| pattern =~ item["text"]} | |
notify item["text"], :title => item["user"]["screen_name"] | |
end |
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 perl | |
use strict; | |
use warnings; | |
use Compress::Zlib; | |
sub get_unpackdata{ | |
my $infile = $_[0]; | |
my $code; | |
open IN, " < $infile "; | |
binmode(IN); |
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
pkgname=cpuminer-opt | |
pkgver=3.8.3.3 | |
pkgrel=1 | |
pkgdesc="Optimized multi algo CPU miner" | |
arch=('i686' 'x86_64') | |
url="https://github.com/JayDDee/cpuminer-opt" | |
depends=('curl' 'jansson') | |
license=('GPL') | |
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/JayDDee/cpuminer-opt/archive/v${pkgver}.tar.gz") | |
md5sums=('d4b5852e5698ed73f827c2c3c83c27f6') |
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
version: '2' | |
services: | |
kotod: | |
image: fkfk/koto | |
environment: | |
RPCUSER: user | |
RPCPASSWORD: <your_password> | |
RPCALLOWIP: "172.0.0.0/8" | |
volumes: | |
- kotod_data:/var/lib/koto/data |
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
version: '2' | |
services: | |
monacoind: | |
image: fkfk/monacoin-nowallet:0.15.1 | |
environment: | |
RPCUSER: user | |
RPCPASSWORD: <your_password> | |
RPCALLOWIP: "172.0.0.0/8" | |
volumes: | |
- monacoind_data:/data |
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
<html> | |
<head></head> | |
<body> | |
<a href="vipstarcoin:VYLPUGaj6WzXTsbcyigAYGV7TNWgyAyNTx?amount=1.00000000&label=BIP21%20URI%20Scheme%20test&message=hello%2C%20VIPSTARCOIN%21">ここをクリックすると製作者さんに1VIPSが!!!!</a> | |
</body> | |
</html> |
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 | |
curl -s -L "http://www.codesourcery.com/sgpp/lite/arm/portal/package5353/public/arm-none-eabi/arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2" | bunzip2 -d --stdout | sudo tar -C /opt -xf - |
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
let fn = () => { | |
let array = [1, 2, 3, 4, 5] | |
console.log(array) | |
array.reverse() | |
} | |
fn() // => [1, 2, 3, 4, 5] | |
fn() // I expect to be `[1, 2, 3, 4, 5]`, but in the case of Safari 12 it will be `[5, 4, 3, 2, 1]` |
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
/** | |
* fnBの前に実行したい処理 | |
* コールバックを引数として取る | |
**/ | |
function fnA (successCb, failedCb) { | |
let result = foo() | |
if (result) { | |
successCb(result) | |
} else { | |
failedCb(new Error('fnA error')) |
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
const Socket = require('json-rpc-tls').Socket; | |
Socket.tlsSocket('electrum-mona.nope.work', 50002, { | |
rejectUnauthorized: false | |
}).then(async (socket) => { | |
socket.setEncoding('utf8') | |
socket.setKeepAlive(true, 0) | |
socket.setNoDelay(true) | |
const banner = await Socket.request(socket, 1, 'server.banner', []) |
OlderNewer