Skip to content

Instantly share code, notes, and snippets.

View euskadi31's full-sized avatar
🚀
Focusing

Axel Etcheverry euskadi31

🚀
Focusing
View GitHub Profile
@euskadi31
euskadi31 / index.html
Created September 5, 2022 20:14
Golang custom domain import
<meta name="go-import" content="cloud.google.com/go git https://github.com/googleapis/google-cloud-go" />
<meta name="go-source" content="cloud.google.com/go https://github.com/googleapis/google-cloud-go https://github.com/googleapis/google-cloud-go/tree/master{/dir} https://github.com/googleapis/google-cloud-go/tree/master{/dir}/{file}#L{line}" />
`INF Start recording...` is displayed repeatedly on `video-recorder-slicer` logs
- Check that you are sending video and audio in the camera offer
@euskadi31
euskadi31 / Makefile
Created June 18, 2018 13:06
Makefile for go test and cover
coverage.out: $(shell find . -type f -print | grep -v vendor | grep "\.go")
@go test -cover -coverprofile ./coverage.out.tmp ./...
@cat ./coverage.out.tmp | grep -v '.pb.go' | grep -v 'mock_' > ./coverage.out
@rm ./coverage.out.tmp
test: coverage.out
cover: coverage.out
@echo ""
@go tool cover -func ./coverage.out
/*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*/
function articleHeight() {
var e = document.getElementById("article").offsetHeight,
t = parseFloat(getComputedStyle(document.getElementById("article")).marginTop);
return e + 2 * t
}
function smoothScroll(e, t, n, i) {
function a(t, n) {
@euskadi31
euskadi31 / Makefile
Created January 6, 2017 12:49
Example of Makefile for go project
.PHONY: all clean deps fmt vet test docker
EXECUTABLE ?= drone-webhook
IMAGE ?= plugins/$(EXECUTABLE)
COMMIT ?= $(shell git rev-parse --short HEAD)
LDFLAGS = -X "main.buildCommit=$(COMMIT)"
PACKAGES = $(shell go list ./... | grep -v /vendor/)
all: deps build test

Keybase proof

I hereby claim:

  • I am euskadi31 on github.
  • I am euskadi31 (https://keybase.io/euskadi31) on keybase.
  • I have a public key whose fingerprint is 8EE3 1489 BE93 0450 5AAB D2E7 C951 4B41 3EE8 01A2

To claim this, I am signing this object:

@euskadi31
euskadi31 / uuid.php
Last active August 29, 2015 14:27
PHP UUID v4 class
<?php
/**
* @see http://stackoverflow.com/a/15875555
*/
class UUID
{
public static function random()
{
if (function_exists('uuid_create')) {
TRUNCATE RTINDEX rt;
@euskadi31
euskadi31 / .profile
Created May 7, 2015 13:00
My .profile
export EDITOR="vi"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1) /'
}
parse_git_tag() {
git describe --always --tag 2> /dev/null
}
@euskadi31
euskadi31 / ExceptionController.php
Last active May 29, 2017 09:17
Add translation support of error page in Symfony2
<?php
namespace Acme\Bundle\FrontBundle\Controller;
use Symfony\Bundle\TwigBundle\Controller\ExceptionController AS Controller;
use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
use Symfony\Component\HttpFoundation\Request;
class ExceptionController extends Controller
{