Skip to content

Instantly share code, notes, and snippets.

View richxcame's full-sized avatar
🎯
Focusing

Baygeldi Cholukov richxcame

🎯
Focusing
View GitHub Profile

Bash script for docker

Give permission to booking.sh

sudo chmod +x scriptname.sh

booking.sh

#!/bin/bash
@richxcame
richxcame / SSH.md
Last active December 29, 2021 18:57
Connect with ssh without typing password

How to ssh to a remote server without typing your password

# The hostname of your remote server.
[email protected]

# Create this folder if it does not exist: ~/.ssh
mkdir ~/.ssh

# Set the correct permissions (required)
@richxcame
richxcame / tmux.md
Last active December 29, 2021 18:58
Tmux custom key binding

Key bindings to tmux (my config file for tmux)

Create .tmux.conf file in root folder of user

# remap prefix from C-b to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
[user]
name = Baygeldi Cholukov
email = [email protected]
[alias]
a = add
al = add .
#############
b = branch
ba = branch --all
bd = branch -d
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

{
"singleQuote": true,
"tabWidth": 2,
"printWidth": 80,
"useTabs": true,
"jsxSingleQuote": true,
"bracketSameLine": false,
"arrowParens": "avoid"
}
@solancer
solancer / apache-nginx-ftp
Created July 27, 2016 10:53
Correct permissions for /var/www/html
// Adding current user to www-data
sudo adduser $USER www-data
//change ownership to user:www-data and
sudo chown $USER:www-data -R /var/www/html
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html
// change file permissions of existing files and folders to 755/644
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;