Skip to content

Instantly share code, notes, and snippets.

View alexander-mart's full-sized avatar
💭
☮️

Alexander Mart alexander-mart

💭
☮️
View GitHub Profile
@alexander-mart
alexander-mart / install-opencart.sh
Last active November 5, 2015 19:51 — forked from aamnah/install-opencart.sh
Opencart Install Script
#!/bin/bash
# Author: Aamnah Akram
# URL: http://aamnah.com
# Email: hello@aamnah.com
# Description: Bash script to install Opencart
# Usage: You can use 'curl' to run this script directly from Github.
# curl -L https://gist.githubusercontent.com/aamnah/93cb63fc15e708649084/raw | bash
# SETTINGS
Path='/opencart3'
@alexander-mart
alexander-mart / gist:e88b71ab4326f6676616
Created November 7, 2015 09:59
How to install XenTools on Ubuntu 64bit on XenServer 6.5
In XenCenter, attach xs-tools.iso to the DVD drive of the VM. Then mount xs-tools.iso, install the correct XenServer Tools package (replace amd64 with i386 if necessary) and unmount xs-tools.iso:
sudo mount /dev/cdrom /mnt
sudo dpkg -i /mnt/Linux/xe-guest-utilities_6.5.0-1939_amd64.deb
sudo umount /mnt
In XenCenter, detach xs-tools.iso from the DVD drive of the VM and reboot the VM.
@alexander-mart
alexander-mart / multiple-modals-semantic.html
Created April 12, 2016 13:40 — forked from marcosfreitas/multiple-modals-semantic.html
Creating Multiple Modals in Semantic UI :)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multiple Modals With Semantic UI</title>
<link rel="stylesheet" href="path_to_semantic/dist/semantic.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="path_to_semantic/dist/semantic.js"></script>
</head>
<body>
SEO-чек-лист:
http://www.seochecklist.ru/
https://docs.google.com/spreadsheets/d/1_d67ieJEE3ozZdkdLVkoekpTwtjYhAGY9PQeYXiikPY/edit?usp=sharing
Скорость сайта:
https://developers.google.com/speed/pagespeed/insights/?hl=ru
http://webpagetest.org
Как увеличить скорость сайта:
https://developers.google.com/speed/docs/insights/rules
Чеклист верстки (чтобы отдавать клиенту - выполнить первые 5 пунктов):
https://github.com/ihorzenich/html5checklist/
Стартовые шаблоны:
https://html5boilerplate.com/
http://www.initializr.com/
Требования к HTML-вёрстке:
https://habrahabr.ru/post/101464/
Удвоение продаж в интернет-магазине
FB2:
https://goo.gl/PgvJGK
PDF:
https://goo.gl/U5xoL7
Чек-лист создания интернет-магазина
https://goo.gl/Kp9wpw
# Установка RVM - Ruby Version Manager - утилита для установки нескольких версий Ruby на Linux
\curl -L https://get.rvm.io | bash -s stable --ruby
Далее попросит загрузить ключ:
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
Скопировать и выполнить эту команду, а затем ещё раз повторить установку:
\curl -L https://get.rvm.io | bash -s stable --ruby
@alexander-mart
alexander-mart / chown-fix.sh
Last active July 4, 2016 16:53
Для веб-сервера. Скрипт был написан для исправления прав на папки пользователей со скопированными в них под рутом сайтами после переезда сервера.
#!/bin/bash
# Проходим по порядку все директории пользователей в /home
# и меняем владельца подпапки /home/%user%/web/ на этого пользователя и одноимённую группу
for dir in `ls -F1 /home/ | grep -e ./ | tr -d \/`
do
echo 'Fix owner and group for directory:' $dir
user=$dir
group=$user
@alexander-mart
alexander-mart / replace-ip.sh
Last active July 6, 2016 12:20
Скрипт для смены IP-адреса во всех конфигах и именах файлов/папок после смены IP-адреса на VDS с панелью управления веб-сервером VestaCP
#!/bin/bash
# Заменяем строки с IP-адресом в файлах и именах файлов и папок в директорях /home /etc /usr
# Старый IP
old_ip="xxx.xxx.xxx.xxx"
# Новый IP
new_ip="yyy.yyy.yyy.yyy"
https://gitlab.com/vltlabs/git-trello-hook
https://github.com/xfguo/gitlab-commit-trello-comment
https://github.com/adunkman/node-trello
http://drakmail.ru/post/2015-12-06-trello-gitlab-rails-integration/