Skip to content

Instantly share code, notes, and snippets.

View calvernaz's full-sized avatar

Cesar Alvernaz calvernaz

View GitHub Profile
@calvernaz
calvernaz / main.go
Created December 29, 2018 22:30
ticker set
package main
import (
"fmt"
"log"
"os"
"os/signal"
"syscall"
"time"
"math/rand"
@calvernaz
calvernaz / gist:07fada864bab5e419afd29a328717fe1
Last active June 16, 2018 09:35
Debug GAE using Go and Goland IDE
1. tar xfvz google-cloud-sdk-204.0.0-darwin-x86_64.tar.gz
2. ./google-cloud-sdk/install.sh
3. source ~/.config/fish/config.fish
4. gcloud init
5. gcloud components install app-engine-go
@calvernaz
calvernaz / README.md
Last active February 24, 2018 20:57
Jetson TX2 - Flash and Install Development Kit

Intro

Let's directly to the points without emphesizing how usually people get frustrated on flashing JetPack into NVIDIA TX2 without access to an actually Ubuntu machine.

Therefore, this is all about how to flash into TX2 with an VM (VirtualBox) on Mac.

1. Pre-requisites

  • A mac desktop connected with Wi-Fi
package com.util.filesystem;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
package com.jackson.utils;
import java.io.IOException;
import java.util.*;
import org.apache.commons.lang3.StringUtils;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
package com.hikari.datasource;
import com.zaxxer.hikari.HikariConfig;
public class EncryptedHikariConfig extends HikariConfig {
private String encryptionKey;
public String getEncryptionKey() {
return encryptionKey;
@calvernaz
calvernaz / FluentImmutableList.java
Last active February 2, 2017 09:48
Fluent Immutable List
package com.util.collections;
import static com.google.common.collect.FluentIterable.from;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;