Convert old scripts to chezmoi

requires include_legacy data to be set to true:

[data]
include_legacy = true
main
Buddy Sandidge 2 years ago
parent af120aab24
commit 7e92d28f52

@ -1,3 +1,2 @@
/hellotech/ /hellotech/
/old-scripts/
/README.md /README.md

@ -1,3 +1,5 @@
{{ if .include_legacy }}
#!/usr/bin/env bash #!/usr/bin/env bash
java -jar $(dirname $0)/duck-encoder.jar $* java -jar $(dirname $0)/duck-encoder.jar $*
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env perl #!/usr/bin/env perl
# Get sorted list files # Get sorted list files
@ -13,3 +14,4 @@ foreach my $file (@sortedFiles) {
my $fileSortedPrintCmd = "du -s \"$realFileName\""; my $fileSortedPrintCmd = "du -s \"$realFileName\"";
print `$fileSortedPrintCmd`; print `$fileSortedPrintCmd`;
} }
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python #!/usr/bin/env python
""" """
This is a program that attempts to get all the album art from amazon This is a program that attempts to get all the album art from amazon
@ -169,3 +170,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python3 #!/usr/bin/env python3
from functools import partial from functools import partial
@ -117,3 +118,4 @@ if __name__ == '__main__':
parser.add_argument('-d', '--directory', default=Path('.'), type=Path) parser.add_argument('-d', '--directory', default=Path('.'), type=Path)
args = parser.parse_args() args = parser.parse_args()
main(args.directory) main(args.directory)
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python3 #!/usr/bin/env python3
''' '''
@ -82,3 +83,4 @@ if __name__ == "__main__":
message = "" message = ""
main(file_name=file_name, dir_name=dir_name, message=message) main(file_name=file_name, dir_name=dir_name, message=message)
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python3 #!/usr/bin/env python3
import os import os
@ -115,3 +116,4 @@ if __name__ == '__main__':
options, args = parser.parse_args() options, args = parser.parse_args()
main(options, args) main(options, args)
{{- end }}

@ -1,4 +1,6 @@
{{ if .include_legacy }}
#!/usr/bin/env bash #!/usr/bin/env bash
sudo systemctl start lego@toy.xbudex.com.service sudo systemctl start lego@toy.xbudex.com.service
scp /etc/ssl/certificates/toy.xbudex.com.crt toy.xbudex.com:AppData/Local/Syncthing/https-cert.pem scp /etc/ssl/certificates/toy.xbudex.com.crt toy.xbudex.com:AppData/Local/Syncthing/https-cert.pem
scp /etc/ssl/certificates/toy.xbudex.com.key toy.xbudex.com:AppData/Local/Syncthing/https-key.pem scp /etc/ssl/certificates/toy.xbudex.com.key toy.xbudex.com:AppData/Local/Syncthing/https-key.pem
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/bin/bash #!/bin/bash
LINES=$(tput lines) LINES=$(tput lines)
@ -38,3 +39,4 @@ do
sleep 0.1 sleep 0.1
done done
{{- end }}
Loading…
Cancel
Save