As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
import javax.crypto.spec.SecretKeySpec | |
import javax.crypto.Mac | |
object A { | |
def main(args: Array[String]): Unit = { | |
val secret = new SecretKeySpec("the_secret".getBytes, "HmacSHA1") | |
val mac = Mac.getInstance("HmacSHA1") | |
mac.init(secret) | |
val result: Array[Byte] = mac.doFinal("foo".getBytes) | |
println(result.map(_.toString).mkString(",")) |
## | |
# Ruby script to find top-level empty directories in a working SVN directory tree | |
# | |
# A directory is considered empty, if there are zero files reachable through this directory (excluding | |
# files under .svn directories). That means that a directory containing other empty directories is | |
# also empty (recursively). The algorithm will consolidate the output so that it only contains | |
# top-level empty directories, but not their sub-directories. | |
# | |
# The output of this script can be used, for example to remove non-used parts of a SVN repository: | |
# ruby empty_dirs.rb | xargs svn del |
import javax.net.ssl.SSLParameters; | |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { |
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs