Requires installed gitolite in /home/git and following directory structure
/var
/www
/apps
/hosts
/libs
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <?php | |
| class Article extends Base { | |
| function getUploadDir() { | |
| # e.g. something like this | |
| return "upload/articles/article-$this[id]"; | |
| } | |
| } |
| # init & renew | |
| # replace ikw.cz with domain AND admin with vesta user | |
| letsencrypt certonly \ | |
| --authenticator webroot \ | |
| --renew-by-default \ | |
| --agree-tos \ | |
| --webroot-path /home/admin/web/ikw.cz/public_html \ | |
| --domains ikw.cz,www.ikw.cz |
| #!/bin/bash | |
| current_branch="$(git symbolic-ref HEAD 2>/dev/null)" || current_branch="(unknown)" | |
| current_branch=${current_branch##refs/heads/} | |
| github_username="JanTvrdik" | |
| github_token="..." | |
| if [[ $current_branch = "(unknown)" ]] | |
| then |