- 点击右上角的
Download ZIP
下载该Gist中的相关配置文件。 - 下载 beam节点源代码 的Beam源代码。
如果要使用git获取源代码,请检出
cold_wallet
这个tag。注意某些分支或tag可能由于equihash
参数不同,导致GPU Miner
无法挖矿。 参考命令:
git clone https://github.com/BeamMW/beam.git
<?php | |
header('Content-Type: application/json'); | |
$url = 'http://localhost:xxxx/'; | |
$auth = 'xxxx'; | |
$userPw = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; | |
if (!hash_equals($auth, $userPw)) { | |
die('{"error":"Auth failed!"}'); |
execve("/bin/nc", ["nc", "-l", "4444"], [/* 15 vars */]) = 0 | |
brk(NULL) = 0xd42000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcaae0b0000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=20683, ...}) = 0 | |
mmap(NULL, 20683, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcaae0b7000 | |
close(3) = 0 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <stdlib.h> | |
#define BUFFER_SIZE 1024 |
function now() { | |
var d = new Date(); | |
return ('0' + d.getHours()).substr(-2) + ':' + ('0' + d.getMinutes()).substr(-2) + ':' + ('0' + d.getSeconds()).substr(-2); | |
} | |
function sleep(t, n) { | |
return new Promise(function (resolve) { | |
console.log('begin: ' + n + ' sleep ' + t + 'ms, ' + now()); | |
setTimeout(function () { | |
console.log('end: ' + n + ' slept ' + t + 'ms, ' + now()); |
From 1c3d1b105a924a5ec7f76df155806c634c11fea7 Mon Sep 17 00:00:00 2001 | |
From: SwimmingTiger <[email protected]> | |
Date: Thu, 30 Aug 2018 00:04:49 +0800 | |
Subject: [PATCH] Fix the icon on the world map disappears when mouse over a | |
totem. | |
--- | |
Paku_Totems.lua | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) |
From 4ab4be88a21e3807141a4ac20f4c7a9480a82391 Mon Sep 17 00:00:00 2001 | |
From: SwimmingTiger <[email protected]> | |
Date: Thu, 30 Aug 2018 01:16:21 +0800 | |
Subject: [PATCH] add i18n support; add locale: zhCN. | |
--- | |
Libs/AceLocale-3.0/AceLocale-3.0.lua | 137 +++++++++++++++++++++++++++++++++++ | |
Libs/AceLocale-3.0/AceLocale-3.0.xml | 4 + | |
Locales/zhCN.lua | 20 +++++ | |
Paku_Totems.lua | 36 ++++----- |
Download ZIP
下载该Gist中的相关配置文件。cold_wallet
这个tag。注意某些分支或tag可能由于equihash
参数不同,导致GPU Miner
无法挖矿。
参考命令:git clone https://github.com/BeamMW/beam.git
// From https://gist.github.com/wallrat/3059639 | |
package main | |
import ( | |
"net" | |
"fmt" | |
"io" | |
"os" | |
) | |
func main() { | |
if len(os.Args) != 3 { |
package main | |
import ( | |
"crypto/md5" | |
"encoding/hex" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" |
#!/usr/bin/env php | |
<?php | |
function usage() { | |
global $argv; | |
die("Usage: $argv[0] <branch1> <branch2>\n"); | |
} | |
if ($argc < 3) { | |
usage(); | |
} |