Skip to content

Instantly share code, notes, and snippets.

View edwin's full-sized avatar
🦕
We all have a dinosaur deep within us just trying to get out.

Muhammad Edwin edwin

🦕
We all have a dinosaur deep within us just trying to get out.
View GitHub Profile
package com.redhat.edwin;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* <pre>
* com.redhat.edwin.Application
* </pre>
*
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.redhat.edwin</groupId>
<artifactId>TestFieldEncryption</artifactId>
<version>1.0-SNAPSHOT</version>
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
/**
@edwin
edwin / Main2.java
Last active May 19, 2019 06:44
Bot untuk download hasil scan formulir c1 pilpres 2019 milik KPU (pemilu2019.kpu.go.id)
package com.edw.situng;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
@edwin
edwin / Main.java
Created May 18, 2019 05:17
"robot" untuk simpan screenshot web hitung suara kpu (pemilu2019.kpu.go.id) setiap 10 detik
package com.edw.situng;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.io.File;
import java.text.SimpleDateFormat;