This file contains 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
let page = QBResponsePage(limit: 100) | |
let extendedRequest = ["occupant_ids": "[25976759, 26025952]"] | |
QBRequest.dialogs(for: page, extendedRequest: extendedRequest, successBlock: { (response: QBResponse, dialogs: [QBChatDialog]?, dialogsUsersIDs: Set<NSNumber>?, page: QBResponsePage?) -> Void in | |
print(dialogsUsersIDs) | |
}) { (errResponse: QBResponse) -> Void in | |
print("error") | |
print(errResponse) | |
} |
This file contains 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
public class Aggregation { | |
Foo foo; | |
public Aggregation(Foo foo) { | |
this.foo = foo; | |
} | |
} |
This file contains 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
/Users/Gerald/github/you-shell-fail/mytest>ls | |
a | |
a b.txt | |
abyss.txt | |
bar/ | |
large1.txt | |
large2.txt | |
large3.txt | |
medium1.txt | |
medium2.txt |
This file contains 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
# long | |
docker run --rm -ti \ | |
--publish <container port>:<exposed port> \ | |
--env <env>=<val> \ | |
--volume <local path>:<mounted path> \ | |
<repo>/<image>:<tag> | |
# short | |
docker run --rm -ti \ | |
-p <container port>:<exposed port> \ |
This file contains 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
{{- /* | |
The standard labels are frequently used in metadata. | |
*/ -}} | |
{{- define "yourchart.labels.standard" -}} | |
app.kubernetes.io/instance: {{ .Release.Name | quote }} | |
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | |
helm.sh/chart: {{ include "yourchart.chart" . }} | |
helm.sh/appVersion: {{ .Chart.AppVersion | quote }} | |
helm.sh/chartVersion: {{ .Chart.Version | quote }} | |
helm.sh/revision: {{ .Chart.Revision | quote }} |
This file contains 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
# CAfile trusts a given CA cert for this call | |
# should return 0 | |
# Certificate chain is presented: | |
# Number on left represents depth | |
# example.com is the first subject i.e. the host we are contacting | |
# and its issuer is Fake LE Intermediate X1 | |
# the next cert on the chain has its subject as Fake LE Intermediate X1 | |
# and its issuer is Fake LE Root X1 | |
# which is the root of the chain i.e. a Certificate Authority | |
# |
This file contains 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
Host * | |
ControlMaster auto | |
ControlPath ~/.ssh/sockets/%C | |
ControlPersist 120 | |
IdentityFile ~/.ssh/id_rsa | |
Host * | |
ControlMaster auto | |
ControlPath ~/.ssh/sockets/%C | |
ControlPersist 120 |
This file contains 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
# stdout_call back must be in json | |
ansible -i <inventory> <inventory_hostname> -m setup | |
# depending on ansible config, the facts file might be cached locally, see '~/ansible.cfg' | |
# internal ip | |
"{{ ansible_facts['default_ipv4']['address'] }}" |
This file contains 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
# see existing filesystem | |
# if no fs, 'data' will be shown | |
sudo file -s /dev/xvdf | |
# make fs | |
mkfs.ext4 /dev/sdb | |
mkdir /mnt/a | |
# mount it onto a directory |
This file contains 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
# search for pattern in given path | |
# -r recursive | |
# -n line number | |
# -H print file name | |
# -I ignore binary | |
grep -rnHI '<regex>' <file/dir> |
OlderNewer