Skip to content

Instantly share code, notes, and snippets.

View dyorgio's full-sized avatar
🤓

Dyorgio Nascimento dyorgio

🤓
View GitHub Profile
@dyorgio
dyorgio / getActualTypeArgument
Last active August 29, 2015 14:24
Get Actual Type Generic Argument
public static Type getActualTypeArgument(Type type, Class topClass) {
if (type instanceof TypeVariable) {
TypeVariable typeVariable = (TypeVariable) type;
Class declareClass = topClass;
// find declare class
while (declareClass != null) {
if (((ParameterizedType) declareClass.getGenericSuperclass()).getRawType() == typeVariable.getGenericDeclaration()) {
@dyorgio
dyorgio / sh.sh
Created July 30, 2015 18:05
List svn log, just on trunk
ls */trunk | grep trunk | awk '{print substr($1,0,length($1) - 1)}' | svn log $1 -v -r {2015-07-10}:{2015-08-01}
@dyorgio
dyorgio / JBrowserDriverSandbox.java
Created January 8, 2018 19:09
Pure Java FullHD webpage Screenshot example
import com.machinepublishers.jbrowserdriver.JBrowserDriver;
import com.machinepublishers.jbrowserdriver.RequestHeaders;
import com.machinepublishers.jbrowserdriver.Settings;
import com.machinepublishers.jbrowserdriver.Timezone;
import com.machinepublishers.jbrowserdriver.UserAgent;
import java.io.File;
import java.util.logging.Level;
import lombok.extern.java.Log;
import org.openqa.selenium.By;
@dyorgio
dyorgio / multiple_ssh_setting.md
Created July 19, 2018 21:13 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
This file has been truncated, but you can view the full file.
[ 0.000000@0]d Booting Linux on physical CPU 0x0
[ 0.000000@0]d Linux version 4.9.269 (portisch@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) ) #1 SMP PREEMPT Mon Mar 7 15:12:01 CET 2022
[ 0.000000@0]d Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0]d CoreELEC dt-id: gxl_p281_1g
[ 0.000000@0]d Machine model: Amlogic
[ 0.000000@0]d 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0]d __reserved_mem_alloc_size, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0]d 05000000 - 05400000, 4096 KB, linux,secmon
[ 0.000000@0]d 3e000000 - 40000000, 32768 KB, linux,di_cma
[ 0.000000@0]d 36000000 - 3e000000, 131072 KB, linux,ion-dev
[ 0.000000@0]d Booting Linux on physical CPU 0x0
[ 0.000000@0]d Linux version 4.9.269 (portisch@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) ) #1 SMP PREEMPT Tue Mar 8 14:08:35 CET 2022
[ 0.000000@0]d Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0]d CoreELEC dt-id: gxl_p281_1g
[ 0.000000@0]d Machine model: Amlogic
[ 0.000000@0]d 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0]d __reserved_mem_alloc_size, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0]d 05000000 - 05400000, 4096 KB, linux,secmon
[ 0.000000@0]d 3e000000 - 40000000, 32768 KB, linux,di_cma
[ 0.000000@0]d 36000000 - 3e000000, 131072 KB, linux,ion-dev
This file has been truncated, but you can view the full file.
[ 0.000000@0]d Booting Linux on physical CPU 0x0
[ 0.000000@0]d Linux version 4.9.269 (portisch@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) ) #1 SMP PREEMPT Tue Mar 8 14:08:35 CET 2022
[ 0.000000@0]d Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0]d CoreELEC dt-id: gxl_p281_1g
[ 0.000000@0]d Machine model: Amlogic
[ 0.000000@0]d 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0]d __reserved_mem_alloc_size, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0]d 05000000 - 05400000, 4096 KB, linux,secmon
[ 0.000000@0]d 3e000000 - 40000000, 32768 KB, linux,di_cma
[ 0.000000@0]d 36000000 - 3e000000, 131072 KB, linux,ion-dev
This file has been truncated, but you can view the full file.
[ 0.000000@0]d Booting Linux on physical CPU 0x0
[ 0.000000@0]d Linux version 4.9.269 (portisch@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) ) #1 SMP PREEMPT Tue Mar 8 14:08:35 CET 2022
[ 0.000000@0]d Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0]d CoreELEC dt-id: gxl_p281_1g
[ 0.000000@0]d Machine model: Amlogic
[ 0.000000@0]d 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0]d __reserved_mem_alloc_size, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0]d 05000000 - 05400000, 4096 KB, linux,secmon
[ 0.000000@0]d 3e000000 - 40000000, 32768 KB, linux,di_cma
[ 0.000000@0]d 36000000 - 3e000000, 131072 KB, linux,ion-dev
This file has been truncated, but you can view the full file.
[ 0.000000@0]d Booting Linux on physical CPU 0x0
[ 0.000000@0]d Linux version 4.9.269 (portisch@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) ) #1 SMP PREEMPT Thu Mar 10 09:13:42 CET 2022
[ 0.000000@0]d Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0]d CoreELEC dt-id: gxl_p281_1g
[ 0.000000@0]d Machine model: Amlogic
[ 0.000000@0]d 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0]d __reserved_mem_alloc_size, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0]d 05000000 - 05400000, 4096 KB, linux,secmon
[ 0.000000@0]d 3e000000 - 40000000, 32768 KB, linux,di_cma
[ 0.000000@0]d 36000000 - 3e000000, 131072 KB, linux,ion-dev
CoreELEC:~ # wpa_passphrase Dyorgio {PASS} | wpa_supplicant -dd -i wlan0_s0 -c /dev/stdin
wpa_supplicant v2.9
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0_s0' conf '/dev/stdin' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/dev/stdin' -> '/dev/stdin'
Reading configuration file '/dev/stdin'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=7):
44 79 6f 72 67 69 6f Dyorgio