Skip to content

Instantly share code, notes, and snippets.

View umq's full-sized avatar
😪
Zzz

Hirohisa Yamaguchi umq

😪
Zzz
  • Osaka, Japan
  • 19:51 (UTC +09:00)
View GitHub Profile
@umq
umq / dns_validns.shar
Created April 25, 2012 08:52
FreeBSD port skeleton for validns < https://github.com/tobez/validns
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# dns/validns
# dns/validns/Makefile
# dns/validns/distinfo
@umq
umq / lang_squeak-166959.patch
Created April 18, 2012 18:18
an update patch for ports/166959
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/squeak/Makefile,v
retrieving revision 1.22
diff -p -u -r1.22 Makefile
--- Makefile 8 Jun 2010 19:52:56 -0000 1.22
+++ Makefile 18 Apr 2012 15:18:26 -0000
@@ -6,166 +6,83 @@
#
@umq
umq / mail_bouncehammer-2.7.7.shar
Created March 13, 2012 07:08
FreeBSD port skeleton for bounceHammer based on ports/165846 < http://bouncehammer.jp/ http://tinyurl.com/26wgg4/165846
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mail/bouncehammer
# mail/bouncehammer/Makefile
# mail/bouncehammer/distinfo
@umq
umq / dns_knot-1.0.0.shar
Created March 1, 2012 05:35
FreeBSD port skeleton for knot-dns by CZ-NIC http://www.knot-dns.cz
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# dns/knot
# dns/knot/files
# dns/knot/files/knot.in
@umq
umq / devel_rcu-0.6.7.shar
Created March 1, 2012 05:28
FreeBSD port skeleton for userspace-rcu (read-copy-update) library http://lttng.org/urcu
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# devel/rcu
# devel/rcu/files
# devel/rcu/files/patch-tests_runtests-batch.sh
@umq
umq / www_tinytinyhttpd-githubhead.patch
Created February 18, 2012 05:51
Patch for FreBSD port www/tinytinyhttpd to fetch github head.
--- www/tinytinyhttpd/Makefile 2009-11-04 17:14:14.000000000 +0900
+++ www/tinytinyhttpd-githubhead/Makefile 2012-02-18 13:14:38.000000000 +0900
@@ -6,20 +6,48 @@
#
PORTNAME= tinytinyhttpd
-PORTVERSION= 0.0.9
+PORTVERSION= 0.0.11
CATEGORIES= www
-MASTER_SITES= http://cloud.github.com/downloads/mattn/tinytinyhttpd/ \
@umq
umq / www_tinytinyhttpd-github.patch
Created February 18, 2012 05:50
Patch for FreBSD port www/tinytinyhttpd to fetch specified github revision.
--- www/tinytinyhttpd/Makefile 2009-11-04 17:14:14.000000000 +0900
+++ www/tinytinyhttpd-github/Makefile 2012-02-18 13:13:12.000000000 +0900
@@ -6,20 +6,33 @@
#
PORTNAME= tinytinyhttpd
-PORTVERSION= 0.0.9
+PORTVERSION= 0.0.11
CATEGORIES= www
-MASTER_SITES= http://cloud.github.com/downloads/mattn/tinytinyhttpd/ \
@umq
umq / gist:1051698
Created June 28, 2011 17:47
Microsoft Office Excel column number to name
Function ColNum2Name(Col As Long) As String
Dim C As Integer
Col = Col - 1 ' 1 -> A, 26 -> Z, 27 -> AA
If (Col >= 0) Then
While (Col >= 0)
C = Col Mod 26
Col = Col \ 26 - 1
ColNum2Name = Chr$(Asc("A") + C) + ColNum2Name
Wend
Else
@umq
umq / com.apple.TimeMachine.MachineID.plist
Created June 8, 2011 18:47
Machine ID file for ``TimeMachine'' under Mac OS X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.backupd.BackupMachineAddress</key>
<string>ff:ff:ff:ff:ff:ff</string>
<key>com.apple.backupd.HostUUID</key>
<string>00000000-0000-0000-0000-000000000000</string>
</dict>
</plist>
@umq
umq / RotateDisplay.cs
Created May 23, 2011 12:44
Rotate secondary display with ChangeDisplaySettingsEx()
using System;
using System.Runtime.InteropServices;
namespace RotateDisplayTest
{
class RotateDisplay
{
static void Main(string[] args)
{
uint deviceID = 1; // zero origin (i.e. 1 means DISPLAY2)