This file contains hidden or 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 axios = require('axios') | |
const execSync = require('child_process').execSync; | |
axios.post('http://192.168.8.1/rpc', { | |
method: 'challenge', | |
id: '0', | |
params: { | |
username: 'root' | |
} | |
}).then((pkg) => { |
This file contains hidden or 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
2023-09-28T12:45:10+02:00 info new client connecting - XXX {"component": "stratum", "address": ":5555"} | |
2023-09-28T12:45:10+02:00 info client subscribed {"component": "stratum", "address": ":5555", "client": "XXX", "client_id": 1, "context": "{\"RemoteAddr\":\"86.247.219.6\",\"WalletAddr\":\"\",\"WorkerName\":\"\",\"RemoteApp\":\"IceRiverMiner-v1.1\",\"Id\":1,\"Logger\":{},\"State\":{\"Jobs\":{},\"JobLock\":{}},\"Extranonce\":\"0000\"}"} | |
2023-09-28T12:45:10+02:00 info client authorized, address: kaspa:qr2gxmun87mc8wt8adegy6fulvpfdjgsa8zcdzr2utra3jv4s8txkq9 {"component": "stratum", "address": ":5555", "client": "86.247.219.6", "client_id": 1, "worker": "", "addr": "kaspa:qr2gxmun87mc8wt8adegy6fulvpfdjgsa8zcdxyulvzzr2utra3jv4s8txkq9"} | |
2023-09-28T12:45:11+02:00 info Setting client diff: 2048.000000 {"component": "stratum", "address": ":5555", "client": "XXX", "client_id": 1, "worker": "", "addr": "kaspa:qr2gxmun87mc8wt8adegy6fulvpfdjgsa8zcdxyulvzzr2utra3jv4s8txkq9"} | |
2023-09-28T12:45:11+02:00 info changing diff |
This file contains hidden or 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
services: | |
ks_bridge: | |
build: | |
context: . | |
no_cache: true | |
container_name: ks_bridge | |
restart: unless-stopped | |
user: "0" | |
command: | |
- '-stats=false' |
This file contains hidden or 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
ERROR: /home/envision/.cache/bazel/_bazel_envision/a7712cf518797c369fb99e025707a1e7/external/upb/BUILD:57:11: Compiling upb/upb.c failed: (Exit 1): clang failed: error executing command /home/envision/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang -MD -MF bazel-out/k8-opt/bin/external/upb/_objs/upb/upb.pic.d ... (remaining 43 arguments skipped) | |
external/upb/upb/upb.c:192:10: error: defining a type within 'offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions] | |
n &= ~(upb_alignof(upb_arena) - 1); | |
^~~~~~~~~~~~~~~~~~~~~~ | |
external/upb/upb/upb.c:183:37: note: expanded from macro 'upb_alignof' | |
#define upb_alignof(type) offsetof (struct { char c; type member; }, member) | |
^~~~~~ | |
/home/envision/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/lib/clang/16/include/stddef.h:111:43: note: expanded from macro 'offsetof' | |
#define offsetof(t, d) __builtin_offsetof(t, d) | |
^ |
This file contains hidden or 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 bash | |
# from https://betterdev.blog/minimal-safe-bash-script-template/ | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { |
This file contains hidden or 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
#include "LoRaWan_APP.h" | |
#include "Arduino.h" | |
/* | |
* set LoraWan_RGB to Active,the RGB active in loraWan | |
* RGB red means sending; | |
* RGB purple means joined done; | |
* RGB blue means RxWindow1; | |
* RGB yellow means RxWindow2; | |
* RGB green means received done; |
This file contains hidden or 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
❯ pm2 start slow.js --log-date-format "HH:mm:ss DD" --attach | |
[PM2] Starting /home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js in fork_mode (1 instance) | |
[PM2] Done. | |
⇆ PM2+ activated | Instance Name: workstation-892f | Dash: https://app.pm2.io/#/r/lsnncs6wdbcsrsw | |
┌─────┬─────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ | |
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ | |
├─────┼─────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ | |
│ 0 │ slow │ default │ 5.0.0 │ fork │ 7344 │ 0s │ 0 │ online │ 0% │ 17.6mb │ unitech │ disabled │ | |
└─────┴─────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ | |
[PM2][WARN] Current process list is not synchronized with saved list. |
This file contains hidden or 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
# deb http://mirrors.online.net/ubuntu bionic main restricted | |
# deb http://mirrors.online.net/ubuntu bionic-updates main restricted | |
# deb http://security.ubuntu.com/ubuntu bionic-security main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://mirrors.online.net/ubuntu bionic main restricted | |
# deb-src http://mirrors.online.net/ubuntu bionic main restricted |
This file contains hidden or 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
my_dir="`dirname \"$0\"`" | |
my_dir="`( cd \"$my_dir\" && pwd )`" | |
if [ -z "$my_dir" ] ; then | |
exit 1 | |
fi | |
. $my_dir/utilities.sh | |
set_shutdown_time '??' '22' '38' | |
set_startup_time '??' '22' '39' '00' |
This file contains hidden or 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
var udp = require('dgram'); | |
// -------------------- udp client ---------------- | |
var buffer = require('buffer'); | |
// creating a client socket | |
var client = udp.createSocket('udp4'); | |
//buffer msg |
NewerOlder