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)
# THIS HAS BECOME OBSOLETE. IN BUILD 14342 THIS IS SOLVED, PLEASE USE THAT BUILD INSTEAD (OR MORE RECENT ONES) | |
# See https://github.com/Microsoft/BashOnWindows/issues/91#issuecomment-218379746 | |
# Workaround to build ZSH on #BashOnUbuntuOnWindows. | |
# See https://github.com/Microsoft/BashOnWindows/issues/91#issuecomment-208077623 | |
# RUN EACH LINE INDEPENDENTLY. THIS IS NOT AN AUTOMATIC BASH SCRIPT. | |
# Install dependencies | |
apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo checkinstall |
In response to all the responses to: | |
http://twitter.com/rtomayko/status/1155906157 | |
You should never do this in a source file included with your library, | |
app, or tests: | |
require 'rubygems' | |
The system I use to manage my $LOAD_PATH is not your library/app/tests |
#!/bin/bash | |
command_exists () { | |
command "$1" &> /dev/null ; | |
} | |
if command_exists rbenv | |
then | |
echo 'rbenv found, no action needed' | |
elif command_exists rvm |
-- Resource: https://github.com/timotta/wrk-scripts/blob/master/multiplepaths.lua | |
-- Initialize the pseudo random number generator | |
-- Resource: http://lua-users.org/wiki/MathLibraryTutorial | |
math.randomseed(os.time()) | |
math.random(); math.random(); math.random() | |
-- Shuffle array | |
-- Returns a randomly shuffled array | |
function shuffle(paths) |
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) |
{ | |
"Version": "2008-10-17", | |
"Id": "0c762de8-f56b-488d-a4a4-20d1cb31df2f", | |
"Statement": [ | |
{ | |
"Sid": "Allow in my domains", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
{ | |
// To show line endings type on status bar | |
"show_line_endings_on_status_bar": true, | |
// show an alert when the line ending is on the list | |
// eg: "alert_when_line_ending_is": ["Windows","Unix","CR"] | |
"alert_when_line_ending_is": ["Windows"], | |
// auto convert line endings on file open | |
"auto_convert_line_endings_to": "Unix" |
" 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 |
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 | |