How to get all repositories of a specific GitHub user

To get more than 100 repositories from GitHub it’s necessary to follow the links inside the link header. If you do not want a specific library you can use Requests.

import requests

def get_repositories(url):
    result = []
    r = requests.get(url=url)
    if 'next' in r.links :
        result += get_repositories(r.links['next']['url'])

    for repository in r.json():

    return result

url = ""
print get_repositories(url)

Missing initramfs images on Fedora Rawhide

Wth Dracut it is possible to generate initramfs images on Fedora. The configuration of Dracut is available in /etc/dracut.conf. To overwrite an existing initramfs image add the parameter --force

dracut /boot/initramfs-3.15.0-1.fc21.x86_64.img 3.15.0-1.fc21.x86_64

The Grub2 configuration should be regenerated afterward using grub2-mkconfig -o /boot/grub2/grub.cfg.

To simplify your life use the following script.


# author: Christian Berendt <>

set -x

for kernel in $(find /boot/vmlinuz*); do
    version=$(basename $kernel)
    if [ ! -e /boot/initramfs-$version.img ]; then
        sudo /usr/bin/dracut /boot/initramfs-$version.img $version

for image in $(find /boot/initramfs*); do
    if [ ! -e /boot/vmlinuz-$version ]; then
        sudo rm $image

sudo /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg

Also posted on Stack Overflow.

Google Chrome and Fedora 21

At the moment it is not possible to use Google Chrome with Fedora 21 out of the box.

It is not possible to install the provided RPM package because of a missing dependency

% sudo rpm -Uvh google-chrome-stable_current_x86_64.rpm
error: Failed dependencies: is needed by google-chrome-stable-35.0.1916.114-1.x86_64

When installing the RPM package using the paremter --nodeps it is also not possible to run google-chrome.

% sudo rpm -Uvh --nodeps google-chrome-stable_current_x86_64.rpm

% google-chrome
/usr/bin/google-chrome: /lib64/ version `GCRYPT_1.2' not found (required by /usr/bin/google-chrome)

To be able to use Google Chrome with Fedora 21 you have to install the package compat-libgcrypt provided at

% sudo wget -O /etc/yum.repos.d/

% sudo yum install compat-libgcrypt