This file contains hidden or 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
use std::thread; | |
use std::sync::Mutex; | |
use std::sync::Arc; | |
struct Table { | |
forks: Vec<Mutex<()>>, | |
} | |
struct Philosopher { | |
name: String, |
This file contains hidden or 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
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... |
This file contains hidden or 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
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... |
This file contains hidden or 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 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." |
This file contains hidden or 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
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|. |
This file contains hidden or 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
[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 |
This file contains hidden or 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
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"; | |
} | |
} |
This file contains hidden or 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
### | |
# 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, |
This file contains hidden or 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
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) |
This file contains hidden or 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
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) |