This file contains 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
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import static java.util.Objects.requireNonNull; | |
import static java.util.Collections.emptyList; | |
import static java.util.Collections.emptyMap; | |
import static java.util.Collections.emptySet; | |
/** | |
* Class containing the functional utils |
This file contains 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
get_crtime() { | |
for target in "${@}"; do | |
inode=$(stat -c '%i' "${target}") | |
fs=$(df --output=source "${target}" | tail -1) | |
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null | | |
grep -oP 'crtime.*--\s*\K.*') | |
printf "%s\t%s\n" "${target}" "${crtime}" | |
done |
This file contains 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
/** | |
* Meant to contain the custom utilities related to string. Could be handy in common use cases. | |
**/ | |
public class StringUtils{ | |
/** | |
* Searches the given pattern in the given src string and applies the txr to | |
* the matches. | |
* <br/> | |
* <b>Note:</b> Ex, To convert snake case to camel case make the call, |
This file contains 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
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.security.AccessController; | |
import java.security.KeyManagementException; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; | |
import java.security.NoSuchAlgorithmException; |
OlderNewer