on MacOS:
- ⇧⌘5 to record part of the screen
- record with intended final aspect ratio if not padding
- trim recording appropriately
| // @mngyuan: below follows a list of what i did | |
| // copied definitions from Motors_Radio_Controller to top section of file | |
| // copied setup() from Motors_Radio_Controller into setup() function | |
| // copied loop() from Motors_Radio_Controller into loop() function | |
| // changed value of CURRENT_SEN_1 and EN_PIN_1 to not clash with SD card code | |
| // commented extra Serial.begin() from SD card's setup() | |
| // formatted code with clang-format set to Google config | |
| // | |
| // notes: | |
| // * the sd card code hardcodes pin 53 as your SS pin, but it varies based on |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <!-- | |
| Adapted from the .mobileconfig which the Virgin Media iOS app downloads. Essentially removed the | |
| signing payload. This approach is necessary because AFAIK it's the only way to select MSCHAPv2 | |
| as the auth method for EAP TTLS in macOS. | |
| Replace VIRGINUSER with your Virgin login email and VIRGINPASSWORD with your password, | |
| then open and then open System Preferences to install. |
| #!/bin/zsh | |
| FILELIST=$( find *film -maxdepth 2 -mindepth 2 -type f -print ) | |
| RANDOMFILE=$( echo $FILELIST | sort --random-sort | head -n 1 ) | |
| echo $RANDOMFILE | |
| open $RANDOMFILE |
| #!/bin/zsh | |
| # requires ffmpeg | |
| # | |
| # you may need to change "framedump1.avi" to "framedump0.avi" or similar, but it's always "framedump1.avi" for me | |
| cd ~/Library/Application\ Support/Slippi\ Launcher/playback/Slippi\ Dolphin.app/Contents/Resources/User/Dump | |
| ffmpeg -i Frames/framedump1.avi -i Audio/dspdump.wav -map 0:v -map 1:a -c:v copy -shortest output.mp4 | |
| # add a bottom part so it's vertical aspect ratio so it can be uploaded to YouTube shorts | |
| ffmpeg -i output.mp4 -i ~/Desktop/overlay.png -filter_complex vstack=inputs=2 -r 60 output-vertical.mp4 |
| # usage: ./download.sh example-file.m3u8 output-name | |
| # credit @brandur see https://brandur.org/fragments/ffmpeg-h265 | |
| ffmpeg -i "$1" -c:v libx265 -crf 35 -preset fast -tag:v hvc1 -c:a eac3 -b:a 224k $2.mp4 |
| 大家好!我是李梦远。我在找机会练习我的中文。要是你想跟我谈一谈一起练,请送我个短信!@mngyuan | |
| d | | i | |
| r ------|------|------ n | |
| e ___|______|___ g | |
| a | | | | | |
| m |___|____|___| d | |
| /-----------------/ r | |
| d / /________ / e | |
| r _/ / a |
| import React from 'react'; | |
| const Home = ({dispatch, currentRoute}) => { | |
| <span> | |
| You're at Home {currentRoute}. | |
| <a onClick={() => dispatch({type: 'PUSH', path: '/about'})}> | |
| About | |
| </a> | |
| </span> | |
| }; |
| # context: | |
| # list of privacy and security concerns: | |
| # https://techcrunch.com/2020/03/31/zoom-at-your-own-risk/ | |
| # july 2019 exploit: | |
| # https://www.theverge.com/2019/7/9/20688113/zoom-apple-mac-patch-vulnerability-emergency-fix-web-server-remove | |
| # open zoom -> click zoom.us next to File -> Uninstall Zoom | |
| # then: | |
| # delete application | |
| sudo rm -rf /Applications/zoom.us.app |
| image: node:alpine | |
| # Cache node modules - speeds up future builds | |
| cache: | |
| paths: | |
| - node_modules | |
| pages: | |
| stage: deploy | |
| script: |