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
#!/bin/bash | |
DEFAULT_RAM=768; | |
SNAPSHOT=""; | |
VGA="std"; | |
VMDIR="${HOME}/vm"; | |
VM="qemu-kvm"; | |
#AUDIO_DRV="sdl" | |
AUDIO_DRV="pa" | |
RAM=$DEFAULT_RAM; |
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
" .vimrc | |
" Smart tabbing / autoindenting | |
set undolevels=100 | |
set nocompatible | |
set autoindent | |
set smartindent | |
set smarttab | |
" Convert tabs to spaces | |
"set expandtab |
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
#!/bin/bash | |
# from http://www.linuxtutorialblog.com/post/solution-converting-flac-to-mp3 | |
OUT_DIR="./mp3" | |
[ ! -d ${OUT_DIR} ] && mkdir -p ${OUT_DIR} | |
# modify the lame options to your | |
# preference | |
lame_opts=" --vbr-new -V 2 -B 256 " |
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
pkgname=r-biobase | |
pkgver=2.6.1 | |
pkgrel=1 | |
pkgdesc="Biobase Library for the GNU R language" | |
arch=('i686' 'x86_64') | |
url="http://www.r-project.org/" | |
license=("Artistic-2.0") | |
depends=('r') | |
makedepends=('rpmextract') | |
source=(ftp://download.fedora.redhat.com/pub/fedora/linux/updates/12/SRPMS/R-Biobase-${pkgver}-1.fc12.src.rpm) |
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
<?php | |
function print_array($array) | |
{ | |
echo "<div style=\"font-family: 'Courier New', Courier, monospace; font-size: 12px;\">\n"; | |
print_array_recursive($array, ''); | |
echo "</div>\n"; | |
} | |
function print_array_recursive($array, $prefix) |
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
class ObjNode( object ): | |
def __init__( self, value=None ): | |
object.__init__( self ) | |
self.__dict__[ "value" ] = value | |
def __setattr__( self, attr, value ): | |
if ( attr[ 0 ] == '_' ): | |
self.__dict__[ attr ] = value | |
elif self.__dict__.has_key( attr ): |
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
// To compile: gcc -std=gnu99 -O2 -o performance performance.c | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#define arrcpy(dest,src,size) for(size_t zz=0;zz<size;zz++)dest[zz]=src[zz] | |
#define dalloc(size) (test_t*)malloc(sizeof(test_t)*size) |
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
diff --git a/net/core/dev.c b/net/core/dev.c | |
index e5942bf..c2461b1 100644 | |
--- a/net/core/dev.c | |
+++ b/net/core/dev.c | |
@@ -5262,6 +5262,9 @@ int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg) | |
* Not applicable in our case */ | |
case SIOCSIFLINK: | |
return -ENOTTY; | |
+ /* For SYMANTEC BACKUP AGENT */ | |
+ case SIOCGIFCOUNT: |
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
""" | |
filter.py | |
Author: Thomas McGrew | |
License: | |
MIT license. | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation |
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
#!/bin/bash | |
# | |
# This file echoes a bunch of color codes to the | |
# terminal to demonstrate what is available. Each | |
# line is the color code of one forground color, | |
# out of 17 (default + 16 escapes), followed by a | |
# test use of that color on all nine background | |
# colors (default + 8 escapes). | |
# | |
# Taken from the Bash Prompt HOWTO: |
OlderNewer