Skip to content

Instantly share code, notes, and snippets.

View EddieRingle's full-sized avatar

Eddie Ringle EddieRingle

View GitHub Profile
@EddieRingle
EddieRingle / cpls-sysbench.txt
Created March 16, 2015 16:28
Chromebook Pixel (2015) LS - sysbench
[eddie@localhost sysbench]$ for f in prepare run cleanup; do sysbench --test=fileio --file-test-mode=rndrw --max-time=60 --max-requests=0 --file-extra-flags=direct $f; done
sysbench 0.4.12: multi-threaded system evaluation benchmark
128 files, 16384Kb each, 2048Mb total
Creating files for the test...
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
@EddieRingle
EddieRingle / vagus-sysbench.txt
Created March 16, 2015 16:29
Vagus (i7 4770k / Samsung 840 Pro 256GB) - sysbench
[eddie@vagus sysbench]$ for f in prepare run cleanup; do sysbench --test=fileio --file-test-mode=rndrw --max-time=60 --max-requests=0 --file-extra-flags=direct $f; done
sysbench 0.4.12: multi-threaded system evaluation benchmark
128 files, 16384Kb each, 2048Mb total
Creating files for the test...
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
2015-03-17 15:57:38 +0000
python
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
function get_first_image($html)
{
// We're trying to find and retrieve the SRC of the first image tag in the content
preg_match("/<img(.*)>/Uise", $html, $matches);
if(@trim($matches[1]) !== "")
{
// Found an image tag!
// Get the SRC parameter ...
preg_match("/src=\"(.*)\"/Uise", $matches[1], $image);
test gist
A lot
more
lines
than
diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java
index 2a695e5..c38ffe6 100644
--- a/core/java/android/widget/ProgressBar.java
+++ b/core/java/android/widget/ProgressBar.java
@@ -210,7 +210,7 @@ public class ProgressBar extends View {
drawable = a.getDrawable(R.styleable.ProgressBar_indeterminateDrawable);
if (drawable != null) {
- drawable = tileifyIndeterminate(drawable);
+ //drawable = tileifyIndeterminate(drawable);
Test 1
Modifying this gist.
@EddieRingle
EddieRingle / entity.h
Created July 18, 2011 21:47
Cerberus Entity class header
/*
* Copyright (c) 2011 Eddie Ringle <eddie@eringle.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@EddieRingle
EddieRingle / update
Created August 18, 2011 21:37
All-in-one script for system maintenance via APT
#!/bin/sh
#
# All-in-one script for system maintenence via APT
#
# sudo wget http://files.idlesoft.net/pub/update -O /usr/local/sbin/update
# sudo chmod a+x /usr/local/sbin/update
#
echo ".::Updating sources::."
apt-get update
@EddieRingle
EddieRingle / llist.c
Created October 23, 2011 15:50
A Neat LList Implementation
/*
* Copyright (c) 2011 Eddie Ringle <eddie@eringle.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.