Skip to content

Instantly share code, notes, and snippets.

View aurelijusrozenas's full-sized avatar

Aurelijus Rožėnas aurelijusrozenas

View GitHub Profile

my raspberry pi setup

  • basic setup
  • auto-login on startup
  • chromium
  • shared user with google sync for bookmarks in chromium
  • auto-start chromium with shared bookmark in fullscreen mode (
  • setup synergy
  • setup ssh tunnel for synergy (with restricted rights) (client: ssh -f -N -L 24800:server-hostname:24800 server-hostname)
  • share ssh with zeroconf
@aurelijusrozenas
aurelijusrozenas / docker-psi
Last active August 16, 2022 16:05
Displays docker ps list with additional column of IP address.
#!/bin/bash
# Displays docker ps list with additional column of IP address.
(
# take default docker ps output
docker ps "$@" | while read -r line; do
# replace separators with | to use later with `column`
echo -n "$line" | sed 's/ \{2,\}/|/g' | tr '\t' '|';
containerId=$(echo $line | column | awk '{print $1}')
# header
if [ $containerId == 'CONTAINER' ]; then
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# may not work, then add manually
echo "deb https://apt.dockerproject.org/repo ubuntu-yakkety main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt install docker-engine
# OR