Skip to content

Instantly share code, notes, and snippets.

@Znow
Znow / es.sh
Created December 19, 2011 12:52 — forked from aaronshaf/es.sh
Install ElasticSearch on Ubuntu 11.04
cd ~
sudo apt-get install unzip
sudo apt-get install python-software-properties -y
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
@Znow
Znow / gist:2399733
Created April 16, 2012 16:12 — forked from bsodmike/gist:2399719
Agile Git Workflow

First fetch origin

mdesilva@mbpi7 [06:45:00] abtion/exact {ruby-1.9.2@rails32x} [development] 
-> % git fo
remote: Counting objects: 29, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 20 (delta 16), reused 0 (delta 0)
Unpacking objects: 100% (20/20), done.
From psi.abtion.com:clientele/exact
# /etc/nginx/sites-enabled/berlin
upstream spree.ryanbigg.com {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
# for UNIX domain socket setups:
server unix:/tmp/berlin.socket fail_timeout=0;
}
@Znow
Znow / RoundBorderDatePicker.cs
Last active October 8, 2022 09:44 — forked from jessejiang0214/RoundBorderDatePicker.cs
This is the Xamarin Forms date picker extension. It can set border width, color and radius, also it can add PlaceHolder and MinimumAge. Updated to 2.5 requirements
using System;
using Xamarin.Forms;
namespace MyApp
{
public interface ICanBeValidated
{
Action<bool> ValidateChange { get; set; }
bool IsValidated { get; set; }