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 | |
# $2 is the /dev/mapper/IDENTIFIER | |
# $3 is the name of the cache, as specified by Flashcache | |
# Tune parameters | |
sysctl -w "dev.flashcache.$3.fallow_delay=3600" | |
sysctl -w "dev.flashcache.$3.dirty_thresh_pct=80" | |
# Verify disk structure |
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
import matplotlib | |
TEXT_WIDTH = 452.9679 #pt | |
FONT_NORMAL_SIZE = 10.0 #pt | |
PT_TO_INCH = 0.01388888889 | |
# Configure matplotlib to render LaTeX style | |
matplotlib.rc("font", family="serif", size=FONT_NORMAL_SIZE) | |
matplotlib.rc("text", usetex=True) |
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
GRUB_CMDLINE_LINUX_DEFAULT="drm.vblankoffdelay=1 intel_pstate=enable" |
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
from multiprocessing import Process | |
import zmq, random | |
from zmq.eventloop import ioloop, zmqstream | |
ioloop.install() | |
def child(port, i): | |
def on_message(message): | |
print message |
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
jQuery("body").append('<div><div id="google_search" style="width: 400px;margin-right: 0px;;margin-left: 1000px; border: 1px solid #000; background-color: white;"></div>'); | |
jQuery("#container").css({ margin : "inherit"}); | |
(function(e){e.fn.gSearch=function(h){var a=e.extend({},e.fn.gSearch.defaults,h);if(a.search_text==undefined)return this;if(a.search_text=="")return this;return this.each(function(){var f=e(this);f.addClass("google-search-results");a.pagination=a.pagination=="false"||a.pagination==false?false:true;f.html('<span style="text-decoration: blink;">Loading...</span>');_google_search=new google.search.WebSearch;var d="";a.count*1>4&&_google_search.setResultSetSize(google.search.Search.LARGE_RESULTSET);if(a.site.length> 0){a.site=a.site.substring(0,4)=="www."?a.site.substring(4,a.site.length):a.site;a.site.length>0&&_google_search.setSiteRestriction(a.site)}_google_search.setSearchCompleteCallback(this,function(){d="";if(_google_search.results&&_google_search.results.length>0){var c=_google_search. |
NewerOlder