Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
) | |
const ( |
package WebCrawl::Crawl; | |
use Mojo::Base 'Mojolicious::Controller'; | |
sub crawl { | |
my $self = shift; | |
# Increase inactivity timeout for connection a bit | |
Mojo::IOLoop->stream($self->tx->connection)->timeout(15); | |
# Change content type |
<!-- Raven.js Config --> | |
<script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// Ignore list based off: https://gist.github.com/1878283 | |
var ravenOptions = { | |
// Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion. | |
// See: https://github.com/getsentry/raven-js/issues/73 | |
ignoreErrors: [ | |
// Random plugins/extensions | |
'top.GLOBALS', |
#!/usr/bin/env perl | |
# Inspired by @trisweb: | |
# http://github.com/holman/spark/wiki/Wicked-Cool-Usage | |
use strict; | |
use warnings; | |
use Getopt::Long::Descriptive; | |
use Encode qw/encode decode/; | |
use DateTime; |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use HTTP::Daemon; | |
use IO::Socket; | |
my $torport=9051; | |
my $password="footor"; | |
my $good = HTTP::Response->new( |
# First, create the synonyms file /opt/elasticsearch/name_synonyms.txt | |
# with the contents: | |
# | |
# rob,bob => robert | |
# | |
## CREATE THE INDEX WITH ANALYZERS AND MAPPINGS | |
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d ' | |
{ |
#!/bin/bash | |
function flask-boilerplate-tmux | |
{ | |
# https://github.com/swaroopch/flask-boilerplate | |
BASE="$HOME/code/flask-boilerplate" | |
cd $BASE | |
tmux start-server | |
tmux new-session -d -s flaskboilerplate -n model |