Skip to content

Instantly share code, notes, and snippets.

Ori Pekelman OriPekelman

Block or report user

Report or block OriPekelman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
OriPekelman /
Created Feb 4, 2016
Jenkins Job To reset a platform project (used for demos)
# You should export the following variables:
# $API_TOKEN which you get from marketplace
# $PROJECT_ID the platform project like 'hzdp3vdw4poyg'
# $ENVIRONMENT for example 'master'
# $BACKUP_ID which you can get from the CLI
COMPOSER=$(command -v composer >/dev/null 2>&1) || true
if [ -z "$COMPOSER" ] && [ ! -f .build/composer.phar ]; then
mkdir -p .build
curl -sS > .build/composer.phar
OriPekelman / Gemfile
Last active Dec 19, 2015
The HTTP gem failing urls
View Gemfile
source ''
gem 'http', :path =>'/Users/oripekelman/Sites/http'
gem 'sinatra'
OriPekelman /
Last active Oct 10, 2015
domain compatible slugifcation
# coding=UTF-8
import re
import unicodedata
import string
import random
first_cap_re = re.compile('(.)([A-Z][a-z]+)')
all_cap_re = re.compile('([a-z0-9])([A-Z])')
def slugify(value):
OriPekelman / ori-rulu
Created Jun 23, 2012
My #rulu presentation, what did Tony Arcieri did lately?
View ori-rulu
OriPekelman / Gemfile
Created Apr 4, 2012
Minimal File Indexer Elastic Search Example (ruby)
View Gemfile
source :rubygems
gem 'tire'
gem 'sinatra'
OriPekelman / dlq.js
Created May 31, 2015
quantized Damreau Lehvenstein in Javascript
View dlq.js
(function() {
'use strict';
* Extend an Object with another Object's properties.
* The source objects are specified as additional arguments.
* @param dst Object the object to extend.
OriPekelman /
Created May 26, 2015
Recursively creates an md file for all rst files in the source t directory and below.
#!/usr/bin/env python
Recursively creates an md file for all rst
files in the source directory and below.
import sys, os, re, subprocess
target = 'gitbook/'
source = './'
View servig a static web site with
$path = parse_url($_SERVER['REQUEST_URI']);
$path = rtrim(ltrim(rtrim($path["path"], '/'), '.'),'/'); //trim trailing slash and prefix dots
$index = realpath(getcwd() .$path ."/index.html");
if (substr($index, 0, strlen(realpath(getcwd()))) === realpath(getcwd()) && file_exists($index)){
try {
} catch (Exception $e) {
/*Eating all exceptions*/
View package.json
"name": "yourNewApp",
"description": " A fullstack JavaScript framework powered by MongoDB, ExpressJS, AngularJS, NodeJS.",
"version": "0.4.2",
"private": false,
"author": "Linnovate <>",
"contributors": "",
"mean": "0.4.2",
"repository": {
"type": "git",

Keybase proof

I hereby claim:

  • I am oripekelman on github.
  • I am oripekelman ( on keybase.
  • I have a public key whose fingerprint is C1A5 8C41 CA69 E74E 11F3 6BC1 618E BB91 D18D 764B

To claim this, I am signing this object:

You can’t perform that action at this time.