Skip to content

Instantly share code, notes, and snippets.

@mwinters0
mwinters0 / patch_configmap.sh
Created February 7, 2018 16:38
Patch / update a configmap from inside Kubernetes using curl
KUBE_TOKEN=$(</var/run/secrets/kubernetes.io/serviceaccount/token)
NAMESPACE=myapp-dev
CONFIGMAP_NAME=testconfig
curl -sSk \
-X PATCH \
-d @- \
-H "Authorization: Bearer $KUBE_TOKEN" \
-H 'Accept: application/json' \
-H'Content-Type: application/strategic-merge-patch+json' \
https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_PORT_443_TCP_PORT/api/v1/namespaces/$NAMESPACE/configmaps/$CONFIGMAP_NAME <<'EOF'
@turkenh
turkenh / debug-docker.yaml
Created July 9, 2018 19:53
Kubernetes Pod to debug docker of the Node
apiVersion: v1
kind: Pod
metadata:
name: debug-docker
spec:
nodeSelector:
kubernetes.io/hostname: <nodename>
containers:
- name: dind
image: docker:stable
@turkenh
turkenh / extend_root.sh
Created October 23, 2018 07:49
Attach and extend root volume - ubuntu 14.04
# Create and attach a disk with alias, say "ht"
vgdisplay # Get vgname, i.e. "packer-ubuntu14-vg"
vgextend packer-ubuntu14-vg /dev/ht
# for a disk of 256G size
lvextend -r -L+255G /dev/packer-ubuntu14-vg/root
@Alex4386
Alex4386 / crossover-howtocompile.md
Last active November 8, 2024 07:23
CodeWeavers CrossOver - How to compile from source! for macOS

[STOP] This gist is deprecated.

TL;DR

WAY MORE UP-TO-DATE GIST (and includes some setup stuff that I forgot to document): https://gist.github.com/sarimarton/471e9ff8046cc746f6ecb8340f942647
Current Development for Building Libre-version of CrossOver: https://github.com/GabLeRoux/macos-crossover-cloud-build.
For Latest Discussions: https://github.com/GabLeRoux/macos-crossover-cloud-build/issues.

Long Description

This version of gist is outdated since it was written while I was compiling CrossOver v19. and seems to be there are some breaking changes in v19.1+ and 20. Also, I think I missed some required libraries/stub files that was required in build (that I previously installed beforehand). Oops.