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
| # Downloads URLs from a Pocket export CSV into one folder per month | |
| # Creates a .webloc file per URL to open in a browser and also tries to download the page | |
| # Pass path to .csv file like: | |
| # python3 pocketdownload.py pocket_export_20250526.csv | |
| import sys, os, datetime, time, subprocess | |
| csv = open(sys.argv[1]).readlines() | |
| csv.pop(0) | |
| csv.sort(key=lambda x: x.split(',')[-3]) |
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/python | |
| # Pass year and month e.g. python monthly.py 2020 02 | |
| # ...will transcode or symlink everything found into /works/monthlies/monthlies202002/rushes/ | |
| import subprocess, sys, os | |
| def find(folder, pattern, year, month): | |
| firstofmonth = '%s-%s-01' % (year, month) | |
| firstnextmonth = '%s-%d-01' % (year, int(month)+1) | |
| c = ['find', folder, '-iname', pattern, '-type', 'f', '-newermt', firstofmonth, '!', '-newermt', firstnextmonth] |
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
| uv on points, massive smooth of P with attribblur, normal, polyframe | |
| then into this with the original on second input: | |
| [email protected] = dot(@opinput1_P - @P, v@N); | |
| [email protected] = dot(@opinput1_P - @P, v@tangentu); | |
| [email protected] = dot(@opinput1_P - @P, v@tangentv); | |
| remesh the smoothed one then output of above into second input of: |
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
| 00000000001b7200 s EH_frame1 | |
| 0000000000005520 T _convert_10bit_y_uv_vectors_to_10bit_rgb_vectors_bt601_sse2_ssse3 | |
| 00000000000055f0 T _convert_10bit_y_uv_vectors_to_10bit_rgb_vectors_bt709_sse2_ssse3 | |
| 0000000000005470 T _convert_10bit_y_uv_vectors_to_10bit_rgb_vectors_sse2_ssse3 | |
| 0000000000004d90 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt601_sse2_ssse3 | |
| 0000000000004e50 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt601_sse2_ssse3_sse41 | |
| 0000000000004f10 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3 | |
| 0000000000004fd0 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3_sse41 | |
| 0000000000005090 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_sse2_ssse3 | |
| 0000000000005150 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_sse2_ssse3_sse41 |
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/python | |
| import os, glob, xml.etree.ElementTree as et | |
| html = open('/tmp/matchboxlist.html', 'w') | |
| xmls = glob.glob('/opt/Autodesk/presets/2019.2.1/matchbox/shaders/LOGIK/*.xml') | |
| xmls.sort() | |
| for xml in xmls: |
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
| from PIL import Image | |
| import imagehash, os, sys | |
| basenames1 = os.listdir(sys.argv[1]) | |
| basenames2 = os.listdir(sys.argv[2]) | |
| list1 = [] | |
| list2 = [] | |
| for (dirn, basen, lis) in ((sys.argv[1], basenames1, list1), (sys.argv[2], basenames2, list2)): | |
| for fil in basen: |
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
| // Create a basis from points of triangle. | |
| matrix3 basis_from_triangle(vector p1, p2, p3) | |
| { | |
| // Axes vectors. May not be orthogonal. | |
| vector X, Y, Z; | |
| Z = p2 - p1; | |
| X = p3 - p1; | |
| Y = normalize(cross(Z, X)) * length(p2 - p3); | |
| return set(X, Y, Z); | |
| } |
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/python | |
| # Prints a progress bar and stats for a folder filling with files | |
| # Pass the path and the total expected count, like: | |
| # ./progress.py /path/to/somewhere/ 900 | |
| # |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU | 62% 157/250 0.2fps 6.4spf eta0:09:57 | |
| # TODO: | |
| # o Data rate stats | |
| # o Take a fragment of shell script for custom counting | |
| import os, sys, time, datetime |
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/python | |
| # pass: /path/to/scene.hip ropname startframe endframe howmany threadseach | |
| # e.g.: | |
| # /works/useful/poast/hrender-multi.py /Volumes/fast/nissan/eye/eye_v08.hip mantra1 1 118 16 1 | |
| import sys, os, time | |
| hipfile = sys.argv[1] | |
| rop = sys.argv[2] | |
| start = int(sys.argv[3]) |
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
| set cut_paste_input [stack 0] | |
| version 11.2 v1 | |
| CheckerBoard2 { | |
| inputs 0 | |
| format "2048 1024 0 0 2048 1024 1 2048x1024" | |
| name CheckerBoard1 | |
| selected true | |
| xpos -40 | |
| ypos -153 | |
| } |
NewerOlder