- Lsyncd (https://github.com/axkibe/lsyncd)
# yum install lua-devel asciidoc
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Listing Spa</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="http://js.api.olp.yahooapis.jp/OpenLocalPlatform/V1/jsapi?appid=dj0zaiZpPU9Qc0t2NEFLTTBLMyZzPWNvbnN1bWVyc2VjcmV0Jng9MmM-"></script> | |
<script src="spot.js"></script> | |
</head> | |
<body> | |
<h3>Spot lists</h3> |
# yum install lua-devel asciidoc
#!/bin/bash | |
# | |
# lsyncd: Starts the lsync Daemon | |
# | |
# chkconfig: 345 80 30 | |
# description: Lsyncd uses rsync to synchronize local directories with a remote | |
# machine running rsyncd. Lsyncd watches multiple directories | |
# trees through inotify. The first step after adding the watches | |
# is to, rsync all directories with the remote host, and then sync | |
# single file buy collecting the inotify events. |
using System.Threading.Tasks; | |
namespace Try | |
{ | |
public static class TaskExtensions | |
{ | |
public static async Task<ITriable<T>> AsTriable<T>(this Task<T> task) | |
{ | |
return await Triable<T>.ToTriableAsync(task); | |
} |
# Prefix | |
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key C-z send-prefix |
package main | |
import ( | |
"github.com/elazarl/goproxy" | |
"log" | |
"net/http" | |
) | |
func main() { | |
proxy := goproxy.NewProxyHttpServer() |
remove Lock = Caps_Lock | |
remove Control = Control_L | |
keysym Control_L = Caps_Lock | |
keysym Caps_Lock = Control_L | |
add Lock = Caps_Lock | |
add Control = Control_L |
use strict; | |
use warnings; | |
use Plack::Builder; | |
use Plack::App::Proxy; | |
builder { | |
enable 'Proxy::AddVia'; | |
enable sub { | |
my $app = shift; | |
return sub { |