initialize git depository in the current directory
git init .
display the git remote/origin
|# 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|
?suffix will return a boolean, and are called
!suffix mean one of two things: either the method changes the state of the object instance in some fashion, or it will raise and exception instead of failing (such as Rails models'
::method_namedenotes a class method, while
#method_namedenotes a instance method.
|# Get a list of merged branches|
|# You need to checkout the target remote branch before running. In other words,|
|# if your target branch is 'master', you have to have it checked out before you|
|# run this script, otherwise you will get an error like: `fatal: malformed|
|# object name master`. Git needs to have the branch checked out and pulled in|
|# order to find the branches that have/have-not been merged into it.|
hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
|# This is a draft but it works|
|# FIRST (I don't even know if it works but we'll assume yes)|
|# sudo launchctl list|
|# sudo launchctl disable system/netbiosd|
|# sudo launchctl disable system/parsecd|
|# sudo launchctl disable system/parentalcontrols.check|
|# sudo launchctl disable system/airportd|
This all applies to Ruby 2.1. In some cases a setting is not available in 2.0, this is noted. There is also a different with 1.9, 1.8, and REE --- these are not noted.
All the relevant code is in https://github.com/ruby/ruby/blob/trunk/gc.c
The number of heap slots to start out with. This should be set high enough so that your app has enough or almost enough memory after loading so that it doesn't have to allocate more memory on the first request (althogh this probably isn't such a big deal for most apps).
(todo: figure out how big a slot is. i think the answer can be infered from this code.)