Skip to content

Instantly share code, notes, and snippets.

View hashbender's full-sized avatar
👷‍♂️
Buidling

Nick Hansen hashbender

👷‍♂️
Buidling
View GitHub Profile
@hashbender
hashbender / gist:3a4666cce224540ee5e0808dbd2ad0aa
Created October 25, 2017 07:01
127.0.0.1:9980/explorer/hashes/b2009972b7750ea284199e7bcee1ea86d6e65fbea9eb3338e04e0802e3893de6
{
"hashtype": "transactionid",
"block": {
"minerpayoutids": null,
"transactions": null,
"rawblock": {
"parentid": "0000000000000000000000000000000000000000000000000000000000000000",
"nonce": [
0,
0,
@hashbender
hashbender / gist:9d5b44b0187ca8e65b7dd4741456f580
Created October 25, 2017 07:00
127.0.0.1:9980/explorer/blocks/127880
{
"block": {
"minerpayoutids": [
"2f42c7a3603ad416fdc653c16a13ba39e168465571f6cf73b0841addca6e3a01"
],
"transactions": [
{
"id": "e4f5b5e8101721512f1da567cdd0acada4778e117e76a2104f56c641a6f0fb5f",
"height": 127880,
"parent": "00000000000000698a8c9cf614bbae0d867f5097dee652bc8e2075874d8bdd93",
Swift_TransportException in AbstractSmtpTransport.php line 162:
Cannot send message without a sender address
in AbstractSmtpTransport.php line 162
at Swift_Transport_AbstractSmtpTransport->send(object(Swift_Message), array()) in Mailer.php line 85
at Swift_Mailer->send(object(Swift_Message), array()) in Mailer.php line 385
at Mailer->sendSwiftMessage(object(Swift_Message)) in Mailer.php line 171
at Mailer->send('auth.emails.password', array('token' => '1f8506d9f9c39c01aa0c6a6b163c6ae0a420089cb324eb8fffbcf7eb79ef3c79', 'user' => object(User)), object(Closure)) in PasswordBroker.php line 119
at PasswordBroker->emailResetLink(object(User), '1f8506d9f9c39c01aa0c6a6b163c6ae0a420089cb324eb8fffbcf7eb79ef3c79', object(Closure)) in PasswordBroker.php line 93
at PasswordBroker->sendResetLink(array('email' => '[email protected]'), object(Closure)) in ResetsPasswords.php line 81
at PasswordController->sendResetLinkEmail(object(Request))
Whoops, looks like something went wrong.
2/2
QueryException in Connection.php line 729:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'address' cannot be null (SQL: insert into `address_details` (`user_id`, `address`, `public_key`, `private_key`) values (58, , , eyJpdiI6IjdIdmkwVlZoUmpzd25PNlwvS0h3dHhBPT0iLCJ2YWx1ZSI6Ik5uTGlxbXl4Vk1VQnF1eHA4OFZKRlE9PSIsIm1hYyI6IjZjNzhiZmZkZTU1ZTQxYmM4ODg2OTRhN2Q1NzlmNWYxYWVmYTkyNzY5M2NhYzQ2OTkyZjFlMDE4YWFjZDNiNTYifQ==))
in Connection.php line 729
at Connection->runQueryCallback('insert into `address_details` (`user_id`, `address`, `public_key`, `private_key`) values (?, ?, ?, ?)', array('58', null, null, 'eyJpdiI6IjdIdmkwVlZoUmpzd25PNlwvS0h3dHhBPT0iLCJ2YWx1ZSI6Ik5uTGlxbXl4Vk1VQnF1eHA4OFZKRlE9PSIsIm1hYyI6IjZjNzhiZmZkZTU1ZTQxYmM4ODg2OTRhN2Q1NzlmNWYxYWVmYTkyNzY5M2NhYzQ2OTkyZjFlMDE4YWFjZDNiNTYifQ=='), object(Closure)) in Connection.php line 685
at Connection->run('insert into `address_details` (`user_id`, `address`, `public_key`, `private_key`) values (?, ?, ?, ?)

Keybase proof

I hereby claim:

  • I am nitronick600 on github.
  • I am nickhansen (https://keybase.io/nickhansen) on keybase.
  • I have a public key whose fingerprint is DEA5 D49C F915 9DB5 82EC 7721 2247 1344 2D8F 8FC3

To claim this, I am signing this object:

nick.hansen@nickhansen-ltm6~/PersonalCode/Go/src/github.com/rippaio/sia-stratum: docker logs e395f72a6191
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
@hashbender
hashbender / NewRouter.go
Created April 20, 2017 22:28
Complete NewRouter
//NewRouter returns a new Gorrila Mux router
func NewRouter(c AppContext) *mux.Router {
router := mux.NewRouter().StrictSlash(true)
appContext = c
for _, route := range routes {
//Check all routes to make sure the users are properly authenticated
router.
Methods(route.Method...).
Path(route.Pattern).
@hashbender
hashbender / newrouter.go
Created April 20, 2017 22:25
newrouter
//NewRouter returns a new Gorrila Mux router
func NewRouter(c AppContext) *mux.Router {
router := mux.NewRouter().StrictSlash(true)
appContext = c
for _, route := range routes {
//Check all routes to make sure the users are properly authenticated
router.
Methods(route.Method...).
Path(route.Pattern).
@hashbender
hashbender / middlewares.go
Created April 20, 2017 22:04
middlewares
//CheckAuth is an example middleware which demonstrates how we *might* check auth.
func CheckAuth(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
//TODO this is just an example.
//Get the cookie or something and check it
cookie, err := r.Cookie("session")
if err != nil || cookie == nil {
// TODO if an err, then redirect
// http.Redirect(w, r, "/", 401)
}
@hashbender
hashbender / route.go
Last active April 20, 2017 21:48
route declarations
//Route this struct is used for declaring a route
type Route struct {
Name string
Method []string
Pattern string
ContextedHandler *ContextedHandler
}
//Routes just stores our Route declarations
type Routes []Route