I hereby claim:
- I am toto on github.
- I am toto (https://keybase.io/toto) on keybase.
- I have a public key whose fingerprint is 46E3 01C4 7F40 7696 8050 890A E2C7 AE4D AD30 A810
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
NSOperatingSystemVersion ios8_0_1 = (NSOperatingSystemVersion){8, 0, 1}; | |
if ([[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:ios8_0_1]) { | |
// foo | |
} |
#!/bin/bash | |
# | |
# Let's you know when your pods should be updated right after a git pull or git merge | |
# Also works for fast-forward pulls. | |
# | |
# To enable this hook for your project, save it as .git/hooks/post-checkout | |
diff "Podfile.lock" "Pods/Manifest.lock" > /dev/null | |
if [ $? != 0 ] ; then |
3,9d2 | |
< /* Ruby 1.8 compatibility macros, these are defined in Ruby 1.9 | |
< so the ones below will only be used in 1.8.x */ | |
< #ifndef RSTRING_PTR | |
< # define RSTRING_PTR(s) (RSTRING(s)->ptr) | |
< # define RSTRING_LEN(s) (RSTRING(s)->len) | |
< #endif | |
< | |
22,23c15,16 | |
< s1 = RSTRING_PTR(rb_s1); |
#!/bin/sh | |
# For OpenSolaris | |
# The Bridge module from http://www.whiteboard.ne.jp/~admin2/tuntap/ | |
# brings a brdgadm tool | |
# Removing | |
# $1 is the interface which will be brought up | |
pfexec /usr/local/bin/brdgadm -d $1 | |
# the Network card name your system uses to connect to your local network | |
pfexec /usr/local/bin/brdgadm -d rge0 | |
pfexec /usr/local/bin/brdgadm -a $1 |
#!/opt/local/bin/ruby | |
require 'rubygems' | |
require 'scrubyt' | |
require 'open-uri' | |
require 'builder' | |
LIMIT = 5 | |
res = [] |
#!/usr/bin/env ruby | |
# Uses some commands to determine the OpenSolaris system state and | |
require 'rubygems' | |
gem 'twitter' | |
require 'twitter' | |
ME_ON_TWITTER = 'mrtoto' | |
httpauth = Twitter::HTTPAuth.new('email', 'password') | |
$twitter = Twitter::Base.new(httpauth) |
#!/usr/bin/env ruby | |
# | |
require 'rubygems' | |
gem 'xmpp4r-simple' | |
gem 'grit' | |
require 'xmpp4r-simple' | |
require 'grit' | |
include Grit |
toto@glow:~$ /usr/bin/rsync --version | |
rsync version 2.6.9 protocol version 29 | |
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others. | |
<http://rsync.samba.org/> | |
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, | |
inplace, IPv6, 64-bit system inums, 64-bit internal inums | |
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you | |
are welcome to redistribute it under certain conditions. See the GNU |
require 'java' | |
import java.net | |
import java.io | |
uri = java.net.URL.new("http://127.0.0.1") | |
con = uri.openConnection() | |
con.setConnectTimeout(1000) # in millisecs so this is 1 sec | |
con.setReadTimeout(1000) |