One day code
vsa couple days code
vsproduction code
- Break into stages
- Save output from each stage
- Run next stage off output from previous stage
- Parallelism
source <(kubectl completion zsh) | |
source <(kubectl completion bash) | |
kubectl config get-contexts | |
kubectl config use-context | |
$p = Get-AppxPackage -N "CanonicalGroupLimited.Ubuntu18.04onWindows" | |
$ok = $p."Status" -eq "ok" | |
if ($ok) { | |
Write-host "Installed" | |
} |
--- | |
- name: Check if network {{ name }} exists | |
delegate_to: "{{ groups['docker_swarm_issuer'][0] }}" | |
run_once: true | |
command: docker network ls -q --filter name=^{{ name }}$ | |
register: network_exists | |
changed_when: false | |
- name: Create network {{ name }} | |
command: docker network create --driver {{ driver }} {{ name }} |
package main | |
import ( | |
"net/http" | |
"os" | |
) | |
func main() { | |
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | |
http.ServeFile(w,r, r.URL.RequestURI()[1:]) |
CREATE USER just1689 | |
IDENTIFIED BY penguins; | |
CREATE USER COR | |
IDENTIFIED BY penguins; | |
GRANT create session TO just1689; | |
GRANT create table TO just1689; | |
GRANT create view TO just1689; |
git log --oneline --graph --decorate --all
version: '3' | |
services: | |
nsqlookupd: | |
image: nsqio/nsq | |
networks: | |
- my-services | |
command: /nsqlookupd | |
ports: | |
- "4160" | |
- "4161" |
# On your laptop - connected to the Internet | |
## Start the registry | |
docker run -d -p 5000:5000 --name registry registry:2 | |
## Pull Kubernetes Images |