Skip to content

Instantly share code, notes, and snippets.

View pixelmord's full-sized avatar
🎩
wearing a hat

Andreas Adam pixelmord

🎩
wearing a hat
View GitHub Profile
@pixelmord
pixelmord / maintenance_commands.sh
Last active May 23, 2019 15:33
[docker commands] Useful docker commands #docker #cli
# @see https://medium.com/the-code-review/top-10-docker-commands-you-cant-live-without-54fb6377f481
# kill all running containers with
docker kill $(docker ps -q)
# delete all stopped containers with
docker rm $(docker ps -a -q)
# delete all images with
docker rmi $(docker images -q)
# list all running processes
@pixelmord
pixelmord / VscodeSetupSteps.md
Last active May 23, 2019 19:40
[Vscode setup] A setup for combined Drupal and JS (React) development #editor #ide #vscode #drupal #js #react
@pixelmord
pixelmord / brew-perms.sh
Last active May 23, 2019 17:07 — forked from jaibeee/brew-perms.sh
[Configure homebrew permissions] to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew

Keybase proof

I hereby claim:

  • I am pixelmord on github.
  • I am pixelmord (https://keybase.io/pixelmord) on keybase.
  • I have a public key ASC9Dz3ZEJK8rAoQPr53TP5uYzJMOYx7HkV4iK9shqUbfwo

To claim this, I am signing this object:

@pixelmord
pixelmord / ImageRenderExampleBlock.php
Last active October 12, 2022 13:32 — forked from steffenr/file_media_entity.php
[Drupal 8] Create file/ media_entity programmatically
<?php
/**
* @file
* Contains Drupal\mymodule\Plugin\Block\ImageRenderExampleBlock.
*/
namespace Drupal\mymodule\Plugin\Block;
use Drupal\Core\Block\BlockBase;
<input id="inp" type='file'>
<p id="b64"></p>
<img id="img" height="150">

Bundestag XML API

The German parliament iPhone app "Bundestag" uses XML endpoints at bundestag.de to get fresh data. This guide lists them.

Authentication

Since version 4.2 the iPhone app requires an HTTP basic auth header for new endpoints. For backwards compatibility some old endpoints don't require authentication.

The authentication credentials are: