Skip to content

Instantly share code, notes, and snippets.

View Orphist's full-sized avatar
🏠
Working from home

Max Surkov Orphist

🏠
Working from home
View GitHub Profile
RVM home page: http://rvm.beginrescueend.com
Install RVM
------------
See http://rvm.beginrescueend.com/rvm/install/
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Install rvm for all users
@Orphist
Orphist / gist:7078628
Created October 21, 2013 04:21
веб-разработки и IT за последнюю неделю № 79 (13 — 19 октября 2013)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name = "viewport" content = "width = 1080">
<title>Дайджест интересных материалов из мира веб-разработки и IT за последнюю неделю № 79 (13 — 19 октября 2013) / Блог компании Zfort Group / Хабрахабр</title>
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3
//
// GB2ShapeCache-x.cpp
//
// Loads physics sprites created with http://www.PhysicsEditor.de
// To be used with cocos2d-x
//
// Generic Shape Cache for box2d
//
// Created by Thomas Broquist
//
//
// GB2ShapeCache-x.cpp
//
// Loads physics sprites created with http://www.PhysicsEditor.de
// To be used with cocos2d-x
//
// Generic Shape Cache for box2d
//
// Created by Thomas Broquist
//
@Orphist
Orphist / gist:7408357
Created November 11, 2013 05:29
# sqlite3 on Mac OS X 10.8.5
# Mac OS X 10.8.5
gem fetch sqlite3
gem unpack sqlite3-1.3.8.gem
cd sqlite3-1.3.8
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
$ irb
1.8.7-p374 :001 > require 'sqlite3'
@Orphist
Orphist / sqlite3-ruby-darwin
Created November 11, 2013 05:40
#sqlite3 Ruby on Mac OS X 10.8.5
# Mac OS X 10.8.5
gem fetch sqlite3
gem unpack sqlite3-1.3.8.gem
cd sqlite3-1.3.8
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
$ irb
1.8.7-p374 :001 > require 'sqlite3'
@Orphist
Orphist / gist:7546540
Last active December 28, 2015 18:59
scraper_3
# encoding: utf-8
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'pp'
# require 'curb'
# require 'proxied_curl.rb'
@Orphist
Orphist / gist:7579202
Created November 21, 2013 10:16
commons
db.scrape_sessions.find({"scrape_records" : {"$eleMatch" : {"url": /szb\.ru/}}})
@Orphist
Orphist / gist:7594805
Last active December 29, 2015 01:39
boiler
http://boilerpipe-web.appspot.com/extract?url=http%3A%2F%2Fwww.1gbi.ru%2Fcatalog%2Fzhelezobeton%2Fkolonny_zhelezobetonniye%2F&extractor=KeepEverythingExtractor&output=json&extractImages=3
extraction
http://tomazkovacic.com/blog/122/evaluating-text-extraction-algorithms/