Skip to content

Instantly share code, notes, and snippets.

View dbeattie71's full-sized avatar

Derek Beattie dbeattie71

  • Nebraska
  • 06:28 (UTC -05:00)
View GitHub Profile
Building native extensions. This could take a while...
ERROR: Error installing knife-ec2:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150119-12518-1qmgu0.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for iconv... yes
************************************************************************
@dbeattie71
dbeattie71 / 0. nginx_setup.sh
Created July 12, 2016 19:44 — forked from mikhailov/0. nginx_setup.sh
Nginx + secure pseudo-streaming
# Nginx can serve FLV/MP4 files by pseudo-streaming way without any specific media-server software.
# To do the custom build we use 2 modules: --with-http_secure_link_module --with-http_flv_module
# This module "secure-link" helps you to protect links from stealing away.
#
# NOTE: see more details at coderwall: http://coderwall.com/p/3hksyg
cd /usr/src
wget http://nginx.org/download/nginx-1.5.13.tar.gz
tar xzvf ./nginx-1.5.13.tar.gz && rm -f ./nginx-1.5.13.tar.gz
@dbeattie71
dbeattie71 / README.md
Created July 3, 2016 19:13 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@dbeattie71
dbeattie71 / QueryableExpandAttribute.cs
Created June 18, 2016 16:55
QueryableExpandAttribute ActionFilterAttribute
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
using System.Linq;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace MyDrivingService.Helpers
{
//
// SimpleScrollingStack.swift
// A super-simple demo of a scrolling UIStackView in iOS 9
//
// Created by Paul Hudson on 10/06/2015.
// Learn Swift at www.hackingwithswift.com
// @twostraws
//
import UIKit
@dbeattie71
dbeattie71 / nuget.sh
Created April 30, 2016 22:05 — forked from andypiper/nuget.sh
nuget for OS X
#!/bin/sh
# add a simple 'nuget' command to Mac OS X under Mono
# get NuGet.exe binary from http://nuget.codeplex.com/releases/view/58939
# get Microsoft.Build.dll from a Windows .NET 4.0 installation
# copy to /usr/local/bin and Robert is your father's brother....
#
PATH=/usr/local/bin:$PATH
mono --runtime=v4.0 /usr/local/bin/NuGet.exe $*
@dbeattie71
dbeattie71 / git-mv-with-history
Created April 24, 2016 21:42 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
@dbeattie71
dbeattie71 / .bash_profile
Created April 24, 2016 21:17 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@dbeattie71
dbeattie71 / build.sh
Created April 24, 2016 20:06 — forked from vood/build.sh
#!/usr/sh -e
#clone our private github repo with Xamarin project
git clone git@github.com/our_xamarin_project.git
cd our_xamarin_project
#update homebrew
brew update
#install Xamarin.Studio, Xamarin.iOS, Xamarin.Android, Mono
brew cask install xamarin-mdk xamarin-ios xamarin-studio xamarin-android
#install nuget dependencies
@dbeattie71
dbeattie71 / gist:634effdd20d3f07fbe4cd6fa75db930b
Created April 24, 2016 20:05 — forked from jpotts18/gist:9240598
Xamarin Dual build Jenkins Script
# Source Path Variables
source ~/.bash_profile
# uncomment to run this script in your local environment (outside of jenkins)
set -x
#WORKSPACE="/Users/parivedadeveloper/Projects/pariveda-finternship-2013"
# ANDROID
ANDROID_FOLDER="${WORKSPACE}/source/BBP.Droid"
ANDROID_CSPROJ="${ANDROID_FOLDER}/BBP.Droid.csproj"