Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tahir Jalilov TahirJalilov

🏠
Working from home
View GitHub Profile
@TahirJalilov
TahirJalilov / backup_remote_folder.txt
Created Feb 23, 2021
backup remote server folder
View backup_remote_folder.txt
#!/bin/zsh
sleep 10 && scp -r aws:/home/tahir/projects/postgres_db/db_backups ./
@TahirJalilov
TahirJalilov / flake8_projects.txt
Created Feb 23, 2021
flake8 settings for python projects
View flake8_projects.txt
[flake8]
max-line-length = 88
extend-ignore = E203, W503
exclude = ./venv
@TahirJalilov
TahirJalilov / dolphinrc
Created Feb 23, 2021
kde dolphin configs
View dolphinrc
Height 1080=666
MenuBar=Disabled
State=AAAA/wAAAAD9AAAAAwAAAAAAAAC4AAAD2PwCAAAAAvsAAAAWAGYAbwBsAGQAZQByAHMARABvAGMAawAAAAAA/////wAAAAwBAAAF+wAAABQAcABsAGEAYwBlAHMARABvAGMAawEAAAAmAAAD2AAAAFQBAAAFAAAAAQAAAAAAAAAA/AIAAAAB+wAAABAAaQBuAGYAbwBEAG8AYwBrAAAAAAD/////AAAADAEAAAUAAAADAAAHgAAAAL78AQAAAAH7AAAAGAB0AGUAcgBtAGkAbgBhAGwARABvAGMAawAAAAAAAAAHgAAAAJkBAAAFAAAGxQAAA9gAAAAEAAAABAAAAAgAAAAI/AAAAAEAAAACAAAAAQAAABYAbQBhAGkAbgBUAG8AbwBsAEIAYQByAQAAAAD/////AAAAAAAAAAA=
Width 1920=1272
Window-Maximized 1080x1920=true
[CompactMode]
FontWeight=50
PreviewSize=32
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Theme
View .vimrc
set number
set mouse=a
syntax on
View .tmux.conf
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
TERM="xterm-256color"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
View .sqliterc
.headers on
.mode column
.nullvalue null
@TahirJalilov
TahirJalilov / flake8.txt
Last active Feb 23, 2021
flake8 pycharm settings
View flake8.txt
Name: Flake8
File type: Python
Scope: Project Files/Current File
Program: $PyInterpreterDirectory$/flake8
Arguments: $FileDir$/$FileName$
Output paths to refresh: $FileDir$
Working directory: $ProjectFileDir$
Outup filters: $FILE_PATH$:$LINE$:$COLUMN$: $MESSAGE$
@TahirJalilov
TahirJalilov / PyPi upload guide.md
Created Jan 27, 2021 — forked from kevinkosterr/PyPi upload guide.md
Guide to uploading a package to PyPi
View PyPi upload guide.md

Uploading your package to a PyPi server

Creating a setup.py file

Create a setup.py file, PyCharm has a tool for this. Tools -> create setup.py a basic setup.py file looks like this:

from setuptools import setup

with open('README.md') as readme: