I'm not aware of how to use Google, how do I do this basic thing in Language X?
tagged coding, question
edited by Grammar Nazi (2.5M), asked by 1337z0r (2)
| import pandas as pa | |
| def rmerge(left,right,**kwargs): | |
| """Perform a merge using pandas with optional removal of overlapping | |
| column names not associated with the join. | |
| Though I suspect this does not adhere to the spirit of pandas merge | |
| command, I find it useful because re-executing IPython notebook cells | |
| containing a merge command does not result in the replacement of existing | |
| columns if the name of the resulting DataFrame is the same as one of the |
| #!/usr/bin/python | |
| # reads a sequence of REDIS commands from stdin e.g. | |
| # SET mykey "hello world | |
| # into Redis protocol e.g. | |
| # *3 | |
| # $3 | |
| # SET | |
| # $5 | |
| # mykey |
| alias kc='kubectl' | |
| alias kclf='kubectl logs --tail=200 -f' | |
| alias kcgs='kubectl get service -o wide' | |
| alias kcgd='kubectl get deployment -o wide' | |
| alias kcgp='kubectl get pod -o wide' | |
| alias kcgn='kubectl get node -o wide' | |
| alias kcdp='kubectl describe pod' | |
| alias kcds='kubectl describe service' | |
| alias kcdd='kubectl describe deployment' | |
| alias kcdf='kubectl delete -f' |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| nginx.conf: | | |
| user nginx; | |
| worker_processes 3; | |
| error_log /var/log/nginx/error.log; | |
| events { |
| #!/bin/bash | |
| # Simple script to wait for named pod | |
| # | |
| # if no arguments are specified it will prompt | |
| # if 1 argument is specified it will look for a pod with that name | |
| # if more than 1 argument is specified it will only use the 1st and ignore the rest | |
| # | |
| # tested against oc 3.9 - might not work with other versions |
| pipeline { | |
| agent any | |
| stages { | |
| stage('Build'){ | |
| steps { | |
| echo "Running job: ${env.JOB_NAME}\nbuild: ${env.BUILD_ID} - ${env.BUILD_URL}\nblue ocean: ${env.RUN_DISPLAY_URL}" | |
| } | |
| } | |
| } |
A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on: