Public Gists by sunfmin

Gravatar
Wed Oct 21 03:11:47 -0700 2009
1
2
3
res = []
 
"abc".each_byte {|i| res << i}
Gravatar
Mon Jul 13 21:02:47 -0700 2009
1
2
3
Felix:~/Developments sunfmin$ sudo port install p5-svn-simple
---> Fetching subversion-perlbindings
---> Attempting to fetch subversion-1.4.6.tar.bz2 from http://subversion.tigris.org//downloads/
Gravatar
Mon Jul 13 21:01:25 -0700 2009
1
2
git-svn clone http://dev.com/code/example/trunk example
Can't locate SVN/Core.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl /opt/local/lib/perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/site_perl/5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.8 /opt/local/lib/perl5/vendor_perl .) at /usr/local/bin/git-svn line 29.
Gravatar
Mon Jul 13 20:55:17 -0700 2009
1
2
3
# For no ssl
-bash-3.00$ more /opt/csw/apache2/etc/virtualhosts/yourserver.conf
<VirtualHost 8.17.170.154:80>
Gravatar
Mon Jul 13 20:54:05 -0700 2009
1
2
3
# from: http://www.vanemery.com/Linux/Apache/apache-SSL.html
[root]# openssl genrsa -des3 -out my-ca.key 2048
[root]# openssl req -new -x509 -days 3650 -key my-ca.key -out my-ca.crt
Gravatar
Mon Jul 13 20:48:09 -0700 2009
1
2
3
 
discard unix - - n - - discard
#local unix - n n - - local
Gravatar
Mon Jul 13 20:47:52 -0700 2009
1
2
3
 
myorigin = example.com
#relayhost = example.com
Gravatar
Mon Jul 13 20:45:44 -0700 2009
1
2
3
Jun 20 08:45:15 example.com postfix/pickup[21505]: [ID 197553 mail.info] 9EE3D43D17: uid=0 from=<root>
Jun 20 08:45:15 example.com postfix/cleanup[21511]: [ID 197553 mail.info] 9EE3D43D17: message-id=<20080620084515.9EE3D43D17@example.com>
Jun 20 08:45:15 example.com postfix/qmgr[21506]: [ID 197553 mail.info] 9EE3D43D17: from=<root@example.com>, size=294, nrcpt=1 (queue active)
Gravatar
Sun Jun 21 23:33:34 -0700 2009
1
2
3
Felix:asics sunfmin$ defaults find com.techSmith.jing
Found 14 keys in domain 'com.techSmith.jing': {
    AccountCreated = 1;
Gravatar
Thu Jun 11 01:44:51 -0700 2009
1
2
3
http://discussions.apple.com/thread.jspa?threadID=1539743
 
PDO_MYSQL
Gravatar
Thu Jun 11 00:19:33 -0700 2009
1
2
3
Felix:local sunfmin$ curl http://pear.php.net/go-pear | sudo php
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
Gravatar
Sun Jun 07 21:39:28 -0700 2009
1
2
3
def send_email(to, subject, body)
 
  puts "sending email => #{subject}"
Gravatar
Sat May 16 05:28:37 -0700 2009
1
2
3
-- rupa's xmonad.hs (darcs/gnome)
--
-- # .gnomerc
Gravatar
Tue Apr 28 02:44:20 -0700 2009
1
2
3
Felix:~ sunfmin$ sudo port install php5 +apache2
Password:
---> Building php5
Gravatar
Sat Apr 11 19:02:10 -0700 2009
1
2
3
Felix:~ sunfmin$ sudo port install apr
---> Fetching apr
---> Attempting to fetch apr-1.3.3.tar.bz2 from http://apache.mirror.phpchina.com/apr
Gravatar
Fri Apr 03 21:16:02 -0700 2009
1
curl -I -u username:"password" www.google.com
Gravatar
Wed Mar 18 18:58:07 -0700 2009
1
2
3
class HostPageStore < Merb::Cache::PageStore
  def normalize(dispatch)
    dispatch.request.env["SERVER_NAME"] / super
Gravatar
Thu Mar 12 03:53:49 -0700 2009
1
2
3
1)
'TechTour should have many reservations' FAILED
 
Gravatar
Mon Mar 02 17:52:28 -0800 2009
1
sudo scutil --set HostName FelixOffice.local
Gravatar
Thu Feb 26 20:35:59 -0800 2009
1
2
3
http://lists.macosforge.org/pipermail/macports-users/2008-September/011448.html