Skip to content

Instantly share code, notes, and snippets.

View timrosskamp's full-sized avatar

Tim Roßkamp timrosskamp

  • Germany
View GitHub Profile
@timrosskamp
timrosskamp / README.md
Last active June 17, 2018 15:07
Fix wrong keys on mac keyboard when using linux

How to fix < and > keys on linux when using a mac keyboard

Create a .Xmodmap file in user directory: nano ~/.Xmodmap

keycode 49 = less greater less greater bar brokenbar bar
keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032

Apply changes with this command: xmodmap ~/.Xmodmap

@timrosskamp
timrosskamp / docker-compose.yml
Last active October 14, 2020 12:48
Local PHP development with Docker
version: '3'
services:
database:
image: mysql:5.7
volumes:
- ./.docker/db-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: app
@timrosskamp
timrosskamp / server.py
Last active November 9, 2023 18:32
Python server
from flask import Flask, send_from_directory, jsonify, request, Response
from functools import wraps
import os
app = Flask(__name__)
def check_auth(username, password):
"""This function is called to check if a username /
password combination is valid."""
return username == 'tim' and password == 'üöäüöä'