Skip to content

Instantly share code, notes, and snippets.

View TahirJalilov's full-sized avatar

Tahir Jalilov TahirJalilov

View GitHub Profile
@TahirJalilov
TahirJalilov / PyPi upload guide.md
Created January 27, 2021 15:00 — forked from kevinkosterr/PyPi upload guide.md
Guide to uploading a package to PyPi

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:
@TahirJalilov
TahirJalilov / flake8.txt
Last active February 23, 2021 18:04
flake8 pycharm settings
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 / .sqliterc
Created February 23, 2021 18:06
sqlite configs
.headers on
.mode column
.nullvalue null
@TahirJalilov
TahirJalilov / .tmux.conf
Created February 23, 2021 18:07
tmux configs
# 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:
@TahirJalilov
TahirJalilov / .vimrc
Created February 23, 2021 18:08
vim configs
set number
set mouse=a
syntax on
@TahirJalilov
TahirJalilov / .zshrc
Created February 23, 2021 18:09
zshrc configs
# 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
@TahirJalilov
TahirJalilov / flake8_projects.txt
Created February 23, 2021 18:10
flake8 settings for python projects
[flake8]
max-line-length = 88
extend-ignore = E203, W503
exclude = ./venv
@TahirJalilov
TahirJalilov / backup_remote_folder.txt
Created February 23, 2021 18:12
backup remote server folder
#!/bin/zsh
sleep 10 && scp -r aws:/home/tahir/projects/postgres_db/db_backups ./
@TahirJalilov
TahirJalilov / command.txt
Last active March 15, 2023 21:55
exiftool photo and video renamer with date and time
# rename file by creation date
exiftool '-filename<CreateDate' -d '%Y%m%d_%H%M%S%%-c.%%le' -r ./
perl-rename -v 's/(\d{4})-(\d{2})-(\d{2}) (\d{2}).(\d{2}).(\d{2})/$1$2$3_$4$5$6/' *
# remove IMG or VID prefix
perl-rename -v 's/(IMG)_(\d{8})_(\d{6})/$2_$3/' *
@TahirJalilov
TahirJalilov / command.txt
Created March 25, 2021 14:56
rmlint usage
rmlint -gkm [path] // [origpath]