Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
use std::thread;
use std::sync::Mutex;
use std::sync::Arc;
struct Table {
forks: Vec<Mutex<()>>,
}
struct Philosopher {
name: String,
Preparing source tree...
pulling from https://bitbucket.org/Torr_Samaho/zandronum
searching for changes
aucun changement trouvé
1184 files updated, 0 files merged, 0 files removed, 0 files unresolved
Latest stable version is: a3663b0061d5 ZA_2.1.2
Checking out tag...
1079 files updated, 0 files merged, 208 files removed, 0 files unresolved
Removing old build tree in /media/store/buildroot/zandronum-build/buildserver
Creating buildtree...
Preparing source tree...
pulling from https://bitbucket.org/Torr_Samaho/zandronum
searching for changes
aucun changement trouvé
1184 files updated, 0 files merged, 103 files removed, 0 files unresolved
Latest stable version is: a3663b0061d5 ZA_2.1.2
Checking out tag...
1079 files updated, 0 files merged, 208 files removed, 0 files unresolved
Removing old build tree in /media/store/buildroot/zandronum-build/buildserver
Creating buildtree...
#!/usr/bin/env bash
BUILDROOT="/media/store/buildroot/zandronum-build"
SOURCETREE="/home/supernaut/code/hg/zandronum"
BUILDTREE="$BUILDROOT/buildserver"
CMAKEOPTS="-DCMAKE_BUILD_TYPE=Release -DSERVERONLY=ON"
HG=$(which hg)
if [[ $? -ne 0 ]] ; then
echo "Could not find mercurial in \$PATH, aborting."
7. Selection and drop registers "*, "+ and "~
Use these registers for storing and retrieving the selected text for the GUI.
See |quotestar| and |quoteplus|. When the clipboard is not available or not
working, the unnamed register is used instead. For Unix systems the clipboard
is only available when the |+xterm_clipboard| feature is present. {not in Vi}
Note that there is only a distinction between "* and "+ for X11 systems. For
an explanation of the difference, see |x11-selection|. Under MS-Windows, use
of "* and "+ is actually synonymous and refers to the |gui-clipboard|.
[root@cerberus ~]# ./megasasctl
a0 PERC 5/i Integrated encl:1 ldrv:1 batt:good
a0d0 680GiB RAID 5 1x6 optimal
a0e8s0 136GiB a0d0 online
a0e8s1 136GiB a0d0 online
a0e8s2 136GiB a0d0 online
a0e8s3 136GiB a0d0 online
a0e8s4 136GiB a0d0 online
a0e8s5 136GiB a0d0 online
if(isset($_SERVER))
{
$_SERVER['PHP_SELF'] = "/";
$_SERVER['REMOTE_ADDR'] = "127.0.0.1";
if(!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$_SERVER['HTTP_X_FORWARDED_FOR'] = "127.0.0.1";
}
}
###
# Copyright (c) 2010, mr_daemon
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
def tokenize(string):
# Regular expression to extract blocks
_recipient = re.compile(r'^(.+?)\s(in|to|about)\b',
re.IGNORECASE)
_time = re.compile(r'\bin\s(\d+\s\b.+?\b)(?:\sto\b|\sabout\b|$)',
re.IGNORECASE)
_message = re.compile(r'\b(?:to|about)\s(.+?)(?:\sin\b|$)',
re.IGNORECASE)
def tokenize(string):
# Regular expression to extract blocks
_recipient = re.compile(r'^(.+?)\s(in|to|about)\b',
re.IGNORECASE)
_time = re.compile(r'\bin\s(\d+\s\b.+?\b)(?:\sto\b|\sabout\b|$)',
re.IGNORECASE)
_message = re.compile(r'\b(?:to|about)\s(.+?)(?:\sin\b|$)',
re.IGNORECASE)