Skip to content

Instantly share code, notes, and snippets.

View gonzaloserrano's full-sized avatar
☁️
🧑‍💻

Gonzalo Serrano gonzaloserrano

☁️
🧑‍💻
View GitHub Profile
HTTP Status 500 - com.google.common.util.concurrent.UncheckedExecutionException: com.netflix.hystrix.exception.HystrixRuntimeException: TenantContextCommand short-circuited and fallback failed.
type Exception report
message com.google.common.util.concurrent.UncheckedExecutionException: com.netflix.hystrix.exception.HystrixRuntimeException: TenantContextCommand short-circuited and fallback failed.
description The server encountered an internal error that prevented it from fulfilling this request.
exception

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

// CODIGO PARA EL CONTADOR DE MIERDA
var n = 0;
var caja_de_texto = document.getElementById("number");
var today = new Date();
var today_abs = new Date();
(ns foo.core
(:require [clj-http.client :as client]))
(defn -main
"doc"
[& args]
(lfirst args))
(defn lfirst [list]
(first list))
@gonzaloserrano
gonzaloserrano / gist:0504a7ef62995a115590e5a5482f24a8
Last active July 23, 2017 22:20
Execute go tests in a different process each
for i in `grep -r Test *_test.go | grep testing.T | awk '{print $2}' | awk -F '(' '{print $1}' | grep -v t.Run`; do echo $i; go test -v ./... --run $i; done;
package main
import (
"fmt"
"math"
"os"
)
func main() {
var vf = []float64{
╰─○ go run main.go
FILE_TRANSFER
{Unrecognized command}
TRANSFER_FILE
Source file name:../bigfile
Destination file name:bigfile_new
65496290 bytes sent
{File transfer complete}
TRANSFER_FILE
Source file name:../bigfile
(function()
-- simulate omniata derived stuff with func calls
function f1()
return 1485357805
end
function f2()
return 1485357805 + 3600
end
package main
import (
"time"
"github.com/socialpoint/sprocket/pkg/dumper"
)
func main() {
c := make(chan struct{})
" golang {
" vim-go
"let g:go_golint_bin = "golint"
let g:go_list_type = "quickfix"
"let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
"let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
" c-@ === c-space :-O
au FileType go nmap <c-@> :GoCoverageToggle<CR>
"au FileType go nmap <c-b> :GoBuild<CR>
autocmd FileType go nmap <c-b> :<C-u>call <SID>build_go_files()<CR>