Skip to content

Instantly share code, notes, and snippets.

View suenot's full-sized avatar
🕸️
Deep

Eugen Soloviov suenot

🕸️
Deep
View GitHub Profile
@suenot
suenot / 0. nginx_setup.sh
Created July 12, 2012 09:02 — forked from mikhailov/0. nginx_setup.sh
Nginx+Unicorn (production-ready setup)
# Nginx optimal congifuration guide.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
$ cd /usr/src
$ wget http://nginx.org/download/nginx-1.2.2.tar.gz
$ tar xzvf ./nginx-1.2.2.tar.gz && rm -f ./nginx-1.2.2.tar.gz
$ wget http://zlib.net/zlib127.zip
@suenot
suenot / nginx_rails_3_1
Created July 12, 2012 18:46 — forked from shapeshed/nginx_rails_3_1
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
upstream app {
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name www.app.com;
rewrite ^/(.*) http://app.com/$1 permanent;
}
server {
@suenot
suenot / install_sublime.sh
Created October 21, 2012 16:27
Install Sublime Text 2 in Debian
sudo echo "deb http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu lucid main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update && sudo apt-get install sublime-text
@suenot
suenot / plugin
Created September 1, 2013 12:13
Список интересных плагинов
AdminJS — веб-приложение для бэкенда на Ember.js
Parallax.js — скрипт для создания параллакс-эффекта с поддержкой мобильных устройств
multifilter — плагин для вывода отфильтрованных несколькими полями табличных данных
intentionjs — плагин для динамической реструктуризации HTML в зависимости от условий отображения сайта
@suenot
suenot / bash
Last active December 22, 2015 07:09
Yeoman
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
nvm install 0.10.6
nvm use 0.10.6
nvm alias default 0.10.6
npm install -g yo generator-webapp
yo webapp
wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
sudo mv add-apt-repository.sh.txt /usr/sbin/add-apt-repository
sudo chmod o+x /usr/sbin/add-apt-repository
sudo chown root:root /usr/sbin/add-apt-repository
sudo add-apt-repository ppa:webupd8team/sublime-text-2
@suenot
suenot / gist:abbc42d2d8034a6470f9
Last active August 29, 2015 14:24
Смена раскладки в elementary

Для переключения по Alt+Shift

gsettings set org.pantheon.desktop.gala.keybindings switch-input-source "['<Alt>Shift_L', '<Alt>Shift_R', '<Shift>Alt_L', '<Shift>Alt_R']"

Для переключения по Ctrl+Shift

gsettings set org.pantheon.desktop.gala.keybindings switch-input-source "['<Ctrl>Shift_L', '<Ctrl>>Shift_R', '<Shift>Control_L', '<Shift>Control_R']"

Для переключения по Caps Lock

gsettings set org.pantheon.desktop.gala.keybindings switch-input-source "['Caps_Lock']"

@suenot
suenot / svgstore.html
Last active August 29, 2015 14:27 — forked from w0rm/svgstore.html
Load combined svg file into body
<html>
<body>
<!-- load combined svg file (with symbols) into body-->
<script>
(function (doc) {
var scripts = doc.getElementsByTagName('script')
var script = scripts[scripts.length - 1]
var xhr = new XMLHttpRequest()
xhr.onload = function () {
@suenot
suenot / type.html
Created June 6, 2016 05:59 — forked from aalexeev239/type.html
typography page
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Title</title>
<link rel="stylesheet" href="css/style.css">
</head>
diskutil list
diskutil unmountDisk /dev/disk2
sudo dd if=/Users/suenot/Fedora-Workstation-Live-x86_64-25-1.3.iso of=/dev/disk2 bs=1m
diskutil eject /dev/disk2