curl -s https://laravel.build/example-app | bashInstead of "example-app" it can be any site name.
По материалам сайта Calculate Linux: https://www.calculate-linux.org/main/ru/git
I’ll go step-by-step on how to create a virtual host in the XAMPP environment.
As we know, the default http://localhost points to /opt/lampp/htdocs as the root directory. The desired result is to be able to visit http://examplevhost.local, with the root directory being /opt/lampp/htdocs/examplevhost.
Note: The steps below are done on Ubuntu 16.04, but they should also work on most other Linux distributions (Debian, Mint, Arch).
Note: I’ll assume that XAMPP is installed in
/opt/lampp/. If it’s different on your setup, please read carefully and adjust accordingly.
Note: This should be done only once per XAMPP installation. If you want to add another virtual host later you can skip to the next step.
| # Add in ~/.bashrc or ~/.bash_profile | |
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| RED="\[\033[01;31m\]" | |
| YELLOW="\[\033[01;33m\]" | |
| GREEN="\[\033[01;32m\]" | |
| BLUE="\[\033[01;34m\]" | |
| NO_COLOR="\[\033[00m\]" |
| // -- Default media queries | |
| // Extra small devices (Mobile phones, 0px and up) | |
| // No media query needed since this is the default in Bootstrap | |
| // Small devices (landscape phones, 576px and up) | |
| @include media-breakpoint-up(sm) { ... } | |
| // Medium devices (tablets, 768px and up) | |
| @include media-breakpoint-up(md) { ... } |
| editor.zero.latency.typing=true |
| [ | |
| { | |
| "key": "tab", | |
| "command": "tab", | |
| "when": "editorTextFocus && !editorTabMovesFocus" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "editor.emmet.action.expandAbbreviation", | |
| "when": "editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !editorTabMovesFocus" |
| .fbox | |
| a | |
| img | |
| filter: grayscale(80%) | |
| transition: 0.5s ease-in-out | |
| &:hover | |
| img | |
| filter: grayscale(0) | |
| transition: 0.5s ease-in-out |
| /*========== Pro Ads Carousel ==========*/ | |
| #proAds | |
| margin-bottom: 6rem !important | |
| .imgBlock | |
| height: 200px | |
| overflow: hidden | |
| position: relative | |
| &::after | |
| content: '' |
| function Container() { | |
| this.htmlCode = ''; | |
| } | |
| Container.prototype.render = function() { | |
| return this.htmlCode; | |
| }; | |
| Container.prototype.remove = function() { | |
| document.getElementById('menu').remove(); |