pip install -e /path/to/mypackage
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+s", | |
"command": "workbench.action.files.saveAll", | |
}, | |
{ | |
"key": "cmd+d", | |
"command": "editor.action.copyLinesDownAction", | |
}, |
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 | |
# short form, with colors and branch/tag annotations | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
# changed files per commit | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
# no color | |
lnc = log --pretty=format:"%h\\ %s\\ [%cn]" | |
# one line commits | |
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short # git lds -1 (long standup) |
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
SSH_ENV=$HOME/.ssh/environment | |
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV} | |
chmod 600 ${SSH_ENV} | |
. ${SSH_ENV} > /dev/null | |
/usr/bin/ssh-add |
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
Show hidden characters
{ | |
"extends": "react-app", | |
"rules": { | |
"semi": "warn", | |
"no-compare-neg-zero": "warn", | |
"no-extra-semi": "warn", | |
"no-invalid-regexp": "warn", | |
"valid-jsdoc": "warn", | |
"array-callback-return": "warn", | |
"consistent-return": "warn", |
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 React, { Component } from 'react'; | |
import { Loader } from 'semantic-ui-react'; | |
const withLoader = (WrappedComponent, dataProps) => ( | |
class LoaderHOC extends Component { | |
render() { | |
const prop = this.props[dataProps]; | |
return (!prop || Object.keys(prop).length === 0) | |
? <Loader active /> | |
: <WrappedComponent {...this.props} />; |
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
#!/bin/bash | |
REGEX='s/('$1'*-[a-z0-9\-]*)(.*)/\1/g' | |
POD=`kubectl get pods | grep $1 | sed -E $REGEX` | |
multitail -f --config $HOME/multitail.conf -CS $1 -l 'kubectl logs '$POD' -f' |
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
const links = document.querySelectorAll('.delete-time-for-activity-link'); | |
for (let i = 0; i < links.length; i++) { | |
setTimeout(() => { | |
links[i].click(); | |
setTimeout(() => document.querySelector('.delete-entity-time button').click(), 1000); | |
}, i*5000); | |
} |
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
FROM resin/rpi-raspbian:latest | |
EXPOSE 80 | |
VOLUME ["/config"] | |
RUN apt-get update && \ | |
apt-get upgrade; \ | |
RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list; \ |
- Multi-instance vTPM proxy driver - https://lwn.net/Articles/681696/
- vTPM snippets - https://gist.github.com/lukehinds/f7338fe3bd13687e2600fa70a2055e1c
- Using the IBM TSS with swtpm - https://github.com/stefanberger/swtpm/wiki/Using-the-IBM-TSS-with-swtpm
- swtpm manpage
- Device Plugin proposal - https://github.com/kubernetes/design-proposals-archive/blob/main/resource-management/device-plugin.md
OlderNewer