Skip to content

Instantly share code, notes, and snippets.

@mamrehn
mamrehn / python-gpu.md
Last active August 29, 2015 14:16
Python packages
@mamrehn
mamrehn / angular_on_canvas.html
Created November 11, 2014 14:05
Simple example of canvas drawing in Coffeescript, AngularJS using HTML5 Canvas. Interactive: http://plnkr.co/JZrYLo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>AngularJS Canvas Pixel Drawing</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="style.css" />
@mamrehn
mamrehn / fix_degraded_array.md
Created November 8, 2014 16:36
Recover degraded array in a software raid.

Source: Based on an artice at thomas-krenn.com (german, english translation) and raid.wiki.kernel.org.

1. Get a new hdd of same or greater size

Use feature comparison websites like gh.de or pricegrabber.com to find a suitable device.

2. Substitute with drive causing the failure

Check which drive is causing the degradation.

mdadm --examine /dev/sd[a-z] | egrep 'Event|/dev/sd'