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
#include <fcntl.h> | |
#include <sys/ioctl.h> | |
#include <linux/fb.h> | |
#include <sys/mman.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
static struct fb_var_screeninfo sinfo; | |
static struct fb_fix_screeninfo fix_info; |
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 | |
## contents of ubinize.cfg | |
# [ubifs] | |
# mode=ubi | |
# image=/tmp/ubifs.img | |
# vol_id=0 | |
# vol_size=128MiB | |
# vol_type=dynamic | |
# vol_name=rootfs |
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
#ifndef TRANS_H | |
#define TRANS_H | |
#include <ucontext.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
struct task | |
{ |
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/sh | |
download_dir=/tmp/sb | |
sb_base_url=http://scratchbox.org/download/files/sbox-releases/apophis/tarball | |
sb=/opt/scratchbox | |
target=armv7 | |
sb_base_dir=$(dirname $sb) | |
mkdir -p $download_dir |
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
sb="/opt/scratchbox" | |
user="$USER" | |
sb_home="$sb/users/$user/home/$user" | |
sb_url="http://www.scratchbox.org/download/files/sbox-releases/apophis/tarball" | |
sb_base_dir=$(dirname $sb) | |
function setup_target() | |
{ |
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/sh | |
RS=20 | |
get_capacity() | |
{ | |
c=`i2cget -y 2 0x55 0x0c w` | |
return $(($c * 3570 / $RS / 1000)) | |
} |
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
#!/usr/bin/env ruby | |
$TEST_PERIOD = 60 * 61 | |
$SAMPLE_PERIOD = 60 * 10 | |
$CAPACITY = 1320 | |
$RS = 20 | |
class Array | |
def mean | |
self.inject(0) { |sum, x| sum + x } / size.to_f |
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
GNOME user survey 2012 | |
Welcome to the second GNOME user survey. This survey is not blessed by the GNOME team, it's built by users (and some developers as well). | |
This survey is anonymous, but all information that the users provide (raw data) will be publicly available to allow for independent analysis. | |
Note that you may skip questions as you like, but it should only take a few minutes to fill it completely. | |
In order to increase the validity of this survey, please ask people that normally wouldn't answer this survey to do so, also, if you know of somebody that doesn't have access, print it or make them available for them, and fill it online on their behalf. Also, if you know of somebody that couldn't possibly have access to this survey, please let us know, it's extremely important to know what kind of people can't be reached. |
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
#!/usr/bin/env ruby | |
@authors = { | |
"david" => "David S. Miller", | |
"ingo" => "Ingo Molnar", | |
"takashi" => "Takashi Iwai", | |
"alexander" => "Al Viro", | |
"russel" => "Russell King", | |
"paul" => "Paul Mundt", | |
"tejun" => "Tejun Heo", |
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 | |
# actual code | |
find_merge () | |
{ | |
local selection extra | |
test "$2" && extra=" into $2" | |
git rev-list --min-parents=2 --grep="Merge branch '$1'$extra" --topo-order ${3:---all} | tail -1 | |
} |
OlderNewer