Skip to content

Instantly share code, notes, and snippets.

View ramnes's full-sized avatar

Guillaume Gelin ramnes

View GitHub Profile
From a48de0703be228ffadc465f91cbf228b565a24b9 Mon Sep 17 00:00:00 2001
From: Guillaume Gelin <[email protected]>
Date: Sun, 19 Oct 2014 15:47:07 +0200
Subject: [PATCH] Add an uptime system call.
Signed-off-by: Guillaume Gelin <[email protected]>
---
arch/x86/syscalls/syscall_32.tbl | 1 +
arch/x86/syscalls/syscall_64.tbl | 1 +
fs/proc/uptime.c | 13 +++++++++++++

Keybase proof

I hereby claim:

  • I am ramnes on github.
  • I am ramnes (https://keybase.io/ramnes) on keybase.
  • I have a public key whose fingerprint is 540F 2655 FA63 6C1A 6211 068B C136 494F 35E6 6B97

To claim this, I am signing this object:

def random_elsewhere_function():
raise AttributeError("oops")
class Foo(object):
@property
def bar(self):
random_elsewhere_function()
return "bar"
class ObjectList(list):
"""A list that can call its objects methods/variables and returns their
own returns in a list. Obviously, the list should contains only one type of
objects.
Example of use:
>>> foo = ObjectList(["bar", "baZ"])
>>> foo.islower()
[True, False]
>>> foo.append(42)
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla
2014-06-28 14:59:29,896 ERROR _xpoll:605 Got an exception in poll loop
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/libqtile/manager.py", line 592, in _xpoll
r = h(e)
File "/usr/lib/python2.7/site-packages/libqtile/manager.py", line 894, in handle_MapRequest
c = self.manage(w)
File "/usr/lib/python2.7/site-packages/libqtile/manager.py", line 480, in manage
self.currentScreen.group.add(c)
File "/usr/lib/python2.7/site-packages/libqtile/group.py", line 198, in add
self.focus(win, True)
xauth: (stdin):2: unknown command "664861874f52303a63723db353e59e0a"
X.Org X Server 1.14.5
Release Date: 2013-12-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
Current Operating System: Linux spud 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11.0-15-generic root=UUID=7d996468-09d9-417e-a7b2-af775a0dd0a2 ro quiet splash irqpoll acpi_backlight=vendor vt.handoff=7
Build Date: 17 December 2013 10:06:15AM
diff --git a/libqtile/config.py b/libqtile/config.py
index c175549..148ec12 100644
--- a/libqtile/config.py
+++ b/libqtile/config.py
@@ -332,7 +332,7 @@ class Group(object):
certain Matched windows to be on them, hide when they're not in use, etc.
"""
def __init__(self, name, matches=None, exclusive=False,
- spawn=None, layout=None, persist=True, init=True,
+ spawn=None, layout=None, layouts=None, persist=True, init=True,