yarn add http-proxy-middleware express
node proxy.js
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
[alias] | |
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative | |
glg = !git lg --graph | |
tree = log --graph --decorate --pretty=oneline --abbrev-commit | |
tr = !LESS="-RFX" git tree | |
unstage = reset HEAD | |
last = log -1 HEAD | |
visual = !gitk | |
st = status | |
uncommit = reset --soft HEAD^ |
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
from django.contrib.postgres.forms import SimpleArrayField, ValidationError, prefix_validation_error | |
class ArrayField(SimpleArrayField): | |
def prepare_value(self, value): | |
return [self.base_field.prepare_value(v) for v in value] | |
def to_python(self, value): | |
# see django/contrib/postgres/forms/array.py:37 | |
if value: | |
items = value |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --ruby
and close and reopen your terminal.
git branch -m <oldname> <newname>
Remove all exsited dockers
$ docker rm $(docker ps -q -f status=exited)
When you got this error
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo: unable to resolve host bayanca05
[sudo] password for bayan-ca-05:
Selecting previously unselected package google-chrome-stable.
(Reading database ... 174654 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (43.0.2357.81-1) ...
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
# -*- coding: utf-8 -*- |
print CLI.RED + 'Red' + CLI.RESET