Skip to content

Instantly share code, notes, and snippets.

View itoonx's full-sized avatar
👻
Deep

Makkhawan Voraboot itoonx

👻
Deep
View GitHub Profile
@itoonx
itoonx / gist:f616e81c5971b694dea31fec4b2b8cb9
Created March 6, 2018 05:55
Etherscan Verification Task
Fill in the Token Update Request Form
Note: Your request might not be processed if it violates any of the following:
1. Safe-to-visit website
2. Clear and concise information about project/token on the website
* Requester Name
* Requester Email Address
* Contract Address
* Official Site URL
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
@itoonx
itoonx / gist:5716a9acac354b1dd0a6541eae3eb647
Created March 2, 2018 23:04
Example for handle job to every 5 minute
<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Carbon\Carbon;
@itoonx
itoonx / gist:ddccbab95f2f3babf4faf5ae3babc468
Created March 2, 2018 14:56
Nginx - redirect http to https
server {
listen 80;
server_name www.domain.com domain.com;
# redirects both www and non-www to ssl port with http (NOT HTTPS, forcing error 497)
return 301 http://domain.com$request_uri;
}
server {
listen 433 ssl http2 default_server;
@itoonx
itoonx / gist:ee8f72c3393914cbb86122e2e0ddfef6
Created February 21, 2018 04:48
Please check your gas amount : may be misleading
I just started learning solidity development, and when I started writing my own Smart Contract - I came across this error.
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: The contract code couldn't be stored, please check your gas amount.
truffle compile worked OK, but truffle migrate gave this error.
Usually, it is said that is there is a loop (infinite loop, due to logic error) one usually "runs out of gas"
If you purely look at the error, it seems "logical" i.e. there is no compilation error, but when deploying the smart contract you "ran out of gas"
{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"difficulty": "200000000",
"gasLimit": "2100000",
"alloc": {
@itoonx
itoonx / improved-lnd-bitcoind-install.md
Created January 28, 2018 07:09 — forked from bretton/improved-lnd-bitcoind-install.md
updated & improved guide to installing LND, Bitcoind, on Ubuntu 16.04 Server on testnet
คำสั่ง หน้าที่ รายละเอียด
File/Directory Basics
ls List files แสดงรายชื่อไฟล์และไดเร็คทอรี่
cp Copy files สำเนาไฟล์
mv Rename files เปลี่ยนชื่อไฟล์
rm Delete files ลบไฟล์
ln Link files สร้างไฟล์เชื่อมโยง
cd Change directory ย้ายไปยังไดเร็คทอรี่ที่ต้องการ
pwd Print current directory name แสดงชื่อไดเร็คทอรี่ปัจจุบัน
mkdir Create directory สร้างไดเร็คทอรี่ใหม่
{
"sync.gist": "",
"sync.version": 242,
"sync.lastUpload": "2016-12-27T16:34:19.308Z",
"sync.autoDownload": false,
"sync.autoUpload": true,
"sync.lastDownload": "2016-12-27T15:58:35.760Z",
"sync.showSummary": true,
"sync.forceDownload": true,
"sync.workspaceSync": false,
UserID: 13169 | Power : 1974.63242285
UserID: 2772 | Power : 1274.84984463
UserID: 4335 | Power : 680.00000000
UserID: 30654 | Power : 322.66876297
UserID: 3121 | Power : 290.28352480
UserID: 9455 | Power : 252.07596360
UserID: 23882 | Power : 205.56877431
UserID: 13782 | Power : 185.01529797
UserID: 34774 | Power : 144.91841217
UserID: 30761 | Power : 143.51126452