Keybase proof
I hereby claim:
- I am davidxia on github.
- I am davidxia (https://keybase.io/davidxia) on keybase.
- I have a public key whose fingerprint is 13B7 FE7F 06B3 7836 0C07 C86A 3446 9DFB DC90 312C
To claim this, I am signing this object:
/* Malloc implementation for multiple threads without lock contention. | |
Copyright (C) 1996-2001, 2002 Free Software Foundation, Inc. | |
This file is part of the GNU C Library. | |
Contributed by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | |
and Doug Lea <dl@cs.oswego.edu>, 1996. | |
The GNU C Library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. |
# total memory usage (Mi mebibytes 1,048,576 bytes) of all pods in a namespace | |
kubectl -n $namespace top pod | \ | |
tail -n +2 | \ | |
awk '{print $3}' | \ | |
tr -d 'Mi' | \ | |
awk '{s+=$1} END {print s}' | |
# total CPU usage (millicores) of all pods in a namespace | |
kubectl -n $namespace top pod | \ | |
tail -n +2 | \ |
gcloud --project $project container clusters list --format json \ | |
| jq -r '.[] | "\(.name):\(.location)"' \ | |
| xargs -I @ bash -c \ | |
"name=\$(echo @ | cut -d ':' -f 1) \ | |
&& region=\$(echo @ | cut -d ':' -f 2) \ | |
&& gcloud --project gke-xpn-1 container clusters get-credentials \$name --region \$region" |
http GET \ | |
(yq r ~/.kube/config -j | jq -r ".clusters[] | select(.name == \"$cluster_name\") | .cluster.server")/api/v1/namespaces \ | |
'Authorization: Bearer '(\ | |
gcloud config config-helper --format json | jq -r .credential.access_token | |
) \ | |
--verify no \ | |
| jq -r .items[].metadata.name |
http https://ghe.spotify.net/api/graphql "Authorization: Bearer $github_access_token" query='{ | |
user(login: "davidxia") { | |
pullRequests(first: 100, states: OPEN) { | |
totalCount | |
nodes { | |
number | |
repository { | |
name | |
owner { | |
login |
I hereby claim:
To claim this, I am signing this object:
# name: davidxia | |
# A Powerline-inspired theme for FISH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
## Set this options in your config.fish (if you want to :]) | |
set -g theme_display_user yes |
#!/bin/bash | |
# | |
# Build and iPhone Simulator Helper Script | |
# David Xia 2013 | |
# | |
# WARN: - if your .xcodeproj name is not the same as your .app name, | |
# this won't work without modifications | |
# - you must run this script in where your .xcodeproj file is | |
WORKSPACE=$1 |
# Default Theme | |
if patched_font_in_use; then | |
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="⮂" | |
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="⮃" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="⮀" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="⮁" | |
else | |
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="◀" | |
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="❮" |
September 21, 2012
Neville Li & David Xia
To me vi is zen. To use vi is to practice zen. Every command is a koan. Profound to the user, unintelligible to the uninitiated. You discover truth every time you use it. — Satish Reddy