Skip to content

Instantly share code, notes, and snippets.

View chergert's full-sized avatar
💭
I'm on GitLab https://gitlab.gnome.org/chergert

Christian Hergert chergert

💭
I'm on GitLab https://gitlab.gnome.org/chergert
View GitHub Profile
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
import gio
import gobject
import glib
import os
import time
_NAME_ATTRIBUTE="standard::display-name"
_TYPE_ATTRIBUTE="standard::type"
_SYM_ATTRIBUTE="standard::is-symlink"
('#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)
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;
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"
}
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
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
#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
/* simple-feed-view.vala
*
* Copyright (C) 2008 Christian Hergert <chris@dronelabs.com>
*
* 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,
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