Skip to content

Instantly share code, notes, and snippets.

View AVStarikovich's full-sized avatar
💁‍♂️

Anton Starikovich AVStarikovich

💁‍♂️
View GitHub Profile
@AVStarikovich
AVStarikovich / gist:c3e06f6c53f71beb4006707aa4d9fdb4
Last active October 28, 2022 15:44
Всякие полезности
Как узнать какие сейчас приложения какими портами пользуются?
netstat -anp
или
sudo lsof -i :10000
и потом
kill -9 <pid>
Если ssh агент не хочет работать
@AVStarikovich
AVStarikovich / gist:2b7e115bc876714a1a21a2f53e6db795
Last active June 12, 2021 08:44
Ввод пароля в терминал по отпечатку пальца
Если вы пользуетесь iterm2 то выключите:
Prefs > Advanced > Allow sessions to survive logging out and back in
Заходим в репу где хранится sudo:
cd /etc/pam.d
Далее, нужно разрешить редактировать файл sudo:
sudo chmod a+w sudo
Потом отрываем его любым редактором, например, с помощью vim:
@AVStarikovich
AVStarikovich / gulpfile
Created October 20, 2016 17:53
new gulpfile
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: './',
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;
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())