When plugged-in, the soundcard was given a different idProduct than expected (1011 instead of 1010).
- Open file /lib/udev/rules.d/90-pulseaudio.rules
- Find line with text
usb 1-2: New USB device found, idVendor=17cc, idProduct=1011
| #!/bin/bash | |
| echo "Add user and disable password prompt" | |
| adduser manti | |
| usermod -aG sudo manti | |
| echo "manti ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| echo "Remove unnecessary packages" | |
| apt remove -y needrestart | |
| echo "Install base system packages" |
| -- | |
| -- Read only | |
| -- | |
| -- Create a group | |
| CREATE ROLE postgres_ro_group; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |
| from django.contrib.admin import ModelAdmin | |
| class MyTableAdmin(ModelAdmin): | |
| ... | |
| paginator = LargeTablePaginator | |
| ... | |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Dockerfile that is based on your production image and
simply install xdebug into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |