Magic words:
psql -U postgres
If run with -E
flag, it will describe the underlaying queries of the \
commands (cool for learning!).
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
kubectl describe nodes ip-10-4-123-95.us-west-2.compute.internal | |
E0209 11:35:15.039890 278909 describe.go:2645] Unable to construct reference to '&core.Node{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"ip-10-4-123-95.us-west-2.compute.internal", GenerateName:"", Namespace:"", SelfLink:"", UID:"89045b50-39ef-4b62-b32d-4f15e521406e", ResourceVersion:"17209", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63780013218, loc:(*time.Location)(0x49403c0)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{"beta.kubernetes.io/os":"linux", "kubernetes.io/arch":"amd64", "kubernetes.io/hostname":"ip-10-4-123-95.us-west-2.compute.internal", "eks.amazonaws.com/nodegroup":"eks-small", "eks.amazonaws.com/nodegroup-image":"ami-0fe74570d87750175", "node.kubernetes.io/exclude-from-external-load-balancers":"true", "beta.kubernetes.io/arch":"amd64", "kubernetes.io/os":"linux", "topology.kubernetes.io/region":"us-west-2", "t |
version: '3.3' | |
services: | |
blog_wordpress: | |
image: wordpress | |
networks: | |
- traefik_proxy | |
secrets: | |
- mysql_host |
version: "3.3" | |
services: | |
traefik: | |
image: traefik | |
command: | |
- "--api" | |
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https" | |
- "--entrypoints=Name:https Address::443 TLS" | |
- "--defaultentrypoints=http,https" |
docker network create --subnet 172.0.0.0/8 reserved-172-0-0-0-8 | |
route del -net 172.0.0.0 gw 0.0.0.0 netmask 255.0.0.0 |
web: | |
image: wordpress | |
links: | |
- mysql | |
environment: | |
- WORDPRESS_DB_PASSWORD=myPass | |
working_dir: /var/www/html | |
volumes_from: | |
- data | |
ports: |
# Check that "git status" is clean, since the steps that follow will throw | |
# way uncommitted changes: | |
git status | |
# Set the index (staging area) to be as it was at professional-1.1.2: | |
git read-tree professional-1.1.2 | |
# Create a commit based on that index: | |
git commit -m "Reverting to the state at professional-1.1.2" |
public abstract class AbstractDao<K, E> { | |
public abstract EntityManager getEm(); | |
public abstract Class<E> getDaoClass(); | |
public AbstractDao() { | |
} | |
public E find(K id) { |
git rm --cached fileToIgnore | |
git rm -r --cached folderToIgnore |
cd <localdir> | |
git init | |
git add . | |
git commit -m 'message' | |
git remote add origin <url> | |
git push -u origin master |