Skip to content

Instantly share code, notes, and snippets.

import {
BroadcastMode,
coinsFromString,
SecretNetworkClient,
Wallet,
} from "secretjs";
import { BaseAccount } from "secretjs/dist/grpc_gateway/cosmos/auth/v1beta1/auth.pb";
import { AminoWallet } from "secretjs/dist/wallet_amino";
function sleep(ms: number) {
@andy108369
andy108369 / app.js
Created August 20, 2022 14:48 — forked from atmoner/app.js
Akash WebSocket
import WebSocket from 'ws';
const ws = new WebSocket('wss://rpc-akash-ia.notional.ventures/websocket');
ws.on('open', function open() {
console.log('Connected on Akash blockchain from WebSocket');
ws.send(JSON.stringify({
"method":"subscribe",
"params": ["tm.event='NewBlock'"],
"id":"1",
"jsonrpc":"2.0"
@andy108369
andy108369 / ubuntu-2204-remove-snap.md
Created August 17, 2022 07:30 — forked from allisson/ubuntu-2204-remove-snap.md
Ubuntu 22.04 remove snap

Remove snaps

sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge core20
sudo snap remove --purge bare
sudo snap remove --purge snapd
@andy108369
andy108369 / api-error.md
Created July 28, 2022 10:17 — forked from aursu/api-error.md
ACPI Error: AE_NOT_EXIST, Evaluating _PMM (20190816/power_meter-325)

The same problem on an HP server and there is a smarter solution found here: https://www.novell.com/support/kb/doc.php?id=7010449

Instead of disabling sensors in netdata altogether, you can just disable the acpi_power_meter kernel module, which doesn't work anyway on affected HP servers due to a BIOS bug. This way netdata can still get the temperature readings.

This is how you can disable the module immediately:

sudo modprobe -r acpi_power_meter

And this is how you make it permanent: