Skip to content

Instantly share code, notes, and snippets.

@il-katta
il-katta / stresstest.sh
Last active August 29, 2015 13:57
cpu/mem stresstest
#!/bin/bash
# stresstest.sh
# Author: Andrea Cattaneo < andrea.cattaneo.dev@gmail.com >
# Description: very simple stress test for ram and cpu
# Version: 0.15
mount_point="/mnt/ram"
output_file="$mount_point/stresstest.raw"
run_file="/tmp/stresstest.run"
if ! ( which cpulimit &>/dev/null ) ; then
## Implementazione in bash di cpulimit
@il-katta
il-katta / nth-child4IE.js
Created May 28, 2013 00:16
nth-child for IE browser
/* thanks to:
* http://stackoverflow.com/questions/3326494/parsing-css-in-javascript-jquery
* for this parser
*/
function CSS(css){
this.parseCSS=function(css) {
var rules = {};
css = this.removeComments(css);
var blocks = css.split('}');
blocks.pop();
@il-katta
il-katta / fedora-fromiso
Created August 6, 2012 16:53
Boot Fedora Live from ISO file using grub2
#!/bin/sh
#
# fedora-fromiso - Patch the ramdisk of Fedora to allow booting from
# ISO image
#
# Copyright (C) 2012 Mansour <mansour@oxplot.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are