Skip to content

Instantly share code, notes, and snippets.

View fogonthedowns's full-sized avatar
👋

JZ fogonthedowns

👋
View GitHub Profile
@fogonthedowns
fogonthedowns / gist:64b51103a2aed724d5120f98dd045f01
Created February 13, 2023 23:19
use awk to print the first column, then sort then count repeated lines
cat .file | awk -F "," '{ print $1 }' |sort| uniq -c
@fogonthedowns
fogonthedowns / keybase.md
Created February 10, 2023 00:59
keybase.md

Keybase proof

I hereby claim:

  • I am fogonthedowns on github.
  • I am fogonthedowns (https://keybase.io/fogonthedowns) on keybase.
  • I have a public key whose fingerprint is 9AB0 8768 B1A5 C99D 843D EB9C FBB6 C205 6AA7 496A

To claim this, I am signing this object:

@fogonthedowns
fogonthedowns / btree.go
Last active April 15, 2020 19:18
Height Of Binary Tree in Go
package main
import (
"fmt"
)
type Node struct {
Value int
Left *Node
Right *Node
@fogonthedowns
fogonthedowns / policy.md
Created October 28, 2019 02:49
AhJale Privacy Policy

Privacy Policy

AhJale built the AhJale app as a Free app. This SERVICE is provided by AhJale at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at AhJale unless otherwise defined in this Privacy Policy.

@fogonthedowns
fogonthedowns / grafana
Created September 23, 2019 17:16
grafana
grep(groupByNode(stats.counts.service.ezpes.prod.request.*.*.rate, 7, 'sum'), '_[^2]\d\d')
@fogonthedowns
fogonthedowns / geth_console.js
Created January 27, 2018 20:39
Geth - Go Ethereum send Tron token (TRX) from local node
trxAbi = [{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"
@fogonthedowns
fogonthedowns / .bash_profile
Created January 14, 2018 18:57
.bash_profile
# colors
PS1='\w\[\033[0;32m\]$( git branch 2> /dev/null | cut -f2 -d\* -s | sed "s/^ / [/" | sed "s/$/]/" )\[\033[0m\] \$ '
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
@fogonthedowns
fogonthedowns / remixSolidityIDE.txt
Last active December 16, 2017 22:06
Web3Deploy for 0x79869786f5053606ed2c1dFF8dB0E5d993a78eDa
var blupeetokenContract = web3.eth.contract([{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"a
@fogonthedowns
fogonthedowns / eth.go
Last active August 19, 2017 20:38
Go Slack Webhook
// webhookUrl "https://hooks.slack.com/services/somehash/somehash/somehash"
package main
import (
"fmt"
"log"
"os"
"os/exec"
"github.com/ashwanthkumar/slack-go-webhook"
)
@fogonthedowns
fogonthedowns / setup.md
Last active November 12, 2018 12:30
nvidia GEFORCE GTX 1070 on Ubuntu 16.04

install cuda

exit ubuntu gui: ctl + alt + f1

stop ubuntu GUI:

sudo service lightdm stop
sudo init 3