Skip to content

Instantly share code, notes, and snippets.

View 5long's full-sized avatar

Whyme Lyu 5long

View GitHub Profile
@5long
5long / FailedScheduling-events.yaml
Created July 16, 2020 05:36
Sample of FailedScheduling events
# Output of command:
# kubectl get events -n debug --field-selector reason=FailedScheduling -o yaml ~
apiVersion: v1
items:
- action: Scheduling
apiVersion: v1
eventTime: "2020-07-16T05:34:23.503432Z"
firstTimestamp: null
involvedObject:
apiVersion: v1
@5long
5long / id_ed25519.pub
Created May 27, 2019 11:08
SSH Pubkey
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKSNKR+74qlNBILXvsD9xZfCijA2C6ubOLF5+Jv/i4lS [email protected]
@5long
5long / Readme.mkd
Last active March 9, 2019 07:27
Poor man's multihead management

mont

Poor man's multihead management.

Usage

  • mont r put external 1080p monitor to the right of laptop's built-in 4K monitor.
  • mont s use built-in monitor only.
  • mont a automatically choose among the above 2 setups.
[filter]
irc_smart = on;*;irc_smart_filter;*
irc_join_topic_date_names_creation = on;*;irc_332,irc_333,irc_366,irc_329,irc_372;*
@5long
5long / 90-custom-kbd.conf
Created May 3, 2016 17:27
Swap CapsLock w/ Escape in X11
# /etc/X11/xorg.conf.d/90-custom-kbd.conf
Section "InputClass"
Identifier "keyboard defaults"
MatchIsKeyboard "on"
Option "XKbOptions" "caps:swapescape"
EndSection
var makeArray = Function.prototype.call.bind(Array.prototype.slice)
function chaining(actions, initialParams) {
var action = actions.shift()
if (!action) return
function innerCallback(err) {
initialParams.shift()
var newParams = makeArray(arguments)
, passingParams = newParams.concat(initialParams)