Use FFMpeg to Segment mp4 to HLS without transcoding ffmpeg -i input.mp4 -c:v copy -c:a copy -f segment -segment_time 10 out.m3u8
Docker cannot kill container cannot stop container: fbcde7710359c14cdb9767e109589db40706a1df8222f0f6c48ff2def2cc03a1: Cannot kill container fbcde7710359c14cdb9767e109589db40706a1df8222f0f6c48ff2def2cc03a1: unknown error after kill: runc did not terminate sucessfully: container_linux.go:392: signaling init process caused "permission denied" Run: sudo aa-remove-unknown
Resize/Expand Ubuntu 18.04 Root Partition on EXSi Works with standard BIOS and when not using LVM. Shut down VM, resize disk in ESXi by editing VM and entering a larger sizeDownload GParted live ISO from https://gparted.org/download.phpEdit the VM, select the GParted ISO in the CDROM settings and
Copy files on build of Android React Native Project React Native for Android uses Gradle for builds. For some content to be packaged correctly for Android, it must be placed in the android/src/main/assets/ directory. If you are building a project for both iOS and Android, you may need to have
Ruby on Rails Action Text with UUID records By default bin/rails action_text:install will generate migrations with integer primary keys for the record_id. If your parent model has a uuid primary key, you will likely end up with a PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_
Convert Vertical Video to 16:9 with FFmpeg ffmpeg -i input.mp4 -crf=20 -vf 'split[original][copy];[copy]scale=ih*16/9:-1,crop=h=iw*9/16,gblur=sigma=80,eq=saturation=0.9[background];[background][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2' output.mp4 Takes input.
Ubuntu 19.10 & i3 WM on Lenovo Thinkpad X1 Carbon (7th Generation) These are my personal notes about setting up an X1 Carbon for use as a linux dev machine. Thinkpad X1 Carbon Gen 7 Ubuntu 19.10 i3wm 4.16.1 Initial setup sudo apt install i3 Log out, select i3 from gear menu and
Test CORS From the Command Line Here's a quick zsh function that will test for CORS using curl. # Test URL for CORS headers # # Usage: test-cors $file $method $origin # # Examples: # test-cors https://example.com/file.png # test-cors https://example.com/file.png POST # test-cors https://example.com/file.png POST https:
Get Up and Running with Phoenix on Docker in Five Minutes Docker enables developers to experiment with new languages without leaving any lasting effects or cruft on our machines. To encourage other developers to try Phoenix & Elixir, below are instructions to get up and running with Phoenix on Docker in just a few minutes.
Profile doesn't match the entitlements file's values for the application-identifier and keychain-access-groups entitlements This can occur when trying to sign a new iOS app when an entitlements file doesn't exist, or the application name has been changed. Go into "Capabilities" and toggle iCloud on, then off. This will create or update the entitlements file. Rebuild
Run mosh-server on MacOS So, what is Mosh? It's an SSH replacement that helps with bad connections (ever tried to SSH into something in the passenger seat of a car?) and allows you to persist connections (close your laptop at work and resume it at home without losing
NVM fails to load in tmux I recently got the following error when loading a new tmux session: nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local" Run `npm config delete prefix` or `nvm use --delete-prefix v8.12.0 --silent`
Open new tmux windows and panes with current path When creating a new window or pane in tmux the path will be set to ~/ by default. You can rebind the keys to make the new window or pane open with the current path: # .tmux.conf bind '"' split-window -c "#{pane_
Fixing silent audio playback on iOS screen recording I used the built-in iOS screen recording (available on >= iOS 11) and had audio playback issues after transferring the mp4 file to my computer. I recorded my voiceover with the built-in mic (enabled by force-pressing/long-tapping the icon in control center). After transferring
OneDark Theme for Alfred 3 I created a basic OneDark theme for Alfred 3. View and install: https://www.alfredapp.com/extras/theme/hX0aIELVG8/
Mount a Linux NFS share from MacOS 10.13 High Sierra Server OS: Ubuntu 16.04.3 NFS can be a bit quirky, but I needed to use it recently in a local development environment. I ran into a few issues connecting from MacOS that I do not usually with Linux-only client/server connections. NFSv4
Early Intel 900P Benchmarks Update (1/21/18): I have recently started using a 2017 iMac Pro with the custom Apple T2 SSD controller. Since the libaio engine is not available to MacOS, I used the default ioengine=sync for the cross-platform benchmark. As far as I can
Compiling Tmux 2.6 on Ubuntu 16.04 Tmux added 24-bit color support in version 2.3. However, the Tmux available in the Ubuntu 16.04 package manager is 2.1 as of October 2017. You can also read my post covering the steps to compile Vim 8.x on Ubuntu 16.
Ember & Phoenix Development with Docker Compose 9/10/19 NOTE: While much of this should still work, this guide is quite old at this point. See an updated guide on how to run Phoenix on Docker. Docker: 17.03 (Docker for Mac) Docker Compose: 1.11.2 Ember: 2.12.
Compiling vim 8.x on Ubuntu 16.04 Last Updated: 10/23/17 OS: Ubuntu 16.04 I ran into some issues while attempting to install the Atom One Dark theme for vim. The vim currently available in apt-get on 16.04 is 7.4.1689, a version predating the addition of
Set up Powerlevel9k and Oh My ZSH on iTerm My preferred shell is zsh with Oh My Zsh. After using the default theme for years, I recently switched to a more involved setup. Here is an image of my current prompt: This theme uses the following projects: bhilburn/powerlevel9k powerline/fonts nathanbuchar/atom-one-dark-terminal
Use Let's Encrypt SSL with Gitlab CE Date: 8/19/16 Ubuntu: 16.04 Gitlab: 8.10.5 This guide borrows heavily from https://webnugget.de/setting-up-gitlab-with-free-ssl-certs-from-lets-encrypt-on-ubuntu-14-04/ and has been updated as needed. This guide also assumes an existing and working Gitlab install. Install Let's Encrypt Level up to root (we
How to Add a Swapfile on Ubuntu 14.04 I ran across an issue today where my npm install was failing with a cryptic 'killed' error. I knew the issue was probably due to RAM pressure as I was running on a Digital Ocean 512MB droplet. Instead of upgrading the droplet to 1GB