Skip to content

Instantly share code, notes, and snippets.

View ilyar's full-sized avatar
🖖
InfinityHackathon

ilyar

🖖
InfinityHackathon
View GitHub Profile
#!/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
@ilyar
ilyar / .gitconfig_alias
Last active December 19, 2021 22:21
Useful Git alias
[alias]
c = commit -m
a = add
mf = merge --ff-only
co = checkout
cob = checkout -b
ci = commit
st = status
br = branch
cp = cherry-pick
@ilyar
ilyar / Vagrantfile.md
Created June 8, 2017 16:45
Find out current OS inside Vagrantfile

Add this into your Vagrantfile:

module OS
    def OS.windows?
        (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
    end

    def OS.mac?
 (/darwin/ =~ RUBY_PLATFORM) != nil
@ilyar
ilyar / ‎rsync_tutorial‎.md
Last active December 25, 2023 03:29
rsync tutorial‎

How rsync works

(source: https://sites.google.com/site/rsync2u/home/rsync-tutorial/how-rsync-works3)

~/demo1$rsync is efficient. The first time rsync is run, destination is created and the full source is copied to destination. Thereafter, only changes in source are copied to destination. If the --link-dest option is used, unchanged files are hard linked to the previous backup.

A hard link is a pointer to a file. Hard links have the advantage of using very little memory. There is an illustrated explanation of hard links on http://blog.interlinked.org/tutorials/rsync_time_machine.html > scroll down to “Hard-Links”.

Here is how the "rsync --link-dest=DIR" algorithm creates files in destination:

if destination does not exists,

@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
@ilyar
ilyar / education_path.md
Last active February 7, 2024 18:22
Маршруты обучения STEM (Science, Technology, Engineering, Mathematics)

Education STEM (Science, Technology, Engineering, Mathematics) path

STEM-навыки жизненно необходимы в современном мире, но технология сама по себе, как утверждал когда-то Стив Джобс — это не всё, а Google это доказал https://ru.hexlet.io/blog/posts/stem-or-humanity

Основы

Курсы и практики без настроек локального окружения, тебуется только браузер.

@ilyar
ilyar / BEM_Server_Rendering.php
Created September 8, 2017 10:11
Sample BEM Server Rendering on PHP-stack
<?php
# file: public/index.php
#
# Sample BEM Server Rendering on PHP-stack
#
# composer require nacmartin/phpexecjs
#
define('ROOT_DIR', dirname(__DIR__));