Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
@sa=split("\n",`vmstat`);
@line=split(" ",$sa[1]);
for ($i=0; $i <= @line; $i++) {
if ( $line[$i] eq "wa" ) {
$j=$i;
@stat=split(" ",$sa[2]);
print "Message: CPU wait IO in percentage: $stat[$j]\n";
print "Statistic: $stat[$j]\n";
exit 0;

How to <TODO - enter subject>

This document describe <TODO - what?> in One Shop, Version 8

Intended reader

This document is intended to <TODO - enter the subject>

Owner of this document

<TODO - Your name>. If you find problems or have suggestions how this documentation should be improved, please, email or send message on slack - https://aaoneshop.slack.com/messages/C74N4TCLD

Keybase proof

I hereby claim:

  • I am gunnarahlberg on github.
  • I am gunnarahlberg (https://keybase.io/gunnarahlberg) on keybase.
  • I have a public key ASAC3NfcRyrS8Od0bRQVyB_JIPg2zjYq8cH_SEbB7Em-Ewo

To claim this, I am signing this object:

@gunnarahlberg
gunnarahlberg / designer.html
Last active August 29, 2015 14:14
designer
<link href="../topeka-elements/theme.html" rel="import">
<link href="../topeka-elements/topeka-resources.html" rel="import">
<link href="../topeka-elements/topeka-app.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
@gunnarahlberg
gunnarahlberg / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@gunnarahlberg
gunnarahlberg / gist:9844657
Created March 28, 2014 22:52
Todo app with Sort
<!doctype html>
<script src= "mithril.js"></script>
<script>
//application modules
var todo = {};
//todo properties
todo.Todo = function(data) {
22:55:56 /tmp/inst$ sudo dpkg -i *deb
(Läser databasen ... 362160 filer och kataloger installerade.)
Förbereder att ersätta linux-headers-3.5.0-45-generic 3.5.0-45.68 (med linux-headers-3.5.0-45-generic_3.5.0-45.68_amd64.deb) ...
Packar upp ersättande linux-headers-3.5.0-45-generic ...
Förbereder att ersätta linux-image-3.5.0-45-generic 3.5.0-45.68 (med linux-image-3.5.0-45-generic_3.5.0-45.68_amd64.deb) ...
Done.
Packar upp ersättande linux-image-3.5.0-45-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-45-generic /boot/vmlinuz-3.5.0-45-generic
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b5)
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b5)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Con
C:\src\LightTable>lein cljsbuild once
Compiling ClojureScript.
Compiling "deploy/core/node_modules/lighttable/bootstrap.js" from ["src"]...
...
WARNING: Use of undeclared Var lt.object/raise* at line 80 C:\src\LightTable\src\lt\object.cljs
WARNING: Use of undeclared Var lt.object/->id at line 108 C:\src\LightTable\src\lt\object.cljs
WARNING: Use of undeclared Var lt.object/merge! at line 114 C:\src\LightTable\src\lt\object.cljs
WARNING: Use of undeclared Var lt.object/merge! at line 117 C:\src\LightTable\src\lt\object.cljs
WARNING: Wrong number of args (1) passed to lt.object/update-listeners at line 117 C:\src\LightTable\src\lt\object.cljs
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div style="display: none" id="nowebsocket">
<h3>Not supported</h3>
<p>Sorry, cant handle your browser. Try Firefox or Chrome</p>
</div>