Skip to content

Instantly share code, notes, and snippets.

gawk '/^[A-Za-zÄÖÜäöü ]+$/ {print; getline; getline; print $0 " 2022;True"}' abfall2022.html | sed -e 's/|Gebiet finden//g' | sed -e 'N;s/\n/;/' -e 's/Januar/01/' -e 's/Februar/02/' -e 's/März/03/' -e 's/April/04/' -e 's/Mai/05/' -e 's/Juni/06/' -e 's/Juli/07/' -e 's/August/08/' -e 's/September/09/' -e 's/Oktober/10/' -e 's/November/11/' -e 's/Dezember/12/g' -e 's/Montag, //g' -e 's/Dienstag, //g' -e 's/Mittwoch, //g' -e 's/Donnerstag, //g' -e 's/Freitag, //g' -e 's/Samstag//g' -e 's/Sonntag//g' -e 's/\. /./g' -e 's/\([0-9]\) \([0-9]\)/\1.\2/g' -e 's/;\([0-9]\)\./;0\1./g' -e 's/\([0-9]\{2\}\).\([0-9]\{2\}\).\([0-9]\{4\}\)/\3-\2-\1/g' -e 's/;/,/g'
@olik79
olik79 / .vimrc
Created January 3, 2021 16:32 — forked from chrisyeh96/.vimrc
My .vimrc
"""" Enable Vundle: vim plugin manager
" required before Vundle initialization
" set nocompatible " disable compatibility mode with vi
" filetype off " disable filetype detection (but re-enable later, see below)
" set the runtime path to include Vundle, and initialize
" set rtp+=~/.vim/bundle/Vundle.vim
" call vundle#begin()
" Plugin 'VundleVim/Vundle.vim'
@olik79
olik79 / nodebot.js
Created December 10, 2018 11:14 — forked from Rup1/nodebot.js
Preliminary script. File-watching specific folder using Chokidar, and automating Apple Mail using JXA.
var osa = require('osa2');
var fs = require('fs');
var chokidar = require('chokidar');
var watcher = chokidar.watch('/Users/rup/Desktop/trolls', {
ignored: /(^|[\/\\])\../,
ignoreInitial: true,
persistent: true,
});
@olik79
olik79 / convert-to-webp.sh
Last active August 3, 2016 09:48 — forked from SandroMachado/convert-to-webp.sh
Change instructions to show installation of cwebp for both, homebrew and macports
#/bin/sh
# Inpiration: http://engineeringblog.yelp.com/2016/05/yelp-android-app-went-on-a-diet.html
# `-lossless` not used to give support for Android 4.0+
# Make sure cwebp is installed.
if ! type "cwebp" > /dev/null; then
echo "Please install cwebp to continue:"
echo "brew install webp"
echo "-- or --"
echo "sudo port selfupdate"
@olik79
olik79 / AndroidManifest.xml
Last active July 21, 2016 12:27 — forked from SMontiel/AndroidManifest.xml
Monitor connectivity changes
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="true"
@olik79
olik79 / 0_reuse_code.js
Created July 30, 2014 08:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console