Skip to content

Instantly share code, notes, and snippets.

@he426100
he426100 / set-nodejs-timezone.sh
Created March 2, 2022 02:34 — forked from eczn/set-nodejs-timezone.sh
设置 nodejs 运行的时候的系统时区
# https://www.viafitness.com/files/viafit_time_zones.pdf
env TZ='Asia/Shanghai' node
@he426100
he426100 / lotus-worker-c2.service
Created January 1, 2022 01:18 — forked from Wondertan/lotus-worker-c2.service
Lotus C2 Worker `systemd` service.
# /etc/systemd/system/lotus-worker-c2.service
[Unit]
Description=Lotus C2 Worker Service
After=network.target
[Service]
User=lotus # or any other user
ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=false --unseal=false --precommit2=false --commit=true --parallel-fetch-limit 10 --listen 192.168.88.105:3458
Restart=always
RestartSec=10
@he426100
he426100 / lotus-daemon.service
Created January 1, 2022 01:18 — forked from Wondertan/lotus-daemon.service
Lotus Daemon `systemd` Service
# /etc/systemd/system/lotus-daemin.service
[Unit]
Description=Lotus Daemon Service
After=network-online.target
Requires=network-online.target
[Service]
User=lotus # or any other user
ExecStart=/usr/local/bin/lotus daemon
ExecStop=/usr/local/bin/lotus daemon stop
@he426100
he426100 / lotus-miner.service
Created January 1, 2022 01:17 — forked from Wondertan/lotus-miner.service
Lotus Miner `systemd` Service
# /etc/systemd/system/lotus-miner.service
[Unit]
Description=Lotus Miner Service
After=network.target
After=lotus-daemon.service
Wants=lotus-daemon.service
[Service]
User=lotus # or any other user
ExecStart=/usr/local/bin/lotus-miner run
@he426100
he426100 / lotus-worker-pc2.service
Created January 1, 2022 01:17 — forked from Wondertan/lotus-worker-pc2.service
Lotus Worker PC2 `systemd` Service
# /etc/systemd/system/lotus-worker-pc2.service
[Unit]
Description=Lotus PC2 Worker Service
After=network.target
[Service]
User=lotus # or any other user
ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=false --unseal=false --precommit2=true --commit=false --parallel-fetch-limit 10 --listen 192.168.88.102:3456
Restart=always
RestartSec=10
@he426100
he426100 / lotus-worker-pc1.service
Created January 1, 2022 01:17 — forked from Wondertan/lotus-worker-pc1.service
Lotus PC1 Worker `systemd` service.
# /etc/systemd/system/lotus-worker-pc1.service
[Unit]
Description=Lotus PC1 Worker Service
After=network.target
[Service]
User=lotus # or any other user
ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=true --unseal=true --precommit2=false --commit=false --parallel-fetch-limit 10 --listen 192.168.88.106:3456
Restart=always
RestartSec=10
@he426100
he426100 / InviteCode.php
Last active February 5, 2021 16:57 — forked from guanguans/InviteCode.php
InviteCode.php
<?php
declare(strict_types=1);
namespace org;
/**
* Class InviteCode
* 邀请码生成类
* @link https://gist.github.com/guanguans/52b9136e86c1a86ab0d51747e841537d
@he426100
he426100 / aes_ecb_pkcs5.php
Created October 15, 2020 08:57 — forked from CodFrm/aes_ecb_pkcs5.php
PHP对接java的AES/ECB/PKCS5Padding加密方式
<?php
/**
*============================
* author:Farmer
* time:2017/12/19
* blog:blog.icodef.com
* function:加密方式
*============================
*/
@he426100
he426100 / nginx.conf
Created January 8, 2020 12:52 — forked from mjau-mjau/nginx.conf
X3 NGINX config
server {
# Basic NGINX site setup
listen 80;
server_name yourwebsite.com;
# Location where X3 is installed
root /var/www/yourwebsite;
# index.php as index