This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <EGL/egl.h> | |
#include <GL/glx.h> | |
#include <SDL/SDL.h> | |
int main(){ | |
SDL_InitSubSystem(SDL_INIT_VIDEO); | |
SDL_SetVideoMode(200, 200, 0, SDL_OPENGL); | |
printf(eglGetCurrentContext() == EGL_NO_CONTEXT ? "EGL KO\n" : "EGL OK\n"); | |
printf(glXGetCurrentContext() == NULL ? "GLX KO\n" : "GLX OK\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Finds the closest virtualenv root directory, starting from $1, and going up to the root. | |
# If the target directory is not specified as an argument, current directory is used. | |
# Prints the virtualenv path found, or nothing otherwise. | |
# | |
function venv_find () { | |
# The cycle is just for the case with broken root folder detection -- never do more than N iterations. | |
venv_root=${1:-"."} | |
venv_found="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import multiprocessing, subprocess, sys | |
class Parser(multiprocessing.Process): | |
process = None | |
def __init__(self, daemon, output): | |
super(Parser, self).__init__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import time, sys | |
if __name__ == "__main__": | |
for i in range(0,4): | |
print i | |
time.sleep(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- conquest-pacs.sh 2013-10-13 22:34:39.000000000 +0200 | |
+++ conquest-pacs.sh 2014-03-24 15:05:48.397034507 +0100 | |
@@ -84,7 +84,7 @@ | |
--exec $DAEMON -- $ARGS | |
sleep 1 | |
start-stop-daemon --start --quiet --pidfile $PIDFILE \ | |
- --chuid conquest --chdir $HOME --exec $DAEMON -- $ARGS | |
+ --chuid $PACSUSER --chdir $HOME --exec $DAEMON -- $ARGS | |
echo "$NAME." | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo lxc-checkconfig | |
--- Namespaces --- | |
Namespaces: enabled | |
Utsname namespace: enabled | |
Ipc namespace: enabled | |
Pid namespace: required | |
User namespace: missing | |
Network namespace: enabled | |
Multiple /dev/pts instances: missing |
NewerOlder