Skip to content

Instantly share code, notes, and snippets.

View heiths's full-sized avatar

Heith Seewald heiths

View GitHub Profile
@heiths
heiths / CMakeLists.txt
Created July 28, 2020 07:28 — forked from FlorianWolters/CMakeLists.txt
Adding Boost as a Dependency with CMake
# COPYRIGHT (C) Florian Wolters 2014
#
# Author: Florian Wolters <wolters.fl@gmail.com>
cmake_minimum_required (VERSION 2.8.12.2 FATAL_ERROR)
# Set options for this project.
set (PROJECT_NAME "hello_boost_with_cmake" CXX)
project (${PROJECT_NAME})
set (PROJECT_SOURCE_DECLARATION_DIRECTORY ${PROJECT_SOURCE_DIR}/include)
@heiths
heiths / gridSize.js
Created February 27, 2020 00:24
gridSize
const gridSize = 10;
[...Array(25).keys()].map(i => gridSize * i);
@heiths
heiths / Big List of Real Estate APIs.md
Created April 25, 2019 01:48 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

selenium:
volumes:
- /dev/shm:/dev/shm
ports:
- "4321:4321"
build: ./docker/selenium_server/
selenium_hub:
image: selenium/hub
ports:
@heiths
heiths / Dockerfile
Last active March 7, 2018 09:50
run with: docker-compose -f poppy-compose.yaml up
##
## Poppy
##
##
FROM ubuntu:14.04
MAINTAINER Amit Gandhi <amit.gandhi@rackspace.com>
RUN apt-get -qq update
RUN apt-get -qq upgrade
@heiths
heiths / safer_docker_install.sh
Last active March 2, 2018 03:55
safe_docker_install.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
@heiths
heiths / rax.py
Created January 23, 2018 04:44
rax.py ansible inventory script that works in Ansible 2.4
#!/usr/bin/env python
# (c) 2013, Jesse Keating <jesse.keating@rackspace.com,
# Paul Durivage <paul.durivage@rackspace.com>,
# Matt Martz <matt@sivel.net>
#
# This file is part of Ansible.
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
from socket import socket
from OpenSSL import SSL
def callback(conn, cert, errno, depth, result):
if depth == 0 and (errno == 9 or errno == 10):
return False # or raise Exception("Certificate not yet valid or expired")
return True
@heiths
heiths / saio-install.sh
Last active August 17, 2017 22:33
Swift all in one (SAIO) installer
#!/usr/bin/env bash
# Make sure we’re running with root permissions.
if [ ${USER} != root ]; then
echo Please run this script using sudo
exit
fi
# Make ubuntu is > 16.10
if [ ${USER} != root ]; then
@heiths
heiths / .gitconfig
Last active March 15, 2017 15:30 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Heith Seewald
email = heiths@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[push]
default = matching
[color]