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
import os | |
def moonWalk(path, **kwargs): | |
""" | |
Generator for recursively walking a directory tree with additional | |
options compared to os.walk. | |
@path: a str containing the root directoyr or file | |
@kwargs: The following args are supported: | |
ignoredot=False -- ignores dot folders during recursion |
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
import gio | |
import gobject | |
import glib | |
import os | |
import time | |
_NAME_ATTRIBUTE="standard::display-name" | |
_TYPE_ATTRIBUTE="standard::type" | |
_SYM_ATTRIBUTE="standard::is-symlink" | |
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 <sys/epoll.h>', '/usr/share/man/man4/epoll.4.gz', 1036, 23) | |
('epoll', '/usr/share/man/man4/epoll.4.gz', 1078, 6) | |
('epoll', '/usr/share/man/man4/epoll.4.gz', 1311, 6) | |
('epoll', '/usr/share/man/man4/epoll.4.gz', 1390, 6) | |
('epoll', '/usr/share/man/man4/epoll.4.gz', 1652, 6) | |
('epoll', '/usr/share/man/man4/epoll.4.gz', 1971, 6) | |
('rfd', '/usr/share/man/man4/epoll.4.gz', 2121, 4) | |
('rfd', '/usr/share/man/man4/epoll.4.gz', 2269, 4) | |
('epoll', '/usr/share/man/man4/epoll.4.gz', 2314, 6) | |
('EPOLLET', '/usr/share/man/man4/epoll.4.gz', 2343, 8) |
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
Index: Gui/CodeGenerationPanel.cs | |
=================================================================== | |
--- Gui/CodeGenerationPanel.cs (revision 25) | |
+++ Gui/CodeGenerationPanel.cs (working copy) | |
@@ -29,7 +29,7 @@ | |
using MonoDevelop.Projects.Gui.Dialogs; | |
using MonoDevelop.Core; | |
using Mono.Addins; |
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
function monosvn() { | |
export PATH="/opt/mono/bin:$PATH" | |
export PKG_CONFIG_PATH="/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH" | |
export LD_LIBRARY_PATH="/opt/mono/lib:$LD_LIBRARY_PATH" | |
} |
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
svn co http://anonsvn.mono-project.com/source/trunk/mono | |
svn co http://anonsvn.mono-project.com/source/trunk/mcs | |
svn co http://anonsvn.mono-project.com/source/trunk/gtk-sharp | |
svn co http://anonsvn.mono-project.com/source/trunk/gnome-sharp | |
svn co http://anonsvn.mono-project.com/source/trunk/gtkmozembed-sharp | |
svn co http://anonsvn.mono-project.com/source/trunk/mono-addins | |
svn co http://anonsvn.mono-project.com/source/trunk/monodevelop | |
build mono, mono-addins with | |
./autogen.sh --prefix=/opt/mono && make && sudo make install |
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
Making all in scanner | |
make[3]: Entering directory `/home/chergert/Projects/gobject-introspection/tests/scanner' | |
PYTHONPATH=../..:$PYTHONPATH ../../tools/g-ir-scanner -v \ | |
--include=../../gir/GObject-2.0.gir \ | |
--library=utility \ | |
--namespace=utility \ | |
--nsversion=1.0 \ | |
--pkg gobject-2.0 \ | |
./utility.c ./utility.h \ | |
--output utility-1.0.gir |
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 <windows.h> | |
#include <shlwapi.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include "tail.h" | |
#define MAX_LINE_LENGTH 16384 | |
#define MAX_READ_LENGTH 4096 | |
#define NOTIFY_BUF_LENGTH 4096 |
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
/* simple-feed-view.vala | |
* | |
* Copyright (C) 2008 Christian Hergert <[email protected]> | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Library General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, |
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
chergert@chergert-notebook:~$ ab -c 60 -n 1000 http://localhost:8081/api/v1/books | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests |
OlderNewer