chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/options.html
nicovideo.jp##.MarqueeContainer
PARALLEL=7 | |
TARGET=http://127.0.0.1:8080/ | |
N=$(seq 1 ${PARALLEL:?}) && while :; do printf "${TARGET:?}\n%.s" ${N} | xargs -P"${PARALLEL:?}" -I{} curl -sS {} -o /dev/null -w "response_code:%{response_code}\ttime_total:%{time_total}\n"; done | tee /tmp/loadtest_$(date +%Y%m%d_%H%M%S).log |
grep "^\[profile" ~/.aws/config | sed 's/\[profile \(.*\)\].*/\1/' | while read LINE; do aws --profile $LINE ec2 describe-instances | jq '.Reservations[].Instances[].PublicDnsName' | jq -s '{ "'$LINE'": . }'; done |
// ==UserScript== | |
// @name notranslate | |
// @namespace https://gist.github.com/djeeno/50292ffaef9f6deb952a4aed8b625a67 | |
// @version 0.1 | |
// @description notranslate | |
// @author djeeno | |
// @match * | |
// @grant none | |
// ==/UserScript== |
sudo tcpdump -W1 -G1260 -w "$(uname -n)_%Y%m%dT%H%M%S.pcap" |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAccountAccess", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"arn:aws:iam::000000000000:root", | |
"arn:aws:iam::999999999999:root" |
export GIT_SSH_COMMAND="ssh -i ~/.ssh/djeeno.pem -F /dev/null" |
difff() {(R=$(printf '\e[31m');G=$(printf '\e[32m');B=$(printf '\e[36m');W=$(printf '\e[1m');N=$(printf '\e[0m');diff -u "$@"|sed $(uname -s|grep -q '^Darwin'&&printf -- -E||printf -- -r) "s/(^@@.+@@|@@.+@@$)/$B\1$N/g;s/(^\+.*)$/$G\1$N/g;s/(^\-.*)$/$R\1$N/g;s/^[^\+\-]*((\+{3}|-{3}) [^ ].*)/$W\1/g;")} |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from boto3.session import Session | |
session = Session(profile_name='YOUR_AWS_PROFILE_NAME') | |
ec2 = session.client('ec2') | |
ec2.describe_instances() |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import boto3 | |
from boto3.session import Session | |
boto3.set_stream_logger() | |
session = Session(profile_name='YOUR_AWS_PROFILE_NAME') | |
s3 = session.resource('s3') |