count history commands
history | cut -c8- | sort | uniq -c | sort -rn | head
AF | Afghanistan | |
---|---|---|
EG | Ägypten | |
AL | Albanien | |
DZ | Algerien | |
AD | Andorra | |
AO | Angola | |
AI | Anguilla | |
AQ | Antarktis | |
AG | Antigua und Barbuda | |
GQ | Äquatorial Guinea |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> <!-- values: default, black, black-translucent --> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<meta name="viewport" content="maximum-scale=1.0"> | |
<meta name="viewport" content="user-scalable=no"> |
# Deal exclusively with unicode objects as much as possible | |
# by decoding things to unicode objects when you first get them and | |
# encoding them as necessary on the way out. | |
# https://stackoverflow.com/a/6048203 | |
>>> s = 'abc' | |
>>> type(s) | |
<type 'str'> | |
>>> u = u'abc' # note the u prefix |
import argparse | |
import xlrd | |
import xlwt | |
def chunks(l, n): | |
"""Yield successive n-sized chunks from l.""" | |
for i in range(0, len(l), n): | |
yield l[i:i + n] |
count history commands
history | cut -c8- | sort | uniq -c | sort -rn | head
#!/bin/sh | |
## | |
# This is a script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run in interactive mode with: | |
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
# | |
# or run it without prompt questions: |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
<?php | |
require_once dirname(__FILE__) . "/bootstrap.php"; | |
//Shop starten | |
$url_requestPRODUCT = 'http://student.mi.hs-offenburg.de:8080/sqlrest/PRODUCT'; | |
$responsePRODUCT = file_get_contents($url_requestPRODUCT); | |
$xmldatPRODUCT = simplexml_load_string($responsePRODUCT); |