Skip to content

Instantly share code, notes, and snippets.

View ety001's full-sized avatar
🎯
Focusing

ety001 ety001

🎯
Focusing
View GitHub Profile
@h1code2
h1code2 / openwrt-lede.md
Last active June 7, 2024 14:03
[frp设置自动自动] 不同平台设置frp自动启动 #frp #openwrt

给你的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,
@ety001
ety001 / docker_lnmp.sh
Last active November 10, 2018 13:43
部署lnmp docker环境常用命令
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
@mcfarhat
mcfarhat / create_and_claim_hf20.html
Last active April 25, 2021 08:32
Script which enables using the new HF20 claim and create discounted accounts operations available to any user with enough RCs
<html>
<head>
<script src="https://unpkg.com/dsteem@0.10.0/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();
@SERVICOIN
SERVICOIN / ETHINC
Last active June 25, 2019 01:55
CONTRACT
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
@ety001
ety001 / xxx.ini
Created November 16, 2017 01:19
supervisord config
[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
@AfzalivE
AfzalivE / asoundrc
Created November 14, 2017 01:16
Ps3 eye + 3.5mm speaker asoundrc
# 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;