Replicate secure cdn using a normal cdn as fallback
1- Install http-server nodejs module
sudo npm install -g http-server
2- Create a folder for your files
mkdir replicated-cdn
Replicate secure cdn using a normal cdn as fallback
1- Install http-server nodejs module
sudo npm install -g http-server
2- Create a folder for your files
mkdir replicated-cdn
| git filter-branch -f --msg-filter ' | |
| read commit | |
| declare -A commits_replaces; | |
| commits_replaces["<commit hash>"]="new message" | |
| if [[ ${commits_replaces[$GIT_COMMIT]} ]]; then | |
| echo ${commits_replaces[$GIT_COMMIT]}; | |
| else | |
| echo $commit | |
| fi' -- --all |
| /** | |
| * This a very small example of a HoC that used the new react context API that can be used to save a | |
| * state globally without using any state library. | |
| * | |
| * This is a toy gist just to demo what you can do, please don't copy & paste the code without reading: | |
| * https://reactjs.org/docs/context.htmt | |
| */ | |
| import React, { PureComponent } from 'react'; | |
| const defaultContextValue = { |