Installation of Berkshelf v3 on Cygwin is known to be very diffcult, but I have finally found the way. 😄
You can successfully install it by following the procedure below.
(As at 2014/6/8, v3.1.3 is available)
function password_encode(password) | |
local bcrypt = require 'bcrypt' | |
return bcrypt.digest(password, 12) | |
end | |
function check_password(password, encoded_password) | |
local bcrypt = require 'bcrypt' | |
return bcrypt.verify(password, encoded_password) | |
end |
require 'openssl' | |
require 'openssl-extensions/all' | |
keyfile = '/tmp/mycert.key' | |
csrfile = '/tmp/mycert.csr' | |
file = File.new(keyfile,'w',0400) | |
key = OpenSSL::PKey::RSA.new 2048 | |
file.write(key) |
Make sure libxml2-devel, libxslt-devel and libiconv-devel are installed: | |
$ gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib --with-xslt-dir=/usr/include/libxslt --with-iconv-include=/usr/include --with-iconv-lib=/usr/lib |
" A minimal vimrc for new vim users to start with. | |
" | |
" Referenced here: http://vimuniversity.com/samples/your-first-vimrc-should-be-nearly-empty | |
" | |
" Original Author: Bram Moolenaar <Bram@vim.org> | |
" Made more minimal by: Ben Orenstein | |
" Modified by : Ben McCormick | |
" Last change: 2014 June 8 | |
" | |
" To use it, copy it to |
fs.file-max = 1000000
net.ipv4.tcp_max_syn_backlog = 3240000
net.core.somaxconn = 3240000
import os | |
import pytest | |
from alembic.command import upgrade | |
from alembic.config import Config | |
from project.factory import create_app | |
from project.database import db as _db |
#!/bin/bash | |
command_exists () { | |
command "$1" &> /dev/null ; | |
} | |
if command_exists rbenv | |
then | |
echo 'rbenv found, no action needed' | |
elif command_exists rvm |
# Basically the nginx configuration I use at konklone.com. | |
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
# | |
# To provide feedback, please tweet at @konklone or email eric@konklone.com. | |
# Comments on gists don't notify the author. | |
# | |
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
server { |
Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!