Skip to content

Instantly share code, notes, and snippets.

View henvic's full-sized avatar

Henrique Vicente henvic

View GitHub Profile
@henvic
henvic / .gitignore
Last active April 5, 2019 16:25
certlistener (old)
mocks/certs/example.org
function publish() {
equinox release \
--version=$NEW_RELEASE_VERSION \
--channel=$RELEASE_CHANNEL \
--config=$config \
-- \
-ldflags="-X 'github.com/wedeploy/cli/defaults.Version=$NEW_RELEASE_VERSION' \
-X 'github.com/wedeploy/cli/defaults.Build=$BUILD_COMMIT' \
-X 'github.com/wedeploy/cli/defaults.BuildTime=$BUILD_TIME'" \
-gcflags=-trimpath=$GOPATH \
@henvic
henvic / README.md
Last active February 21, 2019 21:48
Go repositories licenses on GitHub (February, 2019)
@henvic
henvic / indirect.go
Last active April 4, 2018 09:03
indirect (similar to json.Unmarshal(data []byte, v interface{}) - Public Domain, MIT License
package indirect
import (
"errors"
"fmt"
"reflect"
)
// Inspired by the unmarshal functions on
// https://golang.org/src/encoding/json/decode.go
@henvic
henvic / adder.go
Created March 7, 2018 02:54
fs-notify listener (for debugging load-balancer issue 248 and 'custom domain mock adder')
package main
import (
"errors"
"flag"
"fmt"
"io/ioutil"
"math/rand"
"os"
"path/filepath"
@henvic
henvic / 24016682888__dfff44d47c__o_800x.jpg
Last active November 30, 2017 10:40
Requests to resize image with picel
24016682888__dfff44d47c__o_800x.jpg
@henvic
henvic / main.go
Created October 16, 2017 21:11
Simple dirty example of using Go's json.Marshal and json.Unmarshal
package main
import (
"encoding/json"
"fmt"
"log"
)
// Event to record
type Event struct {
@henvic
henvic / README.md
Last active February 21, 2019 21:49
Go repositories licenses on GitHub
@henvic
henvic / README.md
Last active October 13, 2017 04:41
gitless proposal: easier git stash area

This is a project work for the class I am taking (Advanced Topics in Software Engineering).

Context

legit is a complimentary Command-Line-Interface tool for git that adds some commands which proposes to simplify git interface. See Purposes, Concepts, Misfits, and a Redesign of Git.

Improvement idea: legit stash

git stash is a powerful git command for stashing changes in a dirty working directory.

This is very useful for when you are working on something, but have to stop for a while to do something else.

@henvic
henvic / ttyissue.go
Created July 25, 2017 17:11
ttyissue.go
package main
import (
"bufio"
"fmt"
"os"
"syscall"
"golang.org/x/crypto/ssh/terminal"
)