Just use the command below:
ffmpeg -i INPUT_FILE \
-vf scale=3840x2160:flags=lanczos \
-c:v libx264 \
-crf 13 \
-c:a aac -b:a 512k \
| require 'openssl' | |
| def encrypt_string(str) | |
| cipher_salt1 = 'some-random-salt-' | |
| cipher_salt2 = 'another-random-salt-' | |
| cipher = OpenSSL::Cipher.new('AES-128-ECB').encrypt | |
| cipher.key = OpenSSL::PKCS5.pbkdf2_hmac_sha1(cipher_salt1, cipher_salt2, 20_000, cipher.key_len) | |
| encrypted = cipher.update(str) + cipher.final | |
| encrypted.unpack('H*')[0].upcase | |
| end |
| #!/usr/bin/env node | |
| console.log('yay gist') |
gem 'rails_12factor' to your Gemfile. This will add error logging and the ability for your app to serve static assets.bundleRAILS_ENV=production rake db:create db:migrate db:seedrake secret and copy the outputexport SECRET_KEY_BASE=output-of-rake-secretrake assets:precompile. This will create a folder public/assets that contains all of your assets.RAILS_ENV=production rails s and you should see your app.Remember to clobber your assets (rake assets:clobber) and re-precompile (rake assets:precompile) if you make changes.
| ## Build generated | |
| build/ | |
| DerivedData | |
| build.xcarchive | |
| ## Various settings | |
| *.pbxuser | |
| !default.pbxuser | |
| *.mode1v3 | |
| !default.mode1v3 |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So β + D does not mean hold shift. β + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | β + T |
| Close Tab or Window | β + W (same as many mac apps) |
| Go to Tab | β + Number Key (ie: β2 is 2nd tab) |
| Go to Split Pane by Direction | β + Option + Arrow Key |
| ####### License: MIT | |
| """MIT License | |
| Copyright (c) 2015 Aaron Hall | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| # Changed to use content-type flag instead of header: -H 'Content-Type: application/json' | |
| siege -c50 -t60S --content-type "application/json" 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}' |
| Host github.com | |
| User git | |
| Hostname github.com | |
| PreferredAuthentications publickey | |
| IdentityFile /home/user/.ssh/id_rsa |