As configured in my dotfiles.
start new:
tmux
start new with session name:
| [request_definition] | |
| r = sub, dom, obj, act | |
| [policy_definition] | |
| p = sub, dom, obj, act | |
| [role_definition] | |
| g = _, _, _ | |
| [policy_effect] | 
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env python | |
| import sys | |
| from math import ceil | |
| def ceil_two_digits(amount): | |
| return (ceil(amount * 100) / 100.0) | |
| def calculate_invoice(invoice_amount): | 
| #!/bin/bash | |
| DB_NAME="" | |
| DB_PASSWORD="" | |
| DB_USER="" | |
| DB_HOST="" | |
| TODAY_DATE="$(date +'%d_%m_%Y_%H_%M_%S')" | |
| FILENAME="$DB_NAME$TODAY_DATE".gz | |
| BACKUP_DIR="/home/aslam/backup/$FILENAME" | 
| $> brew cask install java | |
| $> brew install kafka | |
| $> vim ~/bin/kafka | |
| # ~/bin/kafka | |
| #!/bin/bash | |
| zkServer start | |
| kafka-server-start.sh /usr/local/etc/kafka/server.properties | 
source: microsoft/WSL#927
| from rest_framework.views import exception_handler | |
| def custom_exception_handler(exc, context): | |
| # Call REST framework's default exception handler first, | |
| # to get the standard error response. | |
| response = exception_handler(exc, context) | |
| if response is not None: | |
| # check if exception has dict items | 
| git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d | 
| var chart = c3.generate({ | |
| data: { | |
| columns: [ | |
| ['reject', 30, 200, 100, 400, 150, 250, 50, 100, 250], | |
| ['size', 40, 500, 400, 40, 15, 200, 50, 10, 600] | |
| ], | |
| type: 'bar' | |
| }, | |
| axis: { |