I hereby claim:
- I am calvinalvin on github.
- I am cohsox (https://keybase.io/cohsox) on keybase.
- I have a public key ASCStUdyauA8fI_eXpjfuoCGB_lZMN8c35JDbct1WCiblAo
To claim this, I am signing this object:
| First described and popularized by Sam Newman. | |
| https://samnewman.io/patterns/architectural/bff/ | |
| TLDR | |
| You can think of a BFF as a an API specifically tailored to a certain user experience. It acts as an aggregation layer | |
| which sits in front of many microservices and is consumed by a specific client with varying needs, such as an iOS app, | |
| Android app and traditional web app. Each of these different user experiences may have different BFF APIs. | |
| Why? |
I hereby claim:
To claim this, I am signing this object:
| " for fzf search | |
| set rtp+=/usr/local/opt/fzf | |
| " Make vim copy-pastable outside of vim environment | |
| " on Mac you must brew install reattach-to-user-namespace | |
| set clipboard=unnamed | |
| " ignore case for search | |
| set ignorecase |
brew install vim then update .zshrc to point to new vim with alias vim="/usr/local/bin/vim"vim-pathogen https://github.com/tpope/vim-pathogen. This is for vim plugins.NERDTree for folder list view https://github.com/scrooloose/nerdtree. (clone inside ~/.vim./bundle)fzf to replace search. https://github.com/junegunn/fzf. Do brew install fzf and install this globally on the machine. This a replacement file searcher for the OS.silver searcher https://github.com/ggreer/the_silver_searcher. brew install the_silver_searcherfzf-vim to add fzf functionality inside vim. https://github.com/junegunn/fzf.vim (clone inside ~/.vim./bundle)echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}
| """ | |
| Exports Issues from a specified repository to a CSV file | |
| Uses basic authentication (Github username + password) to retrieve Issues | |
| from a repository that username has access to. Supports Github API v3. | |
| """ | |
| import csv | |
| import requests | |
It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
##List of countries
I've also compiled a list of countries
| SSH agent forwarding is great. It allows you to ssh from one server to | |
| another all the while using the ssh-agent running on your local | |
| workstation. The benefit is you don't need to generate ssh key pairs | |
| on the servers you are connecting to in order to hop around. | |
| When you ssh to a remote machine the remote machine talks to your | |
| local ssh-agent through the socket referenced by the SSH_AUTH_SOCK | |
| environment variable. | |
| So you the remote server you can do something like: |