title | subtitle | author | date | source |
---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
@uthor @debendraoli | |
Compitable with waybar. | |
""" | |
import re | |
from json import dumps | |
from urllib.request import Request, urlopen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- range .Values.zones }} | |
--- | |
apiVersion: crd.k8s.amazonaws.com/v1alpha1 | |
kind: ENIConfig | |
metadata: | |
name: {{ .name }} | |
spec: | |
subnet: {{ .subnetID }} | |
securityGroups: | |
{{- range $.Values.securityGroupIDs }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux: | |
google-chrome --disable-web-security | |
Windows: | |
1) Right click on desktop, add new shortcut | |
2) Add the target as "[PATH_TO_CHROME]\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp | |
ex on Windows 10 : | |
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "tls_private_key" "ca" { | |
algorithm = "RSA" | |
} | |
resource "tls_self_signed_cert" "ca" { | |
key_algorithm = "RSA" | |
private_key_pem = "${tls_private_key.ca.private_key_pem}" | |
subject { | |
common_name = "${var.domain}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# मान्छे | |
मान्छेको यो चोला | |
कसरी बित्यो, खै के होला | |
छैन केहि उसको पोल्टोमा | |
बाँचेकै छ, तर त्यो मृग तृष्णामा | |
आसा थियो ठुलो, | |
उसका ती मिठा सपना | |
ब्यूँझाउन खोज्थो अरूले |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17 |
For a while, JSX
and new es6 syntax had flaky support in emacs, but there's been huge work on a lot of packages. Using emacs for JavaScript with React, ES6, and Flow (or Typescript, etc) is really easy and powerful in Emacs these days.
This is how you can work on modern web development projects with full support for tooling like JSX, Flow types, live eslint errors, automatic prettier.js formatting, and more.
Set up web-mode
web-mode
provides most of the underlying functionality, so a huge shout-out to the maintainer(s) there.
First, clone from the following URL to Ubuntu VM:
https://github.com/potikanond/docker-node-sample2
On Ubuntu VM run the following command:
NewerOlder