This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### VARIABLES ### | |
PRE_PACK="openssl-devel pcre-devel make gcc" | |
VER="1.5.1" | |
# Setup Colours | |
black='\E[30;40m' | |
red='\E[31;40m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### VARIABLES ### | |
PRE_PACK="gcc gcc-c++ make pcre-devel zlib-devel unzip wget htop" | |
OPT_PACK="openssl-devel" | |
VER="1.6.2" | |
USER="nginx" | |
GROUP="nginx" | |
INSTALL_DIR="/etc/nginx" | |
PROG_NAME="nginx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to the YAML section: | |
ansible_ssh_port: 1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /blurays | |
{ | |
"settings": { | |
"analysis": { | |
"filter": { | |
"nGram_filter": { | |
"type": "nGram", | |
"min_gram": 2, | |
"max_gram": 20, | |
"token_chars": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
NOW=$( date '+%Y-%m-%d_%H-%M-%S' ) | |
FILE="$NOW.txt" | |
touch ~/$FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#@ template language="C#" hostspecific="true" debug="True" #> | |
<#@ assembly name="System.Core" #> | |
<#@ assembly name="System.Data" #> | |
<#@ assembly name="System.Xml" #> | |
<#@ assembly name="Microsoft.SqlServer.Smo" #> | |
<#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #> | |
<#@ assembly name="Microsoft.SqlServer.Management.Sdk.Sfc" #> | |
<#@ import namespace="System" #> | |
<#@ import namespace="System.IO" #> | |
<#@ import namespace="System.Linq" #> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo ' | |
### | |
# Welcome to graphite creator | |
### | |
!!! | |
! THIS WILL REMOVE /var/www - MAKE SURE YOU WANT TO DO THIS! | |
!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Tweetinvi; | |
using Tweetinvi.Core.Interfaces; | |
//https://dev.twitter.com/rest/reference/get/favorites/list | |
namespace Twatter | |
{ | |
internal class Program | |
{ | |
private static readonly List<ITweet> tweets = new List<ITweet>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'albacore' | |
require 'fileutils' | |
PROJECT_NAME = "Your Project Here" | |
DOT_NET_PATH = "C:/Windows/Microsoft.NET/Framework/v4.0.30319/" | |
NUNIT_PATH = "Tools/nunit/" | |
MSPEC_PATH = "Tools/mspec/" | |
PROJECT_CONFIG = (ENV['PROJECT_CONFIG'] == nil) ? "Debug" : ENV['PROJECT_CONFIG'] | |
COMPANY_NAME = "Your Company Here" | |
BUILD_NUMBER = (ENV['BUILD_NUMBER'] == nil) ? "1.0.0.0" : ENV['BUILD_NUMBER'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake' | |
require 'albacore' | |
build_dir = "../build" | |
bin_dir = "#{build_dir}/bin" | |
src_dir = "../src" | |
solution = "#{src_dir}/Example.sln" | |
release_dir = "#{build_dir}/release" | |
package_dir = "#{build_dir}/package" |