Caching
Build
DateTime
| [alias] | |
| # View abbreviated SHA, description, and history graph of the latest 20 commits | |
| l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
| # View the current working tree status using the short format | |
| s = status -s | |
| # Show the diff between the latest commit and the current state | |
| d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" |
| File.AppendAllText("tests.log", "{ \"" + key + "\", \"" + value + "\" },\n"); |
| # add aks config to local kubectl | |
| az aks get-credentials --name ${AKS NAME} --resource-group ${AKS_RESOURCE_GROUP_NAME} | |
| # create new shell | |
| kubectl exec --stdin --tty ${CONTAINER_NAME} -n ${NAMESPACE} -- /bin/bash |
| # Javascript Node CircleCI 2.0 configuration file | |
| # | |
| # Check https://circleci.com/docs/2.0/language-javascript/ for more details | |
| # | |
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| # specify the version you desire here | |
| - image: circleci/node:8-browsers |
Decorator
Observable
Visitor
Command
| " the basics | |
| syntax enable | |
| set nocompatible | |
| set encoding=utf-8 | |
| " windows clipboard integration | |
| set clipboard=unnamed | |
| " intelligent searching and formatting | |
| set ignorecase |
| public static class Mapper | |
| { | |
| public static T2 Map<T1, T2>(T1 t1) | |
| { | |
| var json = JsonConvert.SerializeObject(t1); | |
| return JsonConvert.DeserializeObject<T2>(json); | |
| } | |
| } |
| # Using redis-cli, you can do something like this: | |
| CONFIG SET dir 'C:/data/redis/' | |
| CONFIG SET dbfilename temp.rdb | |
| CONFIG SET notify-keyspace-events Kx$ |