Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Luca Steeb steebchen

🏠
Working from home
Block or report user

Report or block steebchen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@steebchen
steebchen / photon-go-multi-selection.md
Created Jun 23, 2019
Photon Go client: query for multiple things in a single query
View photon-go-multi-selection.md

Proposal for selecting multiple things as alternative for the initial proposal

Generated Prisma client types

The prisma types could be generated with all relations a type can have. For example, when a User can have Posts and a Post has an Author, the respective types define the relation in the struct.

// generated code by prisma
View ssh-light.sh
sudo sed -i "s/#\{0,1\}Port .*/Port xxxx/" /etc/ssh/sshd_config
sudo sed -i "s/#\{0,1\}PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config
service sshd reload
View ssh.sh
sudo sed -i "s/#\{0,1\}Port .*/Port xxxx/" /etc/ssh/sshd_config
sudo sed -i "s/#\{0,1\}PermitRootLogin yes/PermitRootLogin no/" /etc/ssh/sshd_config
sudo sed -i "s/#\{0,1\}PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config
service sshd reload
@steebchen
steebchen / install.sh
Created Sep 6, 2018
install ingress-nginx on kubeadm cluster
View install.sh
helm install stable/nginx-ingress --name ingress --namespace kube-system --set controller.hostNetwork=true,controller.kind=DaemonSet
@steebchen
steebchen / install-helm.sh
Created Sep 6, 2018
install helm on k8s kubeadm cluster with rbac
View install-helm.sh
# install helm
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
kubectl create serviceaccount -n kube-system tiller
kubectl create clusterrolebinding tiller-binding --clusterrole=cluster-admin --serviceaccount kube-system:tiller
# run tiller with specific tiller account
helm init --service-account tiller
@steebchen
steebchen / 1-install-ceph-helm.sh
Last active Feb 24, 2019
Set up ceph with kubernetes
View 1-install-ceph-helm.sh
# Requirements: an existing and running k8s cluster
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
helm init
# taken from http://docs.ceph.com/docs/master/start/kube-helm/
helm serve &
# wait for helm serve to be ready
@steebchen
steebchen / 1-deps.sh
Last active May 21, 2019
Kubernetes on Ubuntu
View 1-deps.sh
#!/bin/sh
# run this on all nodes
apt-get update && apt-get install -qy docker.io
apt-get update && apt-get install -y apt-transport-https \
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
@steebchen
steebchen / 00.howto_install_phantomjs.md
Last active Feb 13, 2018 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu
View 00.howto_install_phantomjs.md

How to install PhantomJS on Ubuntu

Version: 2.1.1

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
You can’t perform that action at this time.