Skip to content

Instantly share code, notes, and snippets.

View fguisso's full-sized avatar
🌭
Hot dogs

Fernando Guisso fguisso

🌭
Hot dogs
View GitHub Profile
@fguisso
fguisso / dcrd.log
Last active March 23, 2020 18:41
gosec
Results:
[/dcrd/database/internal/treap/mutable.go:117] - G404 (CWE-338): Use of weak random number generator (math/rand instead of crypto/rand) (Confidence: MEDIUM, Severity: HIGH)
> rand.Int()
[/dcrd/database/internal/treap/mutable.go:149] - G404 (CWE-338): Use of weak random number generator (math/rand instead of crypto/rand) (Confidence: MEDIUM, Severity: HIGH)
> rand.Int()
repo: politeia
additions: 4111
deletions: 1376
total changes: 5487
commits master: 22
active PRs: 28
repo: politeiagui
additions: 835
deletions: 756
@fguisso
fguisso / main.go
Created October 15, 2019 00:25
get dcrdata info
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
"time"
)
package main
import (
"log"
"io/ioutil"
"path/filepath"
// "time"
"github.com/decred/dcrd/dcrutil"
"github.com/decred/dcrd/rpcclient"
package main
import (
"log"
"io/ioutil"
"path/filepath"
"time"
"github.com/decred/dcrd/dcrutil"
"github.com/decred/dcrd/rpcclient"
@fguisso
fguisso / blockchain.md
Created April 12, 2018 14:32
Workshop Blockchain

Links

ERROR in ./src/components/App.js
Module not found: Error: Can't resolve 'classnames' in '/Users/fguisso/Documents/Github/front-myaccount/src/components'
@ ./src/components/App.js 51:18-39
@ ./src/routes.js
@ ./src/client.js
@ multi (webpack)-dev-server/client?http://localhost:8000 webpack/hot/dev-server webpack-dev-server/client?http://0.0.0.0:8000/ webpack/hot/only-dev-server react-hot-loader/patch ./client.js
ERROR in ./src/components/common/header/HeaderComponent.jsx
Module not found: Error: Can't resolve 'classnames' in '/Users/fguisso/Documents/Github/front-myaccount/src/components/common/header'
@ ./src/components/common/header/HeaderComponent.jsx 95:18-39
@fguisso
fguisso / Teste
Last active February 27, 2020 22:22 — forked from anonymous/Teste
var express = require('express');
var test = express();
var port = process.env.PORT || 8080;
//routes
test.get('/api/users', function(req, res){
var user_id = req.param('id');
var token = req.param('token');
var geo = req.param('geo');
@fguisso
fguisso / config.yml
Created September 4, 2017 17:51
.circleci config
version: 2
jobs:
build:
working_directory: ~/dev
docker:
- image: circleci/node:latest
steps:
- checkout
- run:
name: update-npm