Skip to content

Instantly share code, notes, and snippets.

View XIOLog's full-sized avatar
😀
I`m working and I`m happy!

Aleksandr Lykov XIOLog

😀
I`m working and I`m happy!
  • Nizhnevartovsk
View GitHub Profile
@XIOLog
XIOLog / sail_laravel.md
Last active April 19, 2021 14:46
Install Sail Laravel after Git clone (WSL 2, Windows 10)

First step

curl -s https://laravel.build/example-app | bash

Instead of "example-app" it can be any site name.

Or another steps

@XIOLog
XIOLog / xampp-virtualhost.md
Created November 1, 2020 06:25 — forked from ibrahimtuzlak0295/xampp-virtualhost.md
Create virtual host in XAMPP, Ubuntu 16.04/18.04/20.04

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.

Enable virtual hosts in apache configuration file

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.

@XIOLog
XIOLog / terminal-colors-branch
Created October 31, 2020 04:09 — forked from danielalvarenga/terminal-colors-branch.sh
Show branch in terminal Ubuntu
# 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\]"
@XIOLog
XIOLog / media-queries-b4.scss
Created August 20, 2020 23:03 — forked from akolinski/media-queries-b4.scss
Media queries using SASS in Bootstrap 4
// -- 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) { ... }
@XIOLog
XIOLog / idea.properties
Last active March 10, 2020 11:11
Webstorm speed up
editor.zero.latency.typing=true
@XIOLog
XIOLog / keybindings.json
Last active May 21, 2019 14:45
Настройка для корректной работы emmet в VSCode
[
{
"key": "tab",
"command": "tab",
"when": "editorTextFocus && !editorTabMovesFocus"
},
{
"key": "tab",
"command": "editor.emmet.action.expandAbbreviation",
"when": "editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !editorTabMovesFocus"
@XIOLog
XIOLog / _fancybox.sass
Last active January 31, 2019 01:34
Всплывающая галерея на базе Bootstrap 4. Не забыть подключить файлы fancybox (js, css)
.fbox
a
img
filter: grayscale(80%)
transition: 0.5s ease-in-out
&:hover
img
filter: grayscale(0)
transition: 0.5s ease-in-out
@XIOLog
XIOLog / _proAdsCarousel.sass
Last active January 30, 2019 10:57
Слайдер Bootstrap4 с четырьмя блоками
/*========== Pro Ads Carousel ==========*/
#proAds
margin-bottom: 6rem !important
.imgBlock
height: 200px
overflow: hidden
position: relative
&::after
content: ''
@XIOLog
XIOLog / Container.js
Created January 16, 2019 11:25
Небольшая менюшка на JS
function Container() {
this.htmlCode = '';
}
Container.prototype.render = function() {
return this.htmlCode;
};
Container.prototype.remove = function() {
document.getElementById('menu').remove();