- Some notes about this approach:
- An OSX Installer USB drive for
Install OS X El Capitanis created - Clover is then installed on the USB drive
- Clover Configurator is then run on the USB drive
- The USB drive contents are copied to the VM host
- VNC is used to connect to the guest UI
- An OSX Installer USB drive for
- The qxl virtual video device is used (part of the standard kvm qemu install)
| // This is an example of using elastic's BulkProcessor with Elasticsearch. | |
| // | |
| // See https://github.com/olivere/elastic and | |
| // and https://github.com/olivere/elastic/wiki/BulkProcessor | |
| // for more details. | |
| /* | |
| * This example illustrates a simple process that performs bulk processing | |
| * with Elasticsearch using the BulkProcessor in elastic. | |
| * |
Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.
If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3
HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.
Follow along...
| #include <math.h> | |
| #include <algorithm> | |
| #include <string> | |
| #include <immintrin.h> | |
| using namespace std;typedef float R; | |
| #define _W 79 | |
| #define _H 39 | |
| #define EP 0.01f | |
| #define OP operator | |
| #define C const |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
| # Compares if a version is greater than other. | |
| Gem::Version.new('2.1.15') > Gem::Version.new('1.14.1') | |
| # => true | |
| # It supports any number of minor versions | |
| Gem::Version.new('2.0.0.1') < Gem::Version.new('2.0.1') | |
| # => true | |
| # And it deals with empty strings and nil values | |
| Gem::Version.new('') < Gem::Version.new('2.0.1') |
| // | |
| // BonjourPublisher.swift | |
| // BonjourTest | |
| // | |
| // Created by Dov Frankel on 10/12/15. | |
| // Copyright © 2015 Dov Frankel. All rights reserved. | |
| // | |
| import Foundation |
Prerequisites : the letsencrypt CLI tool
This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.
You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge.
Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.
I redirect all HTTP requests on HTTPS, so my nginx config looks like :
server {
| server { | |
| listen 80; | |
| server_name maxmobiles.lo *.maxmobiles.lo; | |
| root /var/www/maxmobiles.lo; | |
| error_log /var/www/maxmobiles.lo/log/error.log warn; | |
| location / { | |
| index index.html index.php; ## Allow a static html file to be shown first |
| # This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
| # See https://www.byte.nl/blog/magento-cacheleak-issue | |
| # !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
| user app; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { |