This file contains 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
git config --global url.ssh://[email protected]/.insteadOf https://github.com/ |
This file contains 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
func (c Client) SelectJSON(query string) ([]byte, error) { | |
db, err := sql.Open(driver, c.DSN) | |
if err != nil { | |
return nil, err | |
} | |
defer db.Close() | |
rows, err := db.Query(query) | |
if err != nil { | |
return nil, err | |
} |
This file contains 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
import ( | |
"os" | |
"encoding/json" | |
"log" | |
"html/template" | |
"github.com/gorilla/handlers" | |
"github.com/gorilla/mux" | |
) | |
var ( | |
rtr *mux.Router |
This file contains 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
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreiavkirvzv76fpyg6dgt4xv5euczn5chtc7kdtkvxulp7oplnisbg4 ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains 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
if [ ! "$(which node)" ]; then | |
sudo yum makecache fast &> /dev/null | |
if [ ! "$(yum repolist all|grep -i epel)" ]; then | |
sudo echo "[epel]" > /etc/yum.repos.d/epel.repo | |
sudo echo "name=EPEL" >> /etc/yum.repos.d/epel.repo | |
sudo echo "baseurl=$EPEL_BASE" >> /etc/yum.repos.d/epel.repo | |
sudo echo "gpgcheck=0" >> /etc/yum.repos.d/epel.repo | |
fi | |
sudo yum -y install nodejs | |
fi |