I hereby claim:
- I am zealot128 on github.
- I am stefanwienert (https://keybase.io/stefanwienert) on keybase.
- I have a public key whose fingerprint is DB9A C627 56EF 892A 35D9 727E 2630 9489 C29F E67F
To claim this, I am signing this object:
| $ -> | |
| $(document).on 'click', '.js-modal, #js-modal .modal-body a', (e)-> | |
| return true if $(this).data('toggle') | |
| e.preventDefault() | |
| modal = """ | |
| <div class='modal fade container' id='js-modal' role="dialog" > | |
| <div class='no-modal-dialog'> | |
| <div class='modal-content'> | |
| <div class='modal-header'> | |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| require 'active_record' | |
| require 'fileutils' | |
| ActiveRecord::Base.logger = Logger.new(STDERR) | |
| db = "db/#{ENV['RACK_ENV']}.sqlite3" | |
| if not File.exists? db | |
| `sqlite3 #{db} '' ` | |
| end |
I hereby claim:
To claim this, I am signing this object:
Needs imagemagick + pngquant
favicon_logo_big.png in the same folder as source.sh,bash source.shapp/assets/images/faviconsDownloads Tiles with a radius of 10 tiles around the given lat//lon/zoom.
Useful for small landing pages where you only want to display the company's location in a Leaflet without querying OSM, which might be slow or not support SSL.
| --- | |
| # Disable roaming for all servers, upgrade ssh-server + openssl | |
| # you can test with: ssh whoami.filippo.io | |
| # run with: ansible-playbook -i YOURINVENTORY hotfix.yml | |
| - hosts: all | |
| tasks: | |
| - lineinfile: | |
| insertafter: 'Host *' | |
| line: ' UseRoaming no' | |
| dest: '/etc/ssh/ssh_config' |
| # can also be *.flv or *.wmv etc. | |
| files = Dir['*.mp4'] | |
| # min size | |
| mb = 10 | |
| def size_mb(file) | |
| (File.size(file).to_f / 1024 / 1024).round |
| # Screencast on OSX | |
| ffmpeg -r 30 -f avfoundation -capture_cursor 1 -capture_mouse_clicks 1 -i "1:0" out2.mp4 | |
| # Framerate 30 | |
| # Cursors + Clicks | |
| # "1:0" -> first screen and microphone | |
| # list all devices for above | |
| ffmpeg -f avfoundation -list_devices true -i "" |
Based upon http://blog.honeypot.io/45-ruby-blogs/