Skip to content

Instantly share code, notes, and snippets.

ulymarins ulymarins

Block or report user

Report or block ulymarins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f13aeecc5a18912af1073943c669dbb1
SELECT DISTINCT
unity.id AS idUnity,
unity.name,
unity.active,
NULL AS idFact,
NULL AS descricao,
NULL AS title,
TRUNCATE((SELECT
ST_DISTANCE_SPHERE(POINT(- 30.0275415, - 51.1826964),
POINT(unity.lng, unity.lat))
View app.java
public class App {
public static void main(String [] args) {
System.out.println("Chave 16bits: G3r0m3lcr1pt0666");
System.out.println("Vetor: RandomInitVector");
System.out.println("Iniciando criptografia");
String conteudoCriptografado = Crypto.encryptAES("tipoQr=4park&valorPassagem=250&id4all=2345");
System.out.println("Conteúdo criptografado: " + conteudoCriptografado);
@ulymarins
ulymarins / aes.java
Last active May 23, 2018
Java Encryption with AES
View aes.java
import java.math.BigInteger;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
@ulymarins
ulymarins / sshScript.sh
Created Jul 31, 2016
Simple bash script created to access some server via ssh and execute sudo commands.
View sshScript.sh
#!/bin/bash
HELLO="world"
ssh -t user@target bash -c "'
ls
pwd
if true; then
You can’t perform that action at this time.