- commit
- e3de397
- parent
- 9c6b93a
- author
- chasinglightning
- date
- 2025-04-29 17:37:51 -0400 EDT
misc
4 files changed,
+190,
-1
+1,
-1
1@@ -1,3 +1,3 @@
2 #!/bin/bash
3
4-for f in *.mkv; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "$f" -c:v hevc_nvenc -vtag hvc1 -crf 23 -c:a copy -c:s copy -map 0 "${f%.*} HEVC.mkv"; done
5+for f in *.mkv; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "$f" -c:v hevc_nvenc -vtag hvc1 -profile main -preset slow -rc vbr_hq -c:a copy -c:s copy -map 0 "${f%.*} HEVC.mkv"; done
+9,
-0
1@@ -0,0 +1,9 @@
2+#!/bin/bash
3+
4+WORKDIR=$(pwd)
5+
6+TMPDIR="/home/kat/Pictures/Camera/tmp-resize"
7+
8+cd ${WD}
9+
10+for f in *.jpg; do mv $f ${TMPDIR} && cd ${TMPDIR} && magick -size 3000x4000 $f -resize 40% "${f%.*}-resized.jpg" && rm -rf $f; done
+9,
-0
1@@ -0,0 +1,9 @@
2+#!/bin/bash
3+
4+FILE=$(gum input --placeholder "without an extension")
5+
6+HTML="/home/kat/Documents/Code/Templates/pandoc/md2html.html"
7+
8+CSS="/home/kat/Documents/Code/Templates/pandoc/md2html.css"
9+
10+pandoc --standalone "$FILE.md" --template=$HTML --no-highlight -o "$FILE.html"
+171,
-0
1@@ -0,0 +1,171 @@
2+@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css');
3+ html {
4+ color: var(--ctp-frappe-base);
5+ background-color: var(--ctp-latte-base);
6+ }
7+ body {
8+ margin: 0 auto;
9+ max-width: 50%;
10+ padding-left: 50px;
11+ padding-right: 50px;
12+ padding-top: 50px;
13+ padding-bottom: 50px;
14+ hyphens: auto;
15+ overflow-wrap: break-word;
16+ text-rendering: optimizeLegibility;
17+ font-kerning: normal;
18+ }
19+ @media (max-width: 600px) {
20+ body {
21+ font-size: 0.9em;
22+ padding: 12px;
23+ max-width: 100%;
24+ }
25+ h1 {
26+ font-size: 1.8em;
27+ }
28+ }
29+ @media print {
30+ html {
31+ background-color: white;
32+ }
33+ body {
34+ background-color: transparent;
35+ color: black;
36+ font-size: 12pt;
37+ }
38+ p, h2, h3 {
39+ orphans: 3;
40+ widows: 3;
41+ }
42+ h2, h3, h4 {
43+ page-break-after: avoid;
44+ }
45+ }
46+ p {
47+ margin: 1em 0;
48+ }
49+ a, a:link, a:visited, a:link:visited {
50+ color: var(--ctp-latte-lavender);
51+ }
52+ a:hover {
53+ text-decoration: none;
54+ color: var(--ctp-latte-text);
55+ }
56+ img {
57+ max-width: 100%;
58+ }
59+ svg {
60+ height: auto;
61+ max-width: 100%;
62+ }
63+ h1, h2, h3, h4, h5, h6 {
64+ margin-top: 1.4em;
65+ color: var(--ctp-frappe-surface0);
66+ }
67+ h5, h6 {
68+ font-size: 1em;
69+ font-style: italic;
70+ }
71+ h6 {
72+ font-weight: normal;
73+ }
74+ ol, ul {
75+ padding-left: 1.7em;
76+ margin-top: 1em;
77+ }
78+ li > ol, li > ul {
79+ margin-top: 0;
80+ }
81+ blockquote {
82+ margin: 1em 0 1em 1.7em;
83+ padding-left: 1em;
84+ border-left: 2px solid #e6e6e6;
85+ color: #606060;
86+ }
87+ code {
88+ font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
89+ font-size: 85%;
90+ margin: 0;
91+ hyphens: manual;
92+ }
93+ pre {
94+ margin: 1em 0;
95+ overflow: auto;
96+ padding: 1em;
97+ background: #303446;
98+ }
99+ pre code {
100+ padding: 0;
101+ overflow: visible;
102+ overflow-wrap: normal;
103+ }
104+ .sourceCode {
105+ background-color: transparent;
106+ overflow: visible;
107+ }
108+ hr {
109+ background-color: #1a1a1a;
110+ border: none;
111+ height: 1px;
112+ margin: 1em 0;
113+ }
114+ table {
115+ margin: 1em 0;
116+ border-collapse: collapse;
117+ width: 100%;
118+ overflow-x: auto;
119+ display: block;
120+ font-variant-numeric: lining-nums tabular-nums;
121+ }
122+ table caption {
123+ margin-bottom: 0.75em;
124+ }
125+ tbody {
126+ margin-top: 0.5em;
127+ border-top: 1px solid #1a1a1a;
128+ border-bottom: 1px solid #1a1a1a;
129+ }
130+ th {
131+ border-top: 1px solid #1a1a1a;
132+ padding: 0.25em 0.5em 0.25em 0.5em;
133+ }
134+ td {
135+ padding: 0.125em 0.5em 0.25em 0.5em;
136+ }
137+ header {
138+ margin-bottom: 4em;
139+ text-align: center;
140+ }
141+ #TOC li {
142+ list-style: none;
143+ }
144+ #TOC ul {
145+ padding-left: 1.3em;
146+ }
147+ #TOC > ul {
148+ padding-left: 0;
149+ }
150+ #TOC a:not(:hover) {
151+ text-decoration: none;
152+ }
153+ code{white-space: pre-wrap;}
154+ span.smallcaps{font-variant: small-caps;}
155+ div.columns{display: flex; gap: min(4vw, 1.5em);}
156+ div.column{flex: auto; overflow-x: auto;}
157+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
158+ /* The extra [class] is a hack that increases specificity enough to
159+ override a similar rule in reveal.js */
160+ ul.task-list[class]{list-style: none;}
161+ ul.task-list li input[type="checkbox"] {
162+ font-size: inherit;
163+ width: 0.8em;
164+ margin: 0 0.8em 0.2em -1.6em;
165+ vertical-align: middle;
166+ }
167+ .display.math{display: block; text-align: center; margin: 0.5rem auto;}
168+
169+ ::selection {
170+ color: var(--ctp-latte-surface1);
171+ background: var(--ctp-frappe-crust);
172+ }