Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
The steps below bootstrap an instance of airflow, configured to use the kubernetes airflow executor, working within a minikube cluster.
This guide works with the airflow 1.10 release, however will likely break or have unnecessary extra steps in future releases (based on recent changes to the k8s related files in the airflow source).
- Docker installed
- Minikube installed and started
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
package jwtmodule | |
import ( | |
"crypto/rsa" | |
"fmt" | |
jwt "github.com/dgrijalva/jwt-go" | |
"io/ioutil" | |
"log" | |
) |
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
package jwtmodule | |
import ( | |
"crypto/rsa" | |
"fmt" | |
jwt "github.com/dgrijalva/jwt-go" | |
"io/ioutil" | |
"log" | |
_ "os" | |
_ "reflect" |
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 jwt | |
class JwtBase(object): | |
_instance = None | |
def __new__(class_, *args, **kwargs): | |
if not isinstance(class_._instance, class_): | |
class_._instance = object.__new__(class_, *args, **kwargs) | |
return class_._instance |
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 jwt | |
import sys | |
class InitializeJWT(object ): | |
_instance = None | |
def __new__(cls, private_path, public_path): | |
try: | |
cls._publickey_file = open(public_path, "r") | |
cls._privatekey_file = open(private_path, "r") |
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 jwt | |
import sys | |
""" | |
python script for jwt encryption and decryption | |
""" | |
class JwtEncoding(object): |
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 cherrypy | |
import datetime | |
import time | |
from cherrys import RedisSession | |
import json | |
class RedisJsonSession(RedisSession): | |
def __init__(self, *arg, **kwargs): |
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 cherrypy | |
import datetime | |
from cherrys import RedisSession | |
import json | |
class RedisJsonSession(RedisSession): | |
def _load(self): | |
try: |