给你的OpenWRT/LEDE 添加frp开机服务
添加PROC服务文件:
vi /etc/init.d/frpc
配置文件内容:
#!/bin/sh /etc/rc.common
给你的OpenWRT/LEDE 添加frp开机服务
添加PROC服务文件:
vi /etc/init.d/frpc
配置文件内容:
#!/bin/sh /etc/rc.common
* * * * * docker ps -a -q -f status=exited | xargs --no-run-if-empty docker rm -v | |
* * * * * docker images -f "dangling=true" -q | xargs --no-run-if-empty docker rmi | |
* * * * * docker volume ls -qf dangling=true | xargs --no-run-if-empty docker volume rm |
{ | |
"limits": { | |
"blacklist_accounts": [ | |
"non-steemit" | |
] | |
}, | |
"upstreams": [ | |
{ | |
"name": "steemd", | |
"translate_to_appbase": true, |
{ | |
"limits": { | |
"blacklist_accounts": [ | |
"non-steemit" | |
] | |
}, | |
"upstreams": [ | |
{ | |
"name": "steemd", | |
"translate_to_appbase": true, |
mkdir -p /data/wwwroot | |
mkdir -p /data/logs | |
mkdir -p /data/mysql | |
docker network create --gateway "172.20.0.1" --subnet "172.20.0.0/16" lnmp | |
# nginx | |
docker run -itd --name nginx nginx | |
docker cp nginx:/etc/nginx /etc |
<html> | |
<head> | |
<script src="https://unpkg.com/[email protected]/dist/dsteem.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script> | |
jQuery(document).ready(function($){ | |
//hook for action button | |
$('#create_claim').click(function(){ | |
claimCreate(); |
pragma solidity ^0.4.16; | |
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } | |
contract TokenERC20 { | |
// Public variables of the token | |
string public name; | |
string public symbol; | |
uint8 public decimals = 18; | |
// 18 decimals is the strongly suggested default, avoid changing it |
[program:xxx] | |
command = xxx | |
autostart = true | |
startsecs = 5 | |
autorestart = true | |
user = root | |
stdout_logfile_maxbytes = 20MB | |
stdout_logfile_backups = 20 | |
stdout_logfile = /var/log/supervisor/frps.log | |
stderr_logfile = /var/log/supervisor/frps_err.log |
# ps3 eye + 3.5mm speaker Raspberry Pi | |
## Suggested by http://julius.sourceforge.jp/forum/viewtopic.php?f=9&t=66 | |
## Modified by https://github.com/afzalive | |
pcm.jack { | |
type hw | |
card ALSA | |
} | |
pcm.array { | |
type hw | |
card CameraB409241 |
pragma solidity ^0.4.15; | |
contract MyERCToken { | |
// Create a table so that we can map addresses | |
// to the balances associated with them | |
mapping(address => uint256) balances; | |
// Create a table so that we can map | |
// the addresses of contract owners to | |
// those who are allowed to utilize the owner's contract | |
mapping(address => mapping (address => uint256)) allowed; |