Skip to content

Instantly share code, notes, and snippets.

View WebSofter's full-sized avatar
🌴
On vacation

David Amirkhanov WebSofter

🌴
On vacation
View GitHub Profile
@WebSofter
WebSofter / README.md
Last active December 31, 2021 09:18
Mailu configuration for SMTP implementation

Instruction

1. Domain settings

Before you must have domain and setting it:

Type Host Value
A mail Your IP address
MX @ mail.yourdomain.com 10

Next, you have to set the hostname

@WebSofter
WebSofter / commands.sh
Last active June 9, 2021 13:33
Basic Flutter commands
Of all the gin joints in all the towns in all the world, she walks into mine.
@WebSofter
WebSofter / nginx.conf
Last active May 7, 2021 04:43
Nginx proxy for detect bots for prerendering
# Note (November 2016):
# This config is rather outdated and left here for historical reasons, please refer to prerender.io for the latest setup information
# Serving static html to Googlebot is now considered bad practice as you should be using the escaped fragment crawling protocol
server {
listen 80;
listen [::]:80;
server_name yourserver.com;
root /path/to/your/htdocs;
@WebSofter
WebSofter / tmux.sh
Last active June 14, 2021 04:55
Tmux commands
$ sudo apt install tmux #Install tmux on ubuntu/debian
#Sessions an splitings
$ Ctrl+b s #List sessions
$ Ctrl+b $ #Name session
$ tmux new-session -s [session_name | id] #Create the new session
$ tmux attach #Connect to last or to single session
$ tmux attach -t test #Connect to specify session
$ ctrl+b d #1 Disconnect from current session (NOT KILL)
$ tmux detach #2 Disconnect from current session (NOT KILL)
@WebSofter
WebSofter / commands.sh
Last active April 21, 2021 13:56
Flutter commands
flutter doctor #App status
flutter devices #List of connected devices
flutter create . #Create device
@WebSofter
WebSofter / git.sh
Last active May 10, 2021 07:48
General commands working with GIT
Untracked -> Commited -> Modified -> Staged
* Basic commands
git init #Init new git reo
git status #Show current git status
git add <filename or .(all)> #Add git changes to index
git rm --cached <filename or .(all)> #Remove changes from index
git commit -m "My message note" #Commit with message
git branch #Show list branches of repo
git branch my_branch #Create new branch
@WebSofter
WebSofter / config
Created July 19, 2020 16:35
Solver remote ssh problem in Visual Studio Code
Host HOST
User USER
HostName MY_IP_ADRES
IdentityFile ~/.ssh/id_rsa
…or create a new repository on the command line
echo "# flutter-lessons" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:WebSofter/flutter-lessons.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:WebSofter/flutter-lessons.git
If the margin property has four values:
margin: 10px 5px 15px 20px;
-top margin is 10px
-right margin is 5px
-bottom margin is 15px
-left margin is 20px
@WebSofter
WebSofter / blender_keys.txt
Last active March 7, 2020 22:07
Description of blender keys
Blender description keys
SHIFT + A - Вывод меню добавления нового объекта
SHIFT + RCLICK - Задание новых координат для 3D-курсора. Там, где 3D курсор появляется новые добавляемые объекты
SHIFT + D - Дубликация объекта
CTRL + L - Вывод меню управления ссылками
G - Клавища перемещения
R - Клавища поворота
S + [Z, Y, Z] + [SHIFT] - Клавища масштабирования + [по осям] + [гладко]
7 NUMPAD - Вид сверху