Skip to content

Instantly share code, notes, and snippets.

" Color
" ==============
set t_Co=256
colorscheme darkburn
" Highlevel modes
"===============
filetype plugin indent on
filetype on
set nocompatible " Disallow vi compatibility mode.
/**
* @file
* This file is part of the Xenomai project.
*
* @note Copyright (C) 2004 Philippe Gerum <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
r 5 16:55:47 luigi kernel: [ 8.564129] hub 3-0:1.0: USB hub found
Mar 5 16:55:47 luigi kernel: [ 8.564129] hub 3-0:1.0: 3 ports detected
Mar 5 16:55:47 luigi kernel: [ 8.570220] ohci_hcd 0000:00:12.1: PCI->APIC IRQ transform: INT A -> IRQ 16
Mar 5 16:55:47 luigi kernel: [ 8.577068] ohci_hcd 0000:00:12.1: OHCI Host Controller
Mar 5 16:55:47 luigi kernel: [ 8.580068] ohci_hcd 0000:00:12.1: new USB bus registered, assigned bus number 4
Mar 5 16:55:47 luigi kernel: [ 8.590023] ohci_hcd 0000:00:12.1: irq 16, io mem 0xfeaf7000
Mar 5 16:55:47 luigi kernel: [ 8.654143] hub 4-0:1.0: USB hub found
Mar 5 16:55:47 luigi kernel: [ 8.654143] hub 4-0:1.0: 3 ports detected
Mar 5 16:55:47 luigi kernel: [ 8.660181] ohci_hcd 0000
ad"Kevin: irq=4/n name="/usr/lib/Kevin: irq=4/nNetworkManager/nKevin: irq=4/nm-dhcp-client.acKevin: irq=4/ntion" pid=598 coKevin: irq=4/nmm="apparmor_parKevin: irq=4/nser"
Mar 6 14:2Kevin: irq=4/n8:45 luigi kerneKevin: irq=4/nl: [ 14.491345Kevin: irq=4/n] type=1400 audiKevin: irq=4/nt(1362598123.786Kevin: irq=4/n:4): apparmor="SKevin: irq=4/nTATUS" operationKevin: irq=4/n="profile_load" Kevin: irq=4/nname="/usr/lib/cKevin: irq=4/nonnman/scripts/dKevin: irq=4/nhclient-script" Kevin: irq=4/npid=598 comm="apKevin: irq=4/nparmor_parser"
MKevin: irq=4/nar 6 14:28:45 lKevin: irq=4/nuigi kernel: [ Kevin: irq=4/n 14.492025] KeviKevin: irq=4/nn: irq=12/n
Mar Kevin: irq=4/n 6 14:28:45 luigKevin: irq=4/ni kernel: [ 14Kevin: irq=4/n.492675] type=14Kevin: irq=4/n00 a
Ma[ 64.874552] Kevin: irq=4
r 6 14:53:40 lu[ 64.878494] Kevin: irq=4
igi kernel: [ [ 64.882433] Kevin: irq=4
17.311951] Kevin[ 64.886374] Kevin: irq=4
: irq=4
Mar 6 1[ 64.890316] Kevin: irq=4
4:53:40 luigi ke[ 64.894260] Kevin: irq=4
rnel: [ 17.313[ 64.898203] Kevin: irq=4
345] Kevin: irq=[ 64.902150] Kevin: irq=4
4
/* -*- linux-c -*-
* linux/arch/x86/kernel/ipipe.c
*
* Copyright (C) 2002-2012 Philippe Gerum.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
* USA; either version 2 of the License, or (at your option) any later
* version.
/*
* Tests context switching times based on a semaphore in the RTAI kernel.
* Author: Rob Lyerly
*/
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <sched.h>
/*
* Tests context switching times based on a semaphore in the RTAI kernel.
* Author: Rob Lyerly
*
* This test has been modified to increase scalability in this way:
*
* - The number of threads is correlated to the number of cores, each core gets two threads
* - Each core gets one mutex and a locker and unlocker thread
* - This version does not require a barrier
* - The "threads" variable does NOT include main
/*
* Tests context switching times based on a semaphore in the RTAI kernel.
* Author: Rob Lyerly
*
* This test has been modified to increase scalability in this way:
*
* - The number of threads is correlated to the number of cores, each core gets two threads
* - Each core gets one mutex and a locker and unlocker thread
* - This version does not require a barrier
* - The "threads" variable does NOT include main
#!/usr/bin/python3
""" countdown.py - A countdown function for syncing streams
"""
def countdown(phenny,input):
phenny.say("3")
phenny.say("2")
phenny.say("1")
phenny.say("GO!")
countdown.commands = ['countdown','sync']