シェルスクリプト内で組み立てたオプション文字列を外部コマンドに渡して実行したい。
ただし:
- 渡すオプション文字列は深淵な理由で配列などは使わずにベタな文字列で
- launcher.sh の様にスペースを含む値も正しく扱えるように
var url = (function(){ | |
var getUTC = function(date_str){ | |
var date = new Date(date_str); | |
return date.getUTCFullYear() + | |
zerofill(date.getUTCMonth()+1) + | |
zerofill(date.getUTCDate()) + | |
'T' + | |
zerofill(date.getUTCHours()) + | |
zerofill(date.getUTCMinutes()) + |
import os | |
import json | |
import httplib | |
import time | |
VERSION = "0.1.0" | |
class ClientSession: | |
def __init__(self, server, user, source=None, catalog=None, schema=None, debug=False): | |
self.server = server |
# Clickpad Control | |
# | |
description "Clickpad initialize for Thinkpad's TrackPoint" | |
start on starting xsession-init and started dbus | |
pre-start script | |
synclient PalmDetect=1 | |
# use with: `xinput list "SynPS/2 Synaptics TouchPad" |grep Range ` |
http://ameblo.jp/principia-ca/entry-11573342807.html
更新: | 2013-09-28 |
---|---|
バージョン: | 0.0.9 |
作者: | @voluntas |
URL: | http://voluntas.github.io/ |
Django + Elasticsearch コトハジメの補足記事です
package main | |
import ( | |
"bufio" | |
"errors" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/url" |
static void beep(unsigned int ms, unsigned int freq) | |
{ | |
int fd, arg; | |
fd = open("/dev/console", O_RDWR); | |
if (fd < 0) { | |
perror(strerror(errno)); | |
return; | |
} | |
arg = (ms << 16) | freq; |
#!/usr/bin/ruby | |
# | |
# nex6-capture.rb - sample program for Sony NEX-6 (Smart Remocon App) | |
# | |
require "socket" | |
require 'json' | |
require "pp" | |
require "open-uri" | |
$host = "192.168.122.1" |