根据启动Bash Shell的方式不同,对Shell有两种分类方式
根据Shell的启动方式不同,可以将Shell分为
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'rexml/document' | |
require 'ya2yaml' | |
include REXML | |
doc = Document.new(File.new(ARGV[0])) |
tmp = 'c:/tmp/chef-solo' | |
file_cache_path tmp | |
data_bag_path File.join(tmp, 'data_bags') | |
cookbook_path [ File.join(tmp, 'site-cookbooks'), | |
File.join(tmp, 'cookbooks') ] | |
role_path File.join(tmp, 'roles') |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
tar -xvzf ruby-1.9.3-p125.tar.gz | |
cd ruby-1.9.3-p125/ | |
./configure --prefix=/usr/local | |
make | |
make install |
#!/usr/bin/env bash | |
RUBY_VERSION=1.9.3-p194 | |
if [ -n `which yum` ] | |
then | |
# This is necessary for the Amazon Linux AMI | |
perl -pi -e 's/^(Defaults\s+secure_path.*)$/\1:\/usr\/local\/bin:\/usr\/local\/sbin/g' /etc/sudoers | |
yum update -y | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel \ |
The list would not be updated for now. Don't write comments.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:
githubUsers
#!/usr/bin/env python | |
import atexit | |
import datetime | |
from datetime import timedelta | |
import logging | |
import os | |
import smtplib | |
import subprocess as sub | |
import sys |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
#!/bin/bash | |
# bootstrap ruby on a fresh RHEL6.0 | |
# Rackspace appears to mount /tmp as `noexec` which | |
# doesn't allow ruby-build to install ruby (since packages) | |
# downloaded can't be executed from /tmp so reassign | |
# the tmp directory | |
if [ ! -d "$HOME/tmp" ]; then | |
mkdir "$HOME/tmp" |