# extended desktop
xrandr --output eDP-1 --mode 1920x1080 --output DP-1-1 --auto --right-of eDP-1 --output DP-1-3 --auto --right-of DP-1-1
# mirror all
xrandr --output eDP-1 --mode 1920x1080 --output DP-1-1 --auto --same-as eDP-1 --output DP-1-3 --auto --same-as eDP-1
# switch off all external monitors
xrandr --output eDP-1 --mode 1920x1080 --output DP-1-1 --off --output DP-1-3 --off
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 java.security.Provider; | |
import java.security.Security; | |
import java.util.Arrays; | |
import javax.crypto.Cipher; | |
public class ShowCryptoProviders | |
{ | |
private static final String EOL = System.getProperty("line.separator"); | |
public static void main(final String[] args) |
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 java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.security.AlgorithmParameters; | |
import java.security.GeneralSecurityException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.spec.InvalidKeySpecException; | |
import java.util.Base64; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import javax.crypto.SecretKeyFactory; |
Open port 1780
iptables -A INPUT -p tcp --dport 1780 -j ACCEPT
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
# converting java keystore to .pem | |
# https://www.calazan.com/how-to-convert-a-java-keystore-jks-to-pem-format/ | |
# https://stackoverflow.com/questions/652916/converting-a-java-keystore-into-pem-format | |
rm cert* | |
command apg -m 30 -n 1 > pass.txt | |
keytool -importkeystore \ | |
-srckeystore keystore.jks \ |
$ uname -r
List all intalled packages
apt list --installed
dpkg -l
Search for all packages consisting of java keyword