Skip to content

Instantly share code, notes, and snippets.

View andrey-hohlov's full-sized avatar

Andrei Khokhlov andrey-hohlov

View GitHub Profile
@andrey-hohlov
andrey-hohlov / style.css
Created December 18, 2019 14:44
Safari border-radius + overflow: hidden + CSS transform fix
div {
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
}
@andrey-hohlov
andrey-hohlov / countries.json
Created April 9, 2019 13:46 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
import axios from 'axios';
import constants from '@/core/common/constants';
export function fetchLegDistance(leg) {
return new Promise((resolve, reject) => {
if (!leg.startLocation.address.verified || !leg.startLocation.address.verified) {
reject(new Error('Unverified leg address'));
return;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -y install software-properties-common
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:nginx/stable
sudo apt-get -y update
sudo apt-get upgrade
# Install packages
@andrey-hohlov
andrey-hohlov / readme.md
Last active December 5, 2020 19:32
VPS setup for Wordpress

Настройка VPS под Wordpress

Ubuntu 16 + Nginx + PHP-FPM + MariaDB + Memcached

Базовые настройки

Обновить систему