First we need to create a certificate. The llvm provided a way to do
that, but I found this
way to work slightly better for me. Just substitute
lldb_codesign for the certificate name, instead of gdb-cert.
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) { | |
| if (argc != 2) { | |
| printf("%s\n", "wrong number of parameters"); | |
| exit(-1); | |
| } |
This file contains hidden or 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
| class SparseTensorFactory[Shape](sv: ShapeValue[Shape]) { | |
| def *[D <: Dimension](dv: DimValue[D]): SparseTensorFactory[Shape ~ D] = | |
| new SparseTensorFactory[Shape ~ D](sv.append(dv)) | |
| def &(sc: SparkContext): SparseTensor[Shape] = | |
| new SparseTensor[Shape](sc, sv) | |
| } | |
| object SparseTensorFactory { | |
| def >[D <: Dimension](dv: DimValue[D]): SparseTensorFactory[RNil ~ D] = |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| function set_ts() { | |
| local f=$1 | |
| dto=$($GNUBIN_COREUTILS/date -d "$dir_t" "+%Y:%m:%d 00:00:00") | |
| echo exiftool -datetimeoriginal="$dto" "$f" | |
| exiftool -datetimeoriginal="$dto" "$f" | |
| local dest_path=$dest_dir/$dir_d |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| dir=$1 | |
| function process() { | |
| local final_dir="/Users/chaomai/Downloads/final_imgs" | |
| local dest_dir="/Users/chaomai/Downloads/dest_imgs" | |
| local f=$1 | |
| echo $f |
OlderNewer