Skip to content

Instantly share code, notes, and snippets.

View snj33v's full-sized avatar
🏠
Working from home

Sanjeev snj33v

🏠
Working from home
  • Tamil Nadu, India
View GitHub Profile
{"height":"8876077","txhash":"23C0715BADAFEA5576B1C1D24B1E99901F406EA4947350397E57B10A07688D41","codespace":"","code":0,"data":"0A260A242F636F736D7761736D2E7761736D2E76312E4D736745786563757465436F6E7472616374","raw_log":"[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"persistence12z46dq46hprpyv8j4k7xtqk8gdx7leqzgan2pjpdaktx4ukj53lqmg5t7a\"},{\"key\":\"amount\",\"value\":\"1000000uxprt\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"persistence1lszhvjjmpz8q9hcwdx6thpavsnnx0fv7f8puv5\"},{\"key\":\"amount\",\"value\":\"1000000uxprt\"}]},{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"persistence12z46dq46hprpyv8j4k7xtqk8gdx7leqzgan2pjpdaktx4ukj53lqmg5t7a\"},{\"key\":\"_contract_address\",\"value\":\"persistence1qzgwr9nzcq4cpm54uls4xn6ls6jqflvvlpqqc667w2fq4am72pmqzfyd62\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"val
@snj33v
snj33v / alsa-info
Created December 1, 2021 13:41
alsa-info
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.5.0
!!################################
!!Script ran on: Wed Dec 1 13:39:52 UTC 2021
!!Linux Distribution
!!------------------
[
{
"name": "Cosmos",
"logo": "https://gist.githubusercontent.com/kwunyeung/8be4598c77c61e497dfc7220a678b3ee/raw/8178b6bcce1d1563bac10f8a150c713724a742f1/cosmoshub.svg?sanitize=true",
"links": [
{
"name": "pstake",
"chain_id": "pstake-staking-gala",
"url": "https://cosmos.bigdipper.live"
}
useradd --no-create-home --shell /bin/false node_exporter
curl -fsSL https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz | tar -zxvf - -C /usr/local/bin --strip-components=1 node_exporter-1.0.1.linux-amd64/node_exporter; chown node_exporter:node_exporter /usr/local/bin/node_exporter
mkdir -p /etc/node_exporter /var/lib/node_exporter
sudo chown -R node_exporter:node_exporter /var/lib/node_exporter
sudo tee /etc/systemd/system/node_exporter.service <<"EOF"
[Unit]
Description=Node Exporter
[Service]
User=node_exporter
sudo apt-get remove -y docker docker-engine docker.io containerd runc
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get -y install docker-ce docker-ce-cli containerd.io
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo gpasswd -a $USER docker
@snj33v
snj33v / mapview.jsx
Last active May 28, 2018 11:41
public
class MapView extends React.Component {
constructor(props) {
super(props)
this.state = {
center: 0
}
}
static getDerivedStateFromProps (props, state) {
// both props.right and props.left are simple numerical values
let feat = props.right+ props.left
@snj33v
snj33v / launch.json
Created April 24, 2018 10:05
vscode chromium launch
{
"version": "0.2.0",
"configurations": [{
"name": "Chromium",
"type": "chrome",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium",
"userDataDir": "/tmp/vscode-chrome-debug",
"runtimeArgs": [
"--temp-profile"
@snj33v
snj33v / settings.json
Last active April 24, 2018 10:03
vscode config
{
"window.menuBarVisibility": "toggle",
"telemetry.enableCrashReporter": true,
"telemetry.enableTelemetry": true,
"editor.fontFamily": "Fira Code",
"workbench.colorTheme": "Abyss",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.tabSize": 2,
"editor.insertSpaces": false,

Keybase proof

I hereby claim:

  • I am snj33v on github.
  • I am snj33v (https://keybase.io/snj33v) on keybase.
  • I have a public key ASBJNtMbQFl7ND2cjXijTagGFLoMxbqVWMj1EZZ6Qu2v1Qo

To claim this, I am signing this object: