Skip to content

Instantly share code, notes, and snippets.

@bvtrach
bvtrach / plan9port-ukrainian-kbd.patch
Created November 12, 2016 15:09
plan9port devdraw: add ukrainian ghe with upturn
commit 3de04e9241fa2428698436a3b096a2f047c2dc45
Author: Bohdan Trach <bohdan.trach@mailbox.tu-dresden.de>
Date: Fri Aug 19 19:57:42 2016 +0200
x11-keysym2ucs.c: add ukrainian ghe with upturn
diff --git a/src/cmd/devdraw/x11-keysym2ucs.c b/src/cmd/devdraw/x11-keysym2ucs.c
index 108f153..cb20027 100644
--- a/src/cmd/devdraw/x11-keysym2ucs.c
+++ b/src/cmd/devdraw/x11-keysym2ucs.c
@bvtrach
bvtrach / preserve.go
Created August 18, 2016 09:41
Archive.is command-line tool
//
package main
import (
"os"
"fmt"
"net/http"
"net/url"
"strings"
"errors"
@bvtrach
bvtrach / test.js
Created September 3, 2014 12:11
jquery test
var hotels = {};
hotels.count=0;
$("#basket").last().text("You haven't selected any hotels.");
$( document ).ready(function() {
$( ".hotel_checkbox" ).click(function( event ) {
var node = event.target.parentNode.parentNode;
var htext = node.cells[1].textContent+" - "+ node.cells[3].textContent;
if(event.target.checked) {
@bvtrach
bvtrach / bfs-fix-pid-leak.patch
Created July 3, 2014 01:36
Fix for PID namespace leakage in BFS scheduler
--- /usr/src/linux/kernel/sched/bfs.c 2014-06-15 23:02:21.000000000 +0200
+++ /usr/src/linux/kernel/sched/bfs.c 2014-07-03 03:21:51.837993963 +0200
@@ -1945,7 +1945,7 @@
preempt_enable();
#endif
if (current->set_child_tid)
- put_user(current->pid, current->set_child_tid);
+ put_user(task_pid_vnr(current), current->set_child_tid);
}
#!/sbin/runscript
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
description="Executes user programs in /etc/local.d"
depend()
{
after *
keyword -timeout