latest info and more instructions, please refer to the original archlinux wiki page!
- get archboot and insert it into cdrom
- network config (generally done)
- prepare the storage (using cfdisk, a boot and root partition)
- mount partitions
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# put this script in the path like | |
# assumed /tmp (cwd) | |
# /tmp/dir1/dir2/path.py | |
# /tmp/dir3 symlinked to /tmp/dir1/dir2 | |
# | |
# and run with | |
# python ../tmp/hello3/path.py |
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install gnu-smalltalk | |
==> Downloading http://ftpmirror.gnu.org/smalltalk/smalltalk-3.2.4.tar.xz | |
Already downloaded: /Library/Caches/Homebrew/gnu-smalltalk-3.2.4.tar.xz | |
xz -dc "/Library/Caches/Homebrew/gnu-smalltalk-3.2.4.tar.xz" | /usr/bin/tar xf - | |
==> Patching | |
/usr/bin/patch -f -p1 -i 000-homebrew.diff | |
patching file Makefile.am | |
patching file configure.ac | |
==> autoreconf -ivf | |
autoreconf -ivf |
latest info and more instructions, please refer to the original archlinux wiki page!
#!/usr/bin/env ruby | |
# -*- coding:utf-8 -*- | |
# some syntax define in RFC | |
# refer to http://tools.ietf.org/html/rfc5234 | |
def loop_print(range) | |
if range.is_a? Range | |
range.each do |v| |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2012 - AleiPhoenix <[email protected]> | |
import amqplib.client_0_8 as amqp | |
# This is the function that basic_consume will send messages to | |
def process_message( message ): | |
""" Callback function used by channel.basic_consume """ | |
print 'Received: %s' % message.body |
/Users/aleiphoenix/Gentoo/usr/lib/gcc/x86_64-apple-darwin12/4.2.1/include/g++-v4/bits/stl_map.h: In member function '_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = OutputString, _Compare = std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, OutputString> >]': | |
output/formatstring.cc:385: instantiated from here | |
/Users/aleiphoenix/Gentoo/usr/lib/gcc/x86_64-apple-darwin12/4.2.1/include/g++-v4/bits/stl_map.h:350: error: no matching function for call to 'OutputString::OutputString(OutputString)' | |
make[2]: *** [output/formatstring.o] Error 1 | |
make[2]: *** Waiting for unfinished jobs.... | |
/Users/aleiphoenix/Gentoo/usr/lib/gcc/x86_64-apple-darwin12/4.2.1/include/g++-v4/bits/stl_map.h: In member function '_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Ke |
uri = URI('http://example.com') | |
req = Net::HTTP::Post.new(uri) | |
req.set_form_data('argu1' => 'value1', | |
'argu2' => 'value2') | |
body = '' | |
res = Net::HTTP.start(uri.hostname, uri.port) do |http| | |
res = http.request(req) | |
end | |
return res.body |
# configuration variables for gitolite | |
# PLEASE READ THE DOCUMENTATION BEFORE EDITING OR ASKING QUESTIONS | |
# ( http://github.com/sitaramc/gitolite/blob/pu/doc/gitolite.rc.mkd ) | |
# ( or http://sitaramc.github.com/gitolite/doc/gitolite.rc.html ) | |
# this file is in perl syntax. However, you do NOT need to know perl to edit | |
# it; it should be fairly self-explanatory and easy to maintain | |
# ------------------------------------------------------------------------------ |