Command | Shortcut |
---|---|
xfce4-screenshooter --fullscreen --clipboard |
Ctrl + PrtScrn |
xfce4-screenshooter --fullscreen --save /home/dianjuar/Pictures |
PrtScrn |
xfce4-screenshooter --region --clipboard |
Ctrl + Shift + PrtScrn |
xfce4-screenshooter --region --save /home/dianjuar/Pictures |
Shift + PrtScrn |
xfce4-screenshooter --window --clipboard |
Ctrl + Super + PrtScrn |
xfce4-screenshooter --window --save /home/dianjuar/Pictures |
Super + PrtScrn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL in Docker | |
docker run --name=mysql01 -p 3306:3306 mysql/mysql-server:latest | |
docker exec -it mysql01 mysql -uroot -p | |
# Enter the one time password generated from the docker run command | |
# and then change the root password | |
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mypassword'; | |
# Create a user with your host IP address so it can connect from Buffalo | |
# outside the container | |
create user 'root'@'172.17.0.1' with password 'mypassword'; | |
GRANT ALL PRIVILEGES ON * . * TO 'root'@'172.17.0.1'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 2>/dev/null | |
sudo echo "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') bionic stable" > /etc/apt/sources.list.d/docker.list | |
sudo apt-get -y update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Book { | |
String title; | |
String author; | |
Date date; | |
} | |
Book book1 = new Book("Refactoring", "Martin Fowler", new Date()); | |
Book book2 = new Book("Clean code", "Robert C. Martin", new Date()); | |
Book book3 = new Book("Test Driven Development", "Kent Beck", new Date()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.util.Base64.*; | |
//import org.apache.commons.codec.binary.Base64; | |
/** | |
* @author netkiller | |
* | |
*/ |