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 / 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
@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;

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: