aws ec2 describe-instances \
--query 'Reservations[].Instances[].[PrivateIpAddress,Placement.AvailabilityZone,InstanceType,State.Name,InstanceId,Platform,State.Code,VpcId]' \
--output table
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
namespace: argocd | |
name: argocd-ingress | |
annotations: | |
kubernetes.io/ingress.class: alb | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80,"HTTPS": 443}]' | |
alb.ingress.kubernetes.io/certificate-arn: {{ your-acm-arn }} |
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
-- Logs begin at Fri 2018-08-24 11:34:59 UTC, end at Fri 2018-08-24 11:42:29 UTC. -- | |
Aug 24 11:36:16 core-01 systemd[1]: Starting Docker Application Container Engine... | |
Aug 24 11:36:16 core-01 env[1262]: time="2018-08-24T11:36:16.982531929Z" level=error msg="Failed to built-in GetDriver graph aufs /var/lib/docker" | |
Aug 24 11:36:17 core-01 env[1262]: time="2018-08-24T11:36:17.076086021Z" level=info msg="Graph migration to content-addressability took 0.00 seconds" | |
Aug 24 11:36:17 core-01 env[1262]: time="2018-08-24T11:36:17.077032710Z" level=info msg="Loading containers: start." | |
Aug 24 11:36:17 core-01 env[1262]: time="2018-08-24T11:36:17.207362181Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address" | |
Aug 24 11:36:16 core-01 env[1262]: time="2018-08-24T11:36:16.838482132Z" level=info msg="Loading containers: done." | |
Aug 24 11:36:16 core-01 env[1262]: time="2018-08-24T11:36:16.866658031Z" level=info msg="Daemon has co |
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
version: '3.2' | |
services: | |
agent: | |
image: portainer/agent | |
environment: | |
# REQUIRED: Should be equal to the service name prefixed by "tasks." when | |
# deployed inside an overlay network | |
AGENT_CLUSTER_ADDR: tasks.agent | |
# AGENT_PORT: 9001 |
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
s = '/example/like_123/1_t34893_.that' | |
int(re.findall(r'1_t([\d]+)_', s)[0]) |
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
[ | |
{ | |
"Config": { | |
"Args": { | |
"Description": "", | |
"Name": "", | |
"Settable": null, | |
"Value": null | |
}, | |
"Description": "REX-Ray FUSE Driver for Amazon Simple Storage Service (S3FS)", |
- fb: https://developers.facebook.com/tools/debug/sharing/
- twitter: https://cards-dev.twitter.com/validator
- kakao: https://developers.kakao.com/docs/cache
- telegram: @WebpageBot
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
### remote | |
pse="\[\033[m\]" | |
ps_w="\[\033[33;1m\]\w$pse" | |
ps_t="\[\033[35m\]\t$pse" | |
ps_h="\[\033[32m\][\h]$pse" | |
ps_u="\[\033[36m\]\u$pse" | |
if [ "`whoami`" = "root" ]; then | |
ps_p="# $pse" | |
else |
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
import sys | |
import os | |
import codecs | |
# euc-kr to utf-8 with BOM | |
def convert(path): | |
with codecs.open(path, 'r', 'euc-kr', errors='ignore') as f: | |
out_lines = [] | |
for line in f.readlines(): |
I hereby claim:
- I am zironycho on github.
- I am zironycho (https://keybase.io/zironycho) on keybase.
- I have a public key ASBFpr3Bu-np1bvVeBDC7-W7Nws-zTGpaaWWP5S-r88qMQo
To claim this, I am signing this object: