Skip to content

Instantly share code, notes, and snippets.

View jcasadella's full-sized avatar

Joan Casadellà jcasadella

View GitHub Profile
@jcasadella
jcasadella / Shell_Commands.md
Created August 13, 2019 08:53
Examples to solve simple issues with shell commands
@jcasadella
jcasadella / Clean_IntelliJ.md
Last active September 9, 2021 15:55
Bootstrap Mac

Documentation Python

Credit to Christian Perez (https://github.com/chris-zen)

Install dependencies

brew install pyenv

Install different Python versions without conflicts

@jcasadella
jcasadella / Docker.md
Last active September 16, 2020 12:16
Docker snippets

Stop and remove running dockers

docker ps -qa | xargs docker rm -f

Remove 'none' docker images

docker images | grep none | awk '{print $3}' | xargs docker rmi -f

Clean all local images

@jcasadella
jcasadella / HelloWorld.java
Last active May 19, 2016 13:01
Java Hello World without semicolons using reflection
public class HelloWorld {
public static void main(String[] args) throws Exception {
if(System.out.getClass().getMethod("println", String.class).invoke(System.out, "HELLO WORLD!") == null) {}
}
}
@jcasadella
jcasadella / nginx.conf
Created July 10, 2014 14:57
Nginx Proxy
user www-data;
worker_processes 1;
events {
worker_connections 1024;
}
http {
# include mime.types;
default_type application/octet-stream;
@jcasadella
jcasadella / certificates.sh
Last active August 29, 2015 14:03
Certificates X.509
## PEM Format
# Base64 encoded ASCII files and contain "-----BEGIN CERTIFICATE-----"
# and "-----END CERTIFICATE-----" statements.
## DER Format
# Binary from a certificate
## Convert from hex to binary
# xxd Concerts from binary to hex.
# Option "-r" reverts the conversion (from hex to binary)