Installing Google Test on Mac
One bash script to install google test (and mock) on your Mac. I assume you already had install cmake
(if not, use brew - brew install cmake
).
It use brew directories to store gmock and gtest.
#!/usr/bin/env bash
function parse_url(url) { | |
/* Dom parsing of A | |
based at https://gist.github.com/jlong/2428561 | |
*/ | |
var parser = document.createElement('a'); | |
parser.href = url; | |
/* Exception for user:password */ | |
var re = /(\/\/)(.+?)((:(.+?))?)@/i; | |
if ( re.exec(url) ){ |
#!/bin/bash | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install homebrew's official php tap | |
brew tap josegonzalez/homebrew-php | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
One bash script to install google test (and mock) on your Mac. I assume you already had install cmake
(if not, use brew - brew install cmake
).
It use brew directories to store gmock and gtest.
#!/usr/bin/env bash
Let's imagine we have a lot of mp3 files ( forexample one of the pluralsite courses converted to mp3 ).
URL=https://www.pluralsight.com/courses/run-effective-meetings
PASS=pass
USER=user
OUTPUT="%(playlist_index)s. %(title)s-%(id)s.%(ext)s"
youtube-dl --username $USER --password $PASS -o $OUTPUT --extract-audio --audio-format mp3 $URL
Installing Go kernel for Jupyter notebooks
brew install zeromq
brew install pkg-config
https://github.com/gopherdata/gophernotes
go get -u github.com/gopherdata/gophernotes
mkdir -p ~/Library/Jupyter/kernels/gophernotes
p $GOPATH/src/github.com/gopherdata/gophernotes/kernel/* ~/Library/Jupyter/kernels/gophernotes
# Compare two versions, in version format Major.Minor.Patch | |
# It doesn't validate version format, only compare values. | |
# | |
# Usage : | |
# version_compare <compared> <required> | |
# | |
# Example: | |
# version_compare 0.13.1 0.11.0 | |
# | |
# returns |
Output of dinamic inventory.
> ./hosts
{
"kube-master": [
"master-1"
],
"kube-node": [
"node-sml-1",