Skip to content

Instantly share code, notes, and snippets.

@simos
simos / steam.lxdprofile
Created April 4, 2019 16:59
LXD profile "steam"
config:
environment.DISPLAY: :0
raw.idmap: both 1000 1000
user.user-data: |
#cloud-config
runcmd:
- 'dpkg --add-architecture i386'
- 'apt-get update'
- 'apt-get install -y x11-apps:i386'
- 'apt-get install -y mesa-utils:i386'
@simos
simos / default
Created October 28, 2019 18:10
Minimal server block for nginx to demonstrate php-fpm security vulnerability
# See article at https://blog.simos.info/testing-cve-2019-11043-php-fpm-security-vulnerability-with-lxd-system-containers/
# Location: /etc/nginx/sites-enabled/default
server {
listen 80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.php;
@simos
simos / simplesocks5proxyserver.go
Last active June 13, 2024 13:26
Minimal SOCKS5 proxy server in Go
// For use in the tutorial at https://blog.simos.info/a-network-isolated-container-in-lxd/
// Source: https://github.com/armon/go-socks5
//
// To compile, run once: go get github.com/armon/go-socks5
// then run: go run simplesocks5proxyserver.go
//
package main
import (
@simos
simos / timg-snap.md
Created April 27, 2021 18:26
Instructions on installing the snap package of timg.

Linux distributions that support snap packages

Several Linux distributions have built-in snap package support (Ubuntu and flavors, Solus, Zorin OS and KDE Neon). Other distributions require you to install first the snapd package. See for details the page Installing snapd.

To install timg, visit the timg page at the Snap Store and click the green Install button at the top right.

Alternatively, you can install directly through the command line with the following command:

sudo snap install timg