Run like this for example:
python2 excel_test.py | column -t
Output should look like this:
first_name last_name email gender
Salomé 笑薇 [email protected] Ms.
Run like this for example:
python2 excel_test.py | column -t
Output should look like this:
first_name last_name email gender
Salomé 笑薇 [email protected] Ms.
| package main | |
| import ( | |
| "encoding/base64" | |
| "github.com/gorilla/mux" | |
| "net/http" | |
| "strings" | |
| ) | |
| func main() { |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc| Traceback (most recent call last): | |
| File "server.py", line 8, in <module> | |
| from models import User | |
| File "/home/max/Projekte/flask-testing-stuff/models.py", line 1, in <module> | |
| from server import db | |
| File "/home/max/Projekte/flask-testing-stuff/server.py", line 8, in <module> | |
| from models import User | |
| ImportError: cannot import name User |
| <VirtualHost *> | |
| ServerName example.com | |
| WSGIDaemonProcess www user=max group=max threads=5 | |
| WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi | |
| <Directory /home/max/Projekte/flask-upload> | |
| WSGIProcessGroup www | |
| WSGIApplicationGroup %{GLOBAL} | |
| Order deny,allow |
| #!/bin/bash | |
| find "$@" -type d -name ".git" -execdir bash -c ' | |
| if [ ! $(git status | grep -o nothing) ] | |
| then | |
| x=$(basename "$PWD") | |
| y=$(dirname "$PWD") | |
| origin_url=$(git config --get remote.origin.url) | |
| echo -e "\e[1;32m${x}\e[0m (${y}) ${origin_url}" >&2 | |
| git status -s >&2 |