Skip to content

Instantly share code, notes, and snippets.

View stablexbt's full-sized avatar
🎯
Focusing

Abhi stablexbt

🎯
Focusing
View GitHub Profile
@stablexbt
stablexbt / ssl.md
Created February 12, 2026 12:35
SSL certificate with certbot
@stablexbt
stablexbt / nginx.md
Last active February 12, 2026 12:34
Nginx essentials

NginX

Setup -

# Install
sudo apt-get install nginx

# Enable
sudo ufw allow 'Nginx HTTP'
@stablexbt
stablexbt / git.md
Created February 12, 2026 12:33
Git essentials

Git

  • Clone repo
git clone <repo>
  • Init new git repo
@stablexbt
stablexbt / erc.md
Created February 12, 2026 12:32
solidity and erc standard essentials

Token contract

function name() public view returns (string)
function symbol() public view returns (string)
function decimals() public view returns (uint8)
function totalSupply() public view returns (uint256)

function balanceOf(address _owner) public view returns (uint256 balance)

Keybase proof

I hereby claim:

  • I am 0xabhi on github.
  • I am 0xabhi (https://keybase.io/0xabhi) on keybase.
  • I have a public key ASDAtdiFyczWuS29hiEgJUW26PdDNLEaREjDBxsfqdTJeQo

To claim this, I am signing this object:

@stablexbt
stablexbt / Appocalipsis_audit.md
Last active April 18, 2019 08:56
Contract audit

1. Summary

Appocalipsis smart contract security audit report performed by Cryptoabhi

Audit performed for Bestroi.io

Disclaimer -

The information appearing in this audit is for general discussion purposes only and is not intended to provide legal security guarantees to any individual or entity.

root@8cfa3f87b3c4:/tbears/icx_token# ls
deploy.json irc2 README.md
root@8cfa3f87b3c4:/tbears/icx_token# cat deploy.json
{
"uri": "http://127.0.0.1:9000/api/v3",
"nid": "0x3",
"keyStore": null,
"from": "hxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"to": "cx0000000000000000000000000000000000000000",
"stepLimit": "0x8000000",
root@8cfa3f87b3c4:/tbears/icx_token# tbears txresult 0x96ab2ee414aba505a89ad263d5ab1df715b211ad08f6b87189bde8de8fb95022
Transaction result: {
"jsonrpc": "2.0",
"result": {
"txHash": "0x96ab2ee414aba505a89ad263d5ab1df715b211ad08f6b87189bde8de8fb95022",
"blockHeight": "0x3ef",
"blockHash": "0x36d1e97b5b51de6448dc736e1450bd8b1a312e1611e0497529932eb3a555c735",
"txIndex": "0x0",
"to": "cx0000000000000000000000000000000000000000",
"scoreAddress": "cxf04ad44bbf966642af4c145bc595f1f1452e237d",
{
"version": "0.0.1",
"main_file": "irc2",
"main_score": "SampleToken"
}
root@8cfa3f87b3c4:/tbears/icx_token# tbears deploy -k ../keystore_test1 -c deploy.json irc2/
Input your keystore password:
Send deploy request successfully.
If you want to check SCORE deployed successfully, execute txresult command
transaction hash: 0xe330e9cf2367ee74a83b407a66c91b5ff95840eade4a2c2a4f0d6f4cc22a33d5