Skip to content

Instantly share code, notes, and snippets.

build_package_patch_ruby_railsexpress() {
#fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
fetch_git rvm-patchsets git://github.com/RubyClickAP/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/1.9.3/p551/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz#36c852831d02cf90508c29852361d01b"
diff --git a/array.c b/array.c
index e427cb3..7e76227 100644
--- a/array.c
+++ b/array.c
@@ -255,15 +255,24 @@ rb_ary_modify(VALUE ary)
rb_ary_modify_check(ary);
if (ARY_SHARED_P(ary)) {
long len = RARRAY_LEN(ary);
+ VALUE shared = ARY_SHARED(ary);
if (len <= RARRAY_EMBED_LEN_MAX) {
#user nobody;
worker_processes auto;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/mvideo2.pid;
events {
@RubyClickAP
RubyClickAP / unoconv-bionic-upstart
Created January 2, 2021 05:11
Notice: Ubuntu 17.10 Ubuntu has dropped support for the Upstart init daemon in the default Ubuntu repositories.(The latest version at http://upstart.ubuntu.com/, 1.13.2, was released on 4Sept'14.)
#! /bin/sh
### BEGIN INIT INFO
# Provides: Click-AP
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the Bionic server
# Description: starts Bionic using start-stop-daemon
@RubyClickAP
RubyClickAP / bfile.rb
Created December 31, 2020 15:42 — forked from skord/bfile.rb
A simple file server and uploader using sinatra
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require 'haml'
$pwd = ENV['PWD']
if File.exists?(ARGV.last)
if ARGV.last != 'bfile.rb'
@RubyClickAP
RubyClickAP / rbenv-install-system-wide.sh
Last active December 30, 2020 21:57 — forked from crhan/rbenv-install-system-wide.sh
參考, 但不需要 umask 002, 等, 所以有另外方案.
PREFIX="/usr/local"
RBENV_PREFIX="$PREFIX/rbenv"
BIN_PATH="$PREFIX/bin"
RBENV_GROUP="rbenv"
umask 002
## Install rbenv, ruby-build and rbenv-gem-rehash
git clone git://github.com/sstephenson/rbenv.git $RBENV_PREFIX
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core
@RubyClickAP
RubyClickAP / rbenv-install-system-wide.sh
Created December 30, 2020 21:53 — forked from fpauser/rbenv-install-system-wide.sh
rbenv single & system-wide installation for Debian (tested with Debian 7.1) & Ubuntu (tested with Ubuntu 12.04 LTS)
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@RubyClickAP
RubyClickAP / unuconvd_template
Created December 30, 2020 21:36 — forked from jdewit/unuconvd_template
unoconv daemon
### BEGIN INIT INFO
# Provides: unoconvd
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: unoconvd Converting documents to PDF by unoconv
### END INIT INFO
#!/bin/sh
case "$1" in
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 8c04cb5..132d803 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -104,6 +104,9 @@
have_func("SSLv2_method")
have_func("SSLv2_server_method")
have_func("SSLv2_client_method")
+have_func("SSLv3_method")
+have_func("SSLv3_server_method")