Skip to content

Instantly share code, notes, and snippets.

View azaky's full-sized avatar

Ahmad Zaky azaky

  • Jakarta, Indonesia
View GitHub Profile
@azaky
azaky / config.sh
Last active June 24, 2021 13:03
Raspberry Pi Config
#!/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
@azaky
azaky / test
Last active October 14, 2020 12:42 — forked from joshuabezaleel/test
test fork
test1
test2
test3
test4
/* 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();