Skip to content

Instantly share code, notes, and snippets.

@jottinger
jottinger / Iterate
Created September 18, 2014 13:47
Nepherus' homework, except it won't help since I used java collections, because it's java
public class Iterate {
public static void main(String[] args) {
new Iterate().run();
}
public void run() {
long start=System.currentTimeMillis();
InputStream in = this.getClass().getResourceAsStream("/numbers.txt");
BufferedInputStream bis=new BufferedInputStream(in);
Scanner scanner=new Scanner(bis);
Unit]
Description=MailMan3 daemon
After=network.target
[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/sshd
ExecStart=/usr/bin/mailman -C /usr/lib/systemd/system/var/etc/mailman.cfg start
ExecStop=/usr/bin/mailman -C /usr/lib/systemd/system/var/etc/mailman.cfg stop
ExecReload=/usr/bin/mailman restart