Skip to content

Instantly share code, notes, and snippets.

View jonathasrochadesouza's full-sized avatar
🎯
Focusing

Jonathas Rocha jonathasrochadesouza

🎯
Focusing
  • Senior Sistemas
  • Blumenau - SC (Brazil)
View GitHub Profile
@luizomf
luizomf / tutorial.txt
Created August 7, 2021 10:51
WSL2 e Docker no Windows 10.
### Tutorial oficial:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
### Passo 1 (PowerShell Admin):
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
### Passo 2 (PowerShell Admin):
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
### Passo 3
@Phoenix-Effect
Phoenix-Effect / main.java
Created July 3, 2018 01:03
Example of how you can read and parse JSON file in Java. Requires JSON library.
import org.json.*;
import java.io.*;
public class main {
public static JSONObject obj;
public static void main(String args[]){
try {
obj = new JSONObject( fileToString("src/main/resources/questions.json") );
JSONArray questionsArray = obj.getJSONArray("question");
@jcamp
jcamp / video-editors-opensource.md
Last active March 26, 2024 22:07
OpenSource Video Editors
@nepsilon
nepsilon / how-to-git-patch-diff.md
Last active March 25, 2024 12:33
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff > some-changes.patch
@jonashackt
jonashackt / startEclipse.bat
Last active October 16, 2021 23:15
Start Eclipse bat-File
### env.cmd:
set ROOT=%~dp0%
set JAVA_HOME=%ROOT%bin\jdk1.8.0_66
set GRADLE_HOME=%ROOT%bin\gradle
set GRADLE_USER_HOME=%ROOT%gradle_repository
set M2_HOME=%ROOT%bin\maven
set MAVEN_HOME=%ROOT%bin\maven
set M2_REPO=%ROOT%maven_repository
set MAVEN_REPO=%ROOT%maven_repository
@vitorbritto
vitorbritto / regex.md
Last active March 14, 2024 03:14
Regex Cheat Sheet

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
@vanpeerdevelopment
vanpeerdevelopment / eclipse.bat
Created December 26, 2013 20:44
eclipse.bat file use in the setup of the development environment to open eclipse with all the environment variables set.
@echo off
cd %~dp0
call environment.bat
start %ECLIPSE_HOME%\eclipse.exe -data %ECLIPSE_WORKSPACE%
exit