You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| # This tells kubecfg to read its config from the local directory | |
| export KUBECONFIG=./kubeconfig | |
| # Looking at the cluster | |
| kubectl get nodes | |
| kubectl get pods --namespace=kube-system | |
| # Running a single pod | |
| kubectl run --generator=run-pod/v1 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard | |
| kubectl get pods |
| Ensure Docker >=v1.10.3 is installed | |
| Ensure fhc is installed from this branch | |
| npm i -g git://github.com/feedhenry/fh-fhc.git#workshop | |
| Ensure 'oc' is installed | |
| (Linux) curl -O http://192.168.1.247:8080/oc-linux.tar.gz | |
| (Mac) curl -O http://192.168.1.247:8080/oc-mac.tar.gz | |
| Clone these public repos into the same folder (preferably ~/work/) | |
| feedhenry/fh-core-openshift-templates#master | |
| feedhenry/fh-mbaas-openshift-templates#master | |
| feedhenry/fh-cup#master |
This gist has been moved to its own Github repo, so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.
| Function | Shortcut |
|---|---|
| Previous Tab | ⌘+ Left Arrow |
| Next Tab | ⌘+ Right Arrow |
| Go to Tab | ⌘ + Number |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys and look for sec, use the key ID for the next stepgit to use GPG -- replace the key with the one from gpg --list-secret-keys| apply from: 'versionCode.gradle' | |
| android { | |
| defaultConfig { | |
| versionName VERSION_NAME | |
| versionCode Integer.parseInt(VERSION_CODE) | |
| } | |
| } |
| {% comment %} | |
| * | |
| * This loop loops through a collection called `collection_name` | |
| * and sorts it by the front matter variable `date` and than filters | |
| * the collection with `reverse` in reverse order | |
| * | |
| * To make it work you first have to assign the data to a new string | |
| * called `sorted`. | |
| * | |
| {% endcomment %} |
| #what is my tenant | |
| curl -ivX GET -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant' | less | |
| #create resource | |
| curl -ivX POST -H "Content-Type: application/json" -d '{"id": "foobar", "resourceTypeId": "URL", "properties": {"url": "http://hawkular.org"}}' 'http://jdoe:[email protected]:8080/hawkular/inventory/test/resources' | less | |
| #create metric type | |
| curl -ivX POST -H "Content-Type: application/json" -d '{"id":"MetricType", "unit":"BYTE"}' 'http://jdoe:password/127.0.0.1:8080/hawkular/inventory/metricTypes' | less |
| import com.android.volley.NetworkResponse; | |
| import com.android.volley.ParseError; | |
| import com.android.volley.Response; | |
| import com.android.volley.toolbox.HttpHeaderParser; | |
| import com.android.volley.toolbox.StringRequest; | |
| import java.io.BufferedReader; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; |