Skip to content

Instantly share code, notes, and snippets.

postgresql:
image: sameersbn/postgresql:9.1-1
environment:
- DB_USER=redmine
- DB_PASS=phatiphohsukeuwo
- DB_NAME=redmine_production
redmine:
image: sameersbn/redmine:2.6.1
links:
- postgresql:postgresql
@RubyClickAP
RubyClickAP / Vagrantfile
Created June 8, 2019 15:13 — forked from creisor/Vagrantfile
Vagrant file for installing ruby with rbenv
# -*- mode: ruby -*-
# vi: set ft=ruby :
RUBY_V = File.open("./.ruby-version") { |f| f.read }.chomp
$apt_script = <<SCRIPT
sudo apt-get update
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev libmysqlclient-dev
SCRIPT
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")
@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
@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:
#!/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
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
@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 / 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
#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 {