This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir -m 0 empty-noperm-dir | |
$ sudo ls -la empty-noperm-dir | |
合計 8 | |
d--------- 2 fumiyas fumiyas 4096 7月 20 01:10 . | |
drwxrwxr-x 11 fumiyas fumiyas 4096 7月 20 01:10 .. | |
$ ruby -v -rfileutils -e 'FileUtils.rm_rf("empty-noperm-dir")' | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
$ sudo ls -la empty-noperm-dir | |
合計 8 | |
d--------- 2 fumiyas fumiyas 4096 7月 20 01:10 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh93 | |
## | |
## apt-rdepends(1) clone(?): Recursively lists package dependencies | |
## Copyright (c) 2012 SATOH Fumiyasu @ OSS Technology Corp. | |
## <http://www.osstech.co.jp/> | |
## | |
set -u | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 PACKAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'thread' | |
class FilteredQueue < Queue | |
attr_accessor :push_filter, :pop_filter | |
def initialize(internal_data) | |
super() | |
@internal_data = internal_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "rubygems" | |
require "zmq" | |
require 'json' | |
context = ZMQ::Context.new(1) | |
inbound = context.socket(ZMQ::UPSTREAM) | |
inbound.bind("tcp://127.0.0.1:9000") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uris = ldap://a.ldap.example.jp/ ldap://b.ldap.example.jp/ | |
ldap_version = 3 | |
base = ou=%d,dc=example,dc=jp | |
scope = subtree | |
auth_bind = yes | |
pass_filter = (uid=%n) | |
pass_attrs = mailQuota=userdb_quota_rule=*:bytes=%$ | |
user_filter = (uid=%n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ea1067c8199719c72fddf61eeb19c114b243275a Mon Sep 17 00:00:00 2001 | |
From: fumiyas <fumiyas@69f2458b-35d4-408a-aa88-7d8d64836e89> | |
Date: Tue, 7 Aug 2012 16:51:06 +0000 | |
Subject: [PATCH 01/10] ChangeLog: Add Debian bug info | |
git-svn-id: svn+ssh://svn.gna.org/svn/smbldap-tools/trunk@145 69f2458b-35d4-408a-aa88-7d8d64836e89 | |
--- | |
ChangeLog | 1 + | |
1 file changed, 1 insertion(+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby1.9.1 | |
# encoding: UTF-8 | |
=begin | |
Copyright (c) 2011, akira yamada | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions | |
are met: | |
1. Redistributions of source code must retain the above copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
agf_freeblks 44469390, counted 44469088 in ag 4 | |
agf_freeblks 44490480, counted 44490185 in ag 5 | |
block 4/13541882 type free1 not expected | |
block 4/13541883 type free1 not expected | |
block 4/13541884 type free1 not expected | |
block 4/13541885 type free1 not expected | |
block 4/13541886 type free1 not expected | |
block 4/13541887 type free1 not expected | |
block 4/13541888 type free1 not expected | |
block 4/13541889 type unknown not expected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
i=0 | |
ls |while read b; do | |
i=`expr $i + 1` | |
echo "$i $b" | |
done | |
echo "total $i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# or | |
#!/bin/ksh | |
#!/bin/zsh | |
n=;while ((++n-101));do o=;((n%3))||o=Fizz;((n%5))||o+=Buzz;echo ${o:-$n};done |