Skip to content

Instantly share code, notes, and snippets.

View tschegy's full-sized avatar

Radek Cegan tschegy

View GitHub Profile
@huddlesj
huddlesj / haproxy.cnf
Created August 6, 2019 20:40
haproxy.ocp4
frontend stats
bind *:9000
stats enable
stats uri /haproxy_stats
stats refresh 10s
### ocp 4 dev stuff
frontend ocp4-dev-api-server
bind *:6443
@tuxfight3r
tuxfight3r / curl_notes.txt
Last active February 16, 2023 12:44
openshift rest api login / json patch via curl
#Login to openshift and retrieve token
curl -u admin -kv -H "X-CSRF-Token: xxx" \
'https://master.cluster.local:8443/oauth/authorize?client_id=openshift-challenging-client&response_type=token'
#It should give you a bearer token like this
https://master.cluster.local:8443/oauth/token/implicit#access_token=aRVmsEHbUEhd4WeP2bctj0n57ogHMBvOIcrtjc7tCw4&expires_in=86400&scope=user%3Afull&token_type=Bearer
TOKEN="aRVmsEHbUEhd4WeP2bctj0n57ogHMBvOIcrtjc7tCw4"
#Get a configmap named configmaptest
@coderbyheart
coderbyheart / arch-linux-intel-compute-stick.md
Created January 8, 2016 16:03
Arch Linux on Intel Compute Stick