Skip to content

Instantly share code, notes, and snippets.

View ilyar's full-sized avatar
🖖
InfinityHackathon

ilyar

🖖
InfinityHackathon
View GitHub Profile
@ilyar
ilyar / npm_install_local
Last active August 29, 2015 13:58
npm install local, tested on Ubuntu, is very likely on Windows (in git bash) will work too.
#!/bin/bash
# curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
# or
# wget -qO- https://deb.nodesource.com/setup_0.10 | sudo bash -
# or
# curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
# or
# wget -qO- https://deb.nodesource.com/setup_0.12 | sudo bash -
# sudo apt-get install -qq -y nodejs
#!/usr/bin/env bash
git fetch origin
git stash
git rebase origin/$(git rev-parse --abbrev-ref HEAD)
git stash pop
— HTML, CSS, JavaScript
— Node.js, Backbone.js, Ember.js, i-bem.js
— AngularJS, React, Meteor
— LESS, SCSS, но Sass
— npm, io.js
cl_red='\[\033[0;31m\]'
cl_RED='\[\033[1;31m\]'
cl_green='\[\033[0;32m\]'
cl_GREEN='\[\033[1;32m\]'
cl_yellow='\[\033[0;33m\]'
cl_YELLOW='\[\033[1;33m\]'
cl_blue='\[\033[0;34m\]'
cl_BLUE='\[\033[1;34m\]'
cl_purple='\[\033[0;35m\]'
cl_PURPLE='\[\033[1;35m\]'
@ilyar
ilyar / VBoxGuestAdditionsUpdate
Last active December 9, 2015 18:08
Update VBoxGuestAdditions in Ubuntu VM
#!/bin/bash
wget -c http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso -O VBoxGuestAdditions.iso
sudo mount VBoxGuestAdditions.iso -o loop /mnt
sudo sh /mnt/VBoxLinuxAdditions.run --nox11
rm VBoxGuestAdditions.iso
@ilyar
ilyar / sevien
Last active December 27, 2015 18:29
Setup minimal environment for use virtual machines on VirtualBox 4.3 and Vagrant 1.7.2 (plugins: cachier, hostmanager)
#!/bin/bash
# sevien
# Setup minimal environment for use virtual machines on VirtualBox 4.3 and Vagrant 1.7.2 (plugins: cachier, hostmanager)
codename=$(lsb_release --codename | cut -f2)
arch=$(uname -m)
# VirtualBox
@ilyar
ilyar / gist:7810634
Last active April 13, 2016 20:40 — forked from varya/gist:4175550
fix error 500
({
block: 'page',
title: 'index',
head: [
{ elem: 'css', url: '_index.css', ie: false},
{ elem: 'css', url: '_index.ie.css', ie: true },
{ block: 'i-jquery', elem: 'core'},
{ elem: 'js', url:'_index.js'},
],
content: [
@ilyar
ilyar / modernie.md
Created June 12, 2017 06:27 — forked from hiasinho/modernie.md
Internet Explorer on Vagrant

The Modern.ie Virtual Machine Images – VMs used for testing several versions of IE – are now also available as vagrant boxes. Here’s the list:

#!/bin/bash
### BEGIN INIT INFO
# Provides: %name%
# Required-Start: $network $remote_fs $local_fs
# Required-Stop: $network $remote_fs $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: forever-service startup script for %name%
# Description: forever-service startup script for node script based service %name%, uses forever to start the service