This file contains hidden or 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
| <?php | |
| $testData = [ | |
| "Senior IT Consultant / Project Manager – Pharma Industry f/m", | |
| "Business Development Manager – High-Tech & Precision Manufacturing f/m", | |
| "Comos Specialist – Pharma Engineering f/m", | |
| "Medizintechniker/in 60 – 80%", | |
| "Informatikrevisor/in – IT-Sicherheitsspezialist/in", | |
| "Unterhaltsmechaniker/in 3‐Schicht", | |
| "Chef(fe) d'équipe en Chauffage - Ventilation - Climatisation", |
This file contains hidden or 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/zsh | |
| # place this in $PATH and then run: | |
| # git up-all | |
| # make it beautiful | |
| autoload colors ; colors | |
| GIT=`which git` |
This file contains hidden or 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
| #!/usr/bin/env php | |
| <?php | |
| $people = [ | |
| 'b2b' => [ | |
| 'Dominik', | |
| 'Thomas', | |
| 'Henrik', | |
| ], | |
| 'b2c' => [ |
This file contains hidden or 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
| <?php | |
| // read in translated city nam | |
| $translations = []; | |
| $languages = [ 1 => 'de', 2 => 'fr', 3 => 'it', 4 => 'rm' ]; | |
| $fp = fopen($argv[1], 'r'); | |
| while(false !== ($line = fgetcsv($fp, 1024, "\t"))) { | |
| list( | |
| // Primary key for postcode/town |
This file contains hidden or 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
| input { | |
| file { | |
| path => "/var/log/apache2/access.log" | |
| type => "apache-access-cookies" | |
| } | |
| } | |
| filter { | |
| if [type] == "apache-access-cookies" { | |
| grok { |
This file contains hidden or 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/bash | |
| TMP=$(mktemp) | |
| TMP2=$(mktemp) | |
| threshold="0.1" | |
| awk '{ split($1, b, ","); a[b[1]]++ } END { for (d in a) { printf("%d %s\n", a[d], d) } }' | sort -nr > $TMP | |
| sum=$(awk 'FNR==NR{sum+=$1;next}; END {print sum}' $TMP) | |
| while read line; do | |
| c=$(echo $line | awk '{ print $1 }') |