---
version: "2.1"
services:
deluge:
image: ghcr.io/linuxserver/deluge
container_name: deluge
environment:
- PUID=1001
- PGID=1001
- TZ=$TZ
- DELUGE_LOGLEVEL=error #optional
volumes:
- $HOME/source/deluge:/config
- /mnt:/downloads
ports:
- 8112:8112
- 6881:6881
- 6881:6881/udp
restart: unless-stopped
FindTheClosest
public class FindTheClosest {
private final Number target;
private final Number[] numbers;
public FindTheClosest(Number target, Number[] numbers) {
this.target = target;
this.numbers = numbers;
}
public Number execute() {
Stream<Number> stream = Arrays.stream(numbers);
Optional<Number> optional = stream.min(Comparator.comparing(number -> {
double delta = target.doubleValue() - number.doubleValue();
return delta == 0 ? Integer.MAX_VALUE : Math.abs(delta + 1F / Integer.MAX_VALUE);
}));
return optional.orElse(target);
}
}
Autostart Kodi on Raspbian
This is the /etc/systemd/system/kodi.service unit file:
[Unit]
Description = Kodi Media Center
# if you don't need the MySQL DB backend, this should be sufficient
After = systemd-user-sessions.service network.target sound.target
# if you need the MySQL DB backend, use this block instead of the previous
# After = systemd-user-sessions.service network.target sound.target mysql.service
# Wants = mysql.service
[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = always
RestartSec = 15
[Install]
WantedBy = multi-user.target
To install, enable and run the service:
systemctl daemon-reload
systemctl enable kodi.service
systemctl start kodi.service
The kodi user was created witht the following commands:
adduser --disabled-password --gecos "User to run Kodi Media Center" kodi
adduser kodi audio
adduser kodi video
adduser kodi plugdev
adduser kodi input
VirtualBox VMs folder
Hello guys, lagi ngoprek2 sedikit vagrant. Karena OS yang dipakai pribadi dirumah adalah Windows, cukup merepotkan untuk melakukan development dengan standarisasi linux seperti yang dilakukan ditempat kerjaan sekarang. Continue reading “VirtualBox VMs folder”
Perlukah menggunakan VPN untuk internet saat ini?
Mungkin ada yang masih bertanya vpn itu apa? Simplenya, VPN adalah virtual private network. Hubungannya apa donk dengan internet, kan ada kata private-nya, padahal internet adalah tempat yang sangat terbuka dengan katalain tidak private. Continue reading “Perlukah menggunakan VPN untuk internet saat ini?”
JDownloader.org – Terminal User Interface
Terminal User Interface
Conceptual Ideas
The idea about the terminal implementation is that on any computer (Windows, Linux, Linux server edition, Unix,…) the application can be ran the old-skool way, using command line aka terminals. The ideas explained on this page are only conceptual ideas so far. Implentation hasn’t started yet on this topic and even if it was those conceptual ideas stay conceptual.
Running JD
Continue reading “JDownloader.org – Terminal User Interface”
Rekomendasi Printer
Hallo,
Sedikit rekomendasi untuk printer rumahan. Kemarin baru saja beli printer Canon MP 287, cukup bagus dan sudah dilengkapi dengan sistem tinta infus. Setelah itu browsing2 tentang kriteria printer yang baik. Canon sendiri dengan thermal head print teknologi + infus sudah lebih dari cukup untuk penggunaan rumahan.Thermal print head menggunakan elemen panas untuk memuaikan dan mengeluarkan tinta dari catridge. Setelah menggunakan untuk keperluan pribadi ternyata kurang. Mengapa saya bisa katakan kurang? Continue reading “Rekomendasi Printer”
[Knowledge Base] How to use firmware recovery function of Pharos CPE
Purpose of this article:
Firmware upgrade may not be successful sometimes, for instance unpredictable power failure during the process, and thus your Pharos device may fail to reboot. This article will guide you how to re-flash the firmware via TFTP.
Continue reading “[Knowledge Base] How to use firmware recovery function of Pharos CPE”
TP LINK SG105e BRICKED!!!!!!
http://192.168.0.1/menu.cgi
TFTP : http://192.168.0.1/tftpug.cgi
TFTP Firmware Upgrade
TFTP Server IP Address : 192.168.0.146
Image File Name : final.bin
http : http://192.168.0.1/httpug.cgi
reboot : http://192.168.0.1/reboot.cgi
ya ampun… nangis2 gw 1 jam-an.. untung akhirnya bisa juga diakali.. Alhamdulillah.
JBossProperties | JBoss Developer
JBoss Properties
There are a number of properties used by the micro-kernel during the bootstrap.
This documentation is heavily plagiarized from org.jboss.system.server.ServerConfig. Continue reading “JBossProperties | JBoss Developer”