brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| ffmpeg -i input.mp4 -s hd480 -f image2 img-%4d.png # dump the video to .png images, 480p | |
| for i in *.png; do convert $i -colorspace Rec709Luma pgm:- | pamditherbw -atkinson | pnmtopng > p$i; done; # convert .png images to 1-bit dithered .pngs | |
| ffmpeg -r [orig. framerate] -i pimg-%4d.png -i input.mp4 -map 0:0 -map 1:1 -c:a copy -c:v libx264 -tune stillimage -crf 18 -r 24 lol.mkv | |
| #take dithered png files, original video's audio, make a video with x264, tuned for still images and a copy of the audio. specify frame rate for proper a/v sync | |
| # -map 1:1 maps audio from 2nd input (orig video) to audio of new video. assumes stream 1 is desired audio track. check this. | |
| Go to Bitbucket and create a new repository (its better to have an empty repo) | |
| git clone [email protected]:abc/myforkedrepo.git | |
| cd myforkedrepo | |
| Now add Github repo as a new remote in Bitbucket called "sync" | |
| git remote add sync [email protected]:def/originalrepo.git | |
| Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
| git remote -v |
| #!/usr/bin/env python3 | |
| # esc-pos-image.py - print image files given as command line arguments | |
| # to simple ESC-POS image on stdout | |
| # scruss - 2014-07-26 - WTFPL (srsly) | |
| # - 2021-01-09 (made python3 compatible - tvm Carko!) | |
| # if you want a proper CUPS driver for a 58mm thermal printer | |
| # that uses this command set, go here: | |
| # https://github.com/klirichek/zj-58 |
| #!/usr/bin/python | |
| # esc-pos-image-star.py - print image files given as command line arguments | |
| # to simple ESC-POS image on stdout | |
| # using ESC * \x21 | |
| # scruss - 2014-07-26 - WTFPL (srsly) | |
| import sys | |
| from PIL import Image | |
| import PIL.ImageOps | |
| import struct |
| extension NSMutableAttributedString { | |
| func add(attribute: Attribute, range: NSRange) throws { | |
| guard (range.location + range.length) <= length else { | |
| throw AttributedStringError.InvalidRange(range: range) | |
| } | |
| addAttribute(attribute.name, value: attribute.value, range: range) | |
| } | |
| } |
Researched by Robert Quattlebaum [email protected].
Last updated 2020-02-03.
| diff --git a/deps/media-playback/CMakeLists.txt b/deps/media-playback/CMakeLists.txt | |
| index d58d121..ae938fa 100644 | |
| --- a/deps/media-playback/CMakeLists.txt | |
| +++ b/deps/media-playback/CMakeLists.txt | |
| @@ -28,6 +28,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le") | |
| PUBLIC | |
| -mvsx) | |
| add_compile_definitions(NO_WARN_X86_INTRINSICS) | |
| +elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch).*") | |
| elseif(NOT MSVC) |