1030Concatenating Videos with ffmpeg
Concatenating videos with the Quicktime Player requires unnecessary decoding/encoding, with takes time and computational resources.
https://trac.ffmpeg.org/wiki/Concatenate
Using ffmpeg
Concatenating videos with the Quicktime Player requires unnecessary decoding/encoding, with takes time and computational resources.
https://trac.ffmpeg.org/wiki/Concatenate
Using ffmpeg
This is a short, condensed instruction how to set-up command-line access to github.com. Written is response to onboard new FabAcademy students - and get them started with MkDocs.
This guides is for macOS 12 or higher. My Mac uses macOS Ventura 13.0.01.
Go to the .ssh
directory.
$ cd ~/.ssh
Made new key:
$ ssh-keygen -t ed25519 -C "your_email@example.com"
$
, just the ssh-keygen -t ed25519 -C "your_email@example.com"
part. But with your email.You can name your key. For this example, we call it id_github_test
.
$ eval "$(ssh-agent -s)"
Open .ssh/config
in your favourite text editor. If you want to stay at the command line, use nano.
Add the following:
Host *.github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_github_test
Adding private key to ssh-agent
$ ssh-add --apple-use-keychain ~/.ssh/id_github_test
This add the new key to the Apple Keychain.
If you used a passphrase when you created the key, you will be asked for it now.
Enter passphrase for /Users/georg/.ssh/id_github_test:
Identity added: /Users/georg/.ssh/id_github_test (your_email@example.com)
Copy and paster your public key, in this example case, id_github_test.pub.
The tutorial on Github suggest to copy the public key using a command:
$ pbcopy < ~/.ssh/id_github_test.pub
pbcopy
- for paste board copy is the terminal interface to the macOS' Copy & Paste. pbcopy <
read the content of a file into the copy memory. After running pbcopy
you can press Command-V to paste the text.
I setup Two-Factor Authentication at GitHub.com, I had to confirm the addition of a new key via my mobile GitHub App. Your mileage might vary.
$ ssh -T git@github.com
Hi trembl! You've successfully authenticated,
but GitHub does not provide shell access.
Sources:
This warning is pretty self- explanatory:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/georg/.ssh/my_rsa_key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Limit the key to read/write access by the user only:
chmod 600 ~/.ssh/my_rsa_key
It's also possible to make it only readable by the user, but then you need to chmod every time you want to update/change it.
chmod 400 ~/.ssh/my_rsa_key
Sources: StackOverflow
Quick run through hugo Installation & Update on macOS.
brew install hugo
hugo version
hugo v0.109.0+extended darwin/amd64 BuildDate=unknown
brew upgrade hugo
Warning: hugo 0.109.0 already installed
hugo new site my-new-hugo-site
cd my-new-hugo-site
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke themes/ananke
echo "theme = 'ananke'" >> config.toml
hugo does not come with an in-built theme, therefore we need to clone the anake theme into themes/ananke. More hugo themes. Clone and update config.toml.
hugo server
Just hugo, nothing else.
hugo
Start building sites …
hugo v0.109.0+extended darwin/amd64 BuildDate=unknown
INFO 2022/12/26 19:37:15 syncing static files to /
| EN
-------------------+-----
Pages | 10
Paginator pages | 0
Non-page files | 0
Static files | 1
Processed images | 0
Aliases | 1
Sitemaps | 1
Cleaned | 0
Total in 154 ms
Quick run through mkDocs Installation & Update on macOS.
pip install mkdocs
mkdocs -V
mkdocs, version 1.1.2 from /usr/local/lib/python3.9/site-packages/mkdocs (Python 3.9)
pip install -U mkdocs
mkdocs -V
mkdocs, version 1.4.2 from /usr/local/lib/python3.9/site-packages/mkdocs (Python 3.9)
pip install mkdocs-material
pip install -U mkdocs-material
mkdocs new my-new-site
cd my-new-site
mkdocs serve
⌨️: ^[ctrl]-C
Facebook's depreciate Custom Share Link (as of 2022). Still work, but not recommended.
https://www.facebook.com/sharer/sharer.php?u=custom_url
A simple Automator Action to import Screenshots in OSX into Photos:
I also have my Screenshots Folder on Dropbox, the Folder Actions are attached to that Folder.
Finds all empty JPEGs at current directory:
find . -maxdepth 1 -name "*.jpg" -size 0
Finds and deletes all empty JPEGs at current directory:
find . -maxdepth 1 -name "*.jpg" -size 0 -delete
Finds and deletes all empty JPEGs in all sub-directories.
find . -maxdepth 2 -name "*.jpg" -size 0 -delete
Working with XAMPP and and phpMyAdmin makes dealing with databases more visual, but importing large db dumb files can fail/take a long time.
Importing from the command line is faster and more stable.
mysql
, if there is not a global mysql
cd /Applications/XAMPP/xamppfiles/bin
./mysql -u root -p db_name < ~/path/to/db/file.sql