This file contains hidden or 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
| #!/bin/bash | |
| # Running: | |
| # ssh -t pi@<hostname> 'bash -s' < ./config.sh | |
| # Remove welcome message | |
| sudo rm /etc/xdg/autostart/piwiz.desktop | |
| # Remove default password warning | |
| sudo rm /etc/xdg/lxsession/LXDE-pi/sshpwd.sh |
This file contains hidden or 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
| test1 | |
| test2 | |
| test3 | |
| test4 |
This file contains hidden or 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
| /* Gatau mau import apa aja */ | |
| public class BanyakWarna { | |
| public static int getNumberOfDifferentColorsInFile(String filename) { | |
| return getNumberOfDifferentColorsInImage(ImageIO.read(new File(filename)); | |
| } | |
| public static int getNumberOfDifferentColorsInImage(BufferedImage image) { | |
| int height = image.getHeight(); |