- sudo apt-get remove screen
- sudo do-release-upgrade
- (post-upgrade) sudo apt-get install screen
source: microsoft/WSL#927
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using System.Web; | |
| using MyProject.Services.Interfaces; | |
| using Microsoft.Azure; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Blob; |
| 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: { |
| git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
| 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 |
source: microsoft/WSL#927
| $> 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 |
| #!/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" |
| #!/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): |
As configured in my dotfiles.
start new:
tmux
start new with session name: