Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
/* ivan(a.t)mysqlab.net */ | |
package main | |
import ( | |
"syscall" | |
"os" | |
"log" | |
) | |
func daemon(nochdir, noclose int) int { |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
// Target API: | |
// | |
// var s = require('net').createStream(25, 'smtp.example.com'); | |
// s.on('connect', function() { | |
// require('starttls')(s, options, function() { | |
// if (!s.authorized) { | |
// s.destroy(); | |
// return; | |
// } | |
// |
obj-m += tcp_svr_sample.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea |
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Runtime.CompilerServices; | |
using System.Windows.Input; | |
using System.Windows.Threading; | |
using System.Collections.Generic; | |
namespace Ownskit.Utils | |
{ |
/* | |
* Mclarens Bar: Redis based Instant Messaging | |
* Nikhil Marathe - 22/04/2010 | |
* A simple example of an IM client implemented using | |
* Redis PUB/SUB commands so that all the communication | |
* is offloaded to Redis, and the node.js code only | |
* handles command interpretation,presentation and subscribing. | |
* | |
* Requires redis-node-client and a recent version of Redis |
Xのデスクトップ環境をヘッドレスで実行する | |
Linux/UNIXサーバとは、sshでログインさえ出来れば大抵の管理作業が出来るものであるが、GUIもあればあったで意外と便利な時があるものである。また、プロプライエタリなソフトウェアなどは GUIでのインストールを前提としているものもよくある。 | |
しかしながら、サーバ機の前までノコノコ歩いていってキーボード・マウス・画面をわざわざ接続して作業をするなどというまるで原始人のようななことは、当該機で障害が起こりネットワークに接続できなくなった時だけにしたいものである。 | |
Macユーザなら、OSに標準で含まれているX11を起動し、xtermからssh に -Xなり -Yなりのオプションを付けて対象にログインすればリモートの Xアプリケーションを手元のMac上で利用することが出来るものの、誰もが Macを持っていて(もしくはWindowsにcygwinが入れてあって) UNIXの操作をした経験があり sshを含めコマンドラインツールの使い方を分かっているというわけでもないため他人に仕事を振りづらい(こともある)。 | |
というわけで、ここでは比較的名の知れたプロトコルである VNCを使ってネットワーク経由で Xのデスクトップ環境にログイン出来るようにする。ただし、実コンソール(つまり対象ホストに接続されている画面)には Xが表示されていると操作にマウスが必要だったりしてうざったいので(vcを切り替えればいいんだけどさ)、そちらはテキストログインのままとする。 | |
USE="server" emerge vnc |