This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
pug = require('gulp-pug'), | |
connect = require('gulp-connect'), | |
cleanCss = require('gulp-clean-css'); | |
gulp.task('pug', function() { | |
gulp.src('src/*.pug') | |
.pipe(pug()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init () - initialisation git local repository; | |
add (files needed add) - add files to commit; // git add . | |
commit (-m) - create commit with added files; -m - message // git commit -m "hi mom, im inside televizor" | |
remote (add, remove) - command for working with repository // git remote add origin https://github.com/AVStarikovich/bootstrap-test | |
-v - return remote repository // | |
push (remote repository and branch) - pushing data remote server // git push -u origin master; -u - save arguments ( git push ) | |
fetch (-f) - download new brantch(s) from remote server; -f (force) - | |
pull () - upload this branch from remote server; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
connect = require('gulp-connect'), | |
browserify = require('browserify'), | |
source = require('vinyl-source-stream'), | |
livereload = require('gulp-livereload'), | |
babelify = require('babelify'); | |
gulp.task('connect', function() { | |
connect.server({ | |
root: './', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Если вы пользуетесь iterm2 то выключите: | |
Prefs > Advanced > Allow sessions to survive logging out and back in | |
Заходим в репу где хранится sudo: | |
cd /etc/pam.d | |
Далее, нужно разрешить редактировать файл sudo: | |
sudo chmod a+w sudo | |
Потом отрываем его любым редактором, например, с помощью vim: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Как узнать какие сейчас приложения какими портами пользуются? | |
netstat -anp | |
или | |
sudo lsof -i :10000 | |
и потом | |
kill -9 <pid> | |
Если ssh агент не хочет работать |