Skip to content

Instantly share code, notes, and snippets.

*.php merge=gumtree
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LOG_DIR="$DIR/s3"
find "$LOG_DIR" -type f -print0 | while IFS= read -r -d $'\0' LOG_FILE; do
awk '{
method=$8
@Mikulas
Mikulas / Dockerfile
Last active March 11, 2022 12:34
Docker image PHP 7.1 alpine with extensions
FROM php:7.1-fpm-alpine
RUN apk add --update \
autoconf \
g++ \
libtool \
make \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install mysqli \
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# $ sudo pip install slackweb
import RPi.GPIO as GPIO
import slackweb
slack = slackweb.Slack(url="https://hooks.slack.com/services/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")
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
#include <GL/glew.h>
#define GLEW_STATIC
@Mikulas
Mikulas / init.sh
Last active October 22, 2016 10:08
raspbian homebridge
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Install nodejs
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
brew pull --bottle https://github.com/Homebrew/homebrew-php/pull/3559
@Mikulas
Mikulas / README.md
Last active May 3, 2017 11:50
git-nudge

git-nudge

Same as git push, but suppresses GitHub branch protection for admins on pushed branches.

Installation

Put this file to any location in your $PATH and make it executable.

This is for Posterity: Googling issues with Apple iOS 9 Mikrotik and L2TP VPN lead me to this Post. I had many troubles and finally got it to work. I will post my commands below to hopefully save others some headache. :D

this assumes some default configuration on the router: local subnet 192.168.1.0/24 router address 192.168.1.1 dhcp pool 192.168.1.100 - 192.168.1.200

@Mikulas
Mikulas / uli.md
Created May 14, 2016 07:42 — forked from freaz/uli.md
FI-ULI

ULI výpisky

Přednáška 1 - Jazyk, komunikace a lingvistika

Jazyk je:

  • znakový systém
  • sloužící k dorozuívání mezi lidmi
  • k vyjádření libovolného obsahu vědomí
  • s bohatou vnitřní strukturou
  • užívaný a přijímaný v určitém společenství
  • objektový jazyk x metajazyk