Skip to content

Instantly share code, notes, and snippets.

" Plugins {{{
"auto-install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall
endif
" Load vim-plug
#!/usr/bin/env python
# usage:
# generate-dcos-token.py -m <master_token> -u syseng@ptc.com -e 365
# and you get the master_token from /var/lib/dcos/dcos-oauth/auth-token-secret
import jwt
import time
from datetime import datetime
from datetime import timedelta