This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*filter | |
# Allow all loopback (lo0) traffic and reject traffic | |
# to localhost that does not originate from lo0. | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT ! -i lo -s 127.0.0.0/8 -j REJECT | |
# Allow ping. | |
-A INPUT -p icmp -m state --state NEW --icmp-type 8 -j ACCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias what_i_did_today='git log --pretty="%s" --author="Roc Yu" --no-merges --since="15 hours ago" | tail -r' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/ecdsa" | |
"encoding/hex" | |
"fmt" | |
"log" | |
"github.com/ethereum/go-ethereum/common/hexutil" | |
"github.com/ethereum/go-ethereum/crypto" |
OlderNewer