Skip to content

Instantly share code, notes, and snippets.

View luizhtss's full-sized avatar

Luiz Henrique luizhtss

  • UFRN
  • Brazil
View GitHub Profile
@luizhtss
luizhtss / Time.java
Created March 7, 2019 06:26
Now your milliseconds are possible to read!
package me.devnatan.tests.all;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
public class Time {
private long milliseconds;
@luizhtss
luizhtss / mirror_remote_directory_to_local_directory
Created December 13, 2018 21:20 — forked from pixeline/mirror_remote_directory_to_local_directory
Bash script using lftp to mirror remote directory to local directory, thus keeping the local directory synchronized with the remote one.
#!/bin/sh
# @author: Alexandre Plennevaux
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP
#
# FTP LOGIN
HOST='sftp://ftp.domain.com'
USER='ftpusername'
PASSWORD='ftppassword'
# DISTANT DIRECTORY
@luizhtss
luizhtss / mirror_remote_directory_to_local_directory
Created December 13, 2018 21:20 — forked from pixeline/mirror_remote_directory_to_local_directory
Bash script using lftp to mirror remote directory to local directory, thus keeping the local directory synchronized with the remote one.
#!/bin/sh
# @author: Alexandre Plennevaux
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP
#
# FTP LOGIN
HOST='sftp://ftp.domain.com'
USER='ftpusername'
PASSWORD='ftppassword'
# DISTANT DIRECTORY