Skip to content

Instantly share code, notes, and snippets.

View Vadorequest's full-sized avatar

Vadorequest Vadorequest

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
With OVH VPS + 50Go additional disk + Backups using Rsync
| Item | Monthly | Yearly |
|---------------|---------|------------|
| Domain name | | ~9€ |
| VPS | 3.59€ | 43.08€ |
| +50Go HDD | 6€ | 72€ |
| Backup server | $8 | $96 (81€) |
| TOTAL | ~€17€ | ~205€ |
docker run -e VIRTUAL_HOST=my-blog.com,www.my-blog.com -e url=http://my-blog.com/ -d --name blog -p 3003:2368 -v /var/www/blog:/var/lib/ghost/content ghost:1.12.1-alpine
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy:alpine
docker stop blog
docker start blog
docker rm blog # remove the blog container, it's lost forever. (but your data are safe on your host)
docker run -e url=http://localhost:3002/ -d --name blog -p 3002:2368 -v /var/www/blog:/var/lib/ghost/content ghost:1.12.1-alpine
@Vadorequest
Vadorequest / Immortal Conquest: Europe - Tips - By Vadorequest (Beta version).md
Last active February 27, 2017 00:38
Immortal Conquest: Europe - Tips - By Vadorequest (Beta version)
@Vadorequest
Vadorequest / .gitconfig
Last active June 21, 2023 06:19
My own Git config
[push]
default = current
[alias]
fetch = git fetch --tags
reflog = git reflog --date=iso
st = status
ci = commit
co = checkout
br = branch
rz = reset --hard HEAD
@Vadorequest
Vadorequest / MyComponent.js
Last active December 5, 2017 19:42
HOC component to get the history using React-Router v4 (alpha)
import withRouter from './utils/withRouter';
const MyComponent = ({ history }) =>
<button onClick={() => history.goBack()}>Back</button>
export default compose(
withRouter,
)(MyComponent);
@Vadorequest
Vadorequest / cloudSettings
Last active January 11, 2017 09:31
Visual Studio Code Sync Settings GIST - (WebStorm like)
{"lastUpload":"2017-01-11T09:31:17.149Z"}