Skip to content

Instantly share code, notes, and snippets.

View feluxe's full-sized avatar

Felix Meyer-Wolters feluxe

View GitHub Profile
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE
default po/nmap-pod-6b7f8f9c48-jcm58 0/1 CrashLoopBackOff 6 8m 10.2.2.188 spc1aitu1i-worker-2
kube-system po/cert-manager-cert-manager-59fff59c7b-vdnd7 2/2 Running 4 3d 10.2.1.55 spc1aitu1i-worker-1
kube-system po/digitalocean-cloud-controller-manager-6d6b675bfd-nxqq2 1/1 Running 0 3d 10.2.1.57 spc1aitu1i-worker-1
kube-system po/digitalocean-provisioner-d4c79dfb4-mhb5d 1/1 Running 0 3d 10.2.1.56 spc1aitu1i-worker-1
kube-system po/heapster-56bf7c7896-9rv4z 1/1 Running 0 3d 10.2.1.58 spc1aitu1i-worker-1
kube-system po/kube-apiserver-wp7
@feluxe
feluxe / python_code_style_param_indent.py
Last active May 19, 2017 17:28
Example for functions with multi-line parameters in Python.
import hug
import os
from typing import Optional, Tuple, Union
from image_server.constants import DATA_DIR, MAXIMUM_WIDTH_LIMIT
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
def _make_str_from_render_query(render_query: dict):
@feluxe
feluxe / .gitignore
Last active November 23, 2016 01:16
.gitignore
.cache/
venv-{{proj_name}}/
.env
debian/
### Wheels ###
build/
dist/
@feluxe
feluxe / package.json
Created September 17, 2016 21:40
Error: Cannot read outputFileSystem of a MultiCompiler package.json
{
"name": "local-figure",
"version": "0.0.1",
"description": "A react component for the html figure construct.",
"main": "dist/index.js",
"scripts": {
"build": "node_modules/webpack/bin/webpack.js --progress --colors --config webpack.config.comp.js && node_modules/webpack/bin/webpack.js --progress --colors --config webpack.config.page.js",
"production": "node_modules/webpack/bin/webpack.js -p --progress --colors --config webpack.config.comp.js && node_modules/webpack/bin/webpack.js -p --progress --colors --config webpack.config.page.js",
"watch-comp": "node_modules/webpack/bin/webpack.js --watch --config webpack.config.comp.js",
"watch-page": "node_modules/webpack/bin/webpack.js --watch --config webpack.config.page.js",
@feluxe
feluxe / mobile_address_bar_jump_fix.js
Last active October 17, 2022 11:43
Fix for address-bar jump of mobile browsers.
/**
* Mobile Browser Address-bar Resize Jump Fix.
*
* Prevent items with a height depending on the viewport from jumping if the
* mobile browser address bar appreas/disappears.
* This fixes the address-bar viewport resize jump problem of many mobile Browsers.
*
* Usage:
*
* Put this data attribute: "data-jump-fix" on each html element that has