Skip to content

Instantly share code, notes, and snippets.

View greenboxal's full-sized avatar
🏵️
GitHub Gold Member

Jonathan Lima greenboxal

🏵️
GitHub Gold Member
View GitHub Profile
export http_proxy=
export https_proxy=
curl -XDELETE 'http://localhost:9200/test/'
echo "Creating the mapping"
curl -XPUT 'http://localhost:9200/test/?pretty=1' -d '
{
"mappings" : {
"member" : {
bool isPrime(int n)
{
int max = (int)sqrt(n);
for (int j = 2; j < max; j++)
if (n % j == 0)
return false;
return true;
}
@greenboxal
greenboxal / gist:3063160
Created July 6, 2012 22:43 — forked from justincjahn/gist:3062860
Gitlab init.d for RedHat based distributions.
#!/bin/bash
#
# GitLab Runs unicorn and resque for nginx integration.
###
# chkconfig: 35 98 55
# processname: unicorn
# processname: resque
# description: Runs unicorn and resque for nginx integration.
###