Skip to content

Instantly share code, notes, and snippets.

View JFWenisch's full-sized avatar
:shipit:
Working from home

Jean-Fabian Wenisch JFWenisch

:shipit:
Working from home
View GitHub Profile
@JFWenisch
JFWenisch / seafile-recover-data.md
Last active December 6, 2023 23:27
Recover seafile data from filesystem

First of, you need to download seafile to be able to use the seaf-fsck tool. If you are on a windows computer you can also use ubuntu via wsl.

Download & extract seafile

sudo apt -y install wget
export VER="7.1.3"
wget https://download.seadrive.org/seafile-server_${VER}_x86-64.tar.gz
sudo tar -xvf  seafile-server_${VER}_x86-64.tar.gz -C /srv
sudo mv /srv/seafile-server-${VER} /srv/seafile
@JFWenisch
JFWenisch / --allow-privileged=true.microk8s.md
Last active August 12, 2020 16:30
spec.template.spec.containers[0].securityContext.privileged: Forbidden: disallowed by cluster policy

Most likely your deployment is using "privileged=true".

To allow privileged containers add --allow-privileged=true to the kubelet und kube-apiserver config

sudo "--allow-privileged=true" >> /var/snap/microk8s/current/args/kube-apiserver

Afterwards restart services

@JFWenisch
JFWenisch / gist:76978d17b83eca56c2d473c26cc2ad38
Created June 28, 2017 11:35
Install / build parrot SDK on Linux
Mkdir parrot
Cd parrot
Mkdir repo_bin
Curl https://storgage.googleapis.com/git-repo-downloads/repo > ~/parrot/repo_bin/repo
Cd repo_bin
Chmod a+x repo
PATH=~/parrot/repo_bin:$PATH
Cd ..
Mkdir SDK
Cd SDK