Skip to content

Instantly share code, notes, and snippets.

View jigi-33's full-sized avatar
👨‍💻
done!

ilya shaburov jigi-33

👨‍💻
done!
  • ITC of NSSR
  • Novosibirsk, Russia
  • 20:02 (UTC +07:00)
View GitHub Profile
@jigi-33
jigi-33 / proxy.md
Created April 5, 2023 17:15 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@jigi-33
jigi-33 / freelance_sites_for_juniors.MD
Last active February 26, 2023 10:34
Сайты по фрилансу, актуальные в 2022
@jigi-33
jigi-33 / bash-guide-1.md
Created January 8, 2023 05:32
BASH Master Guide

Бесплатная книга-сайт на русском, полный гайд
Advanced Bash-Scripting Guide

Введение

BASH — Bourne-Again SHell (что может переводится как «перерожденный шел», или «Снова шел Борна(создатель sh)»), самый популярный командный интерпретатор в юниксоподобных системах, в особенности в GNU/Linux. Ниже приведу ряд встроенных команд, которые мы будем использовать для создания своих скриптов.

>break выход из цикла for, while или until

@jigi-33
jigi-33 / vs_ce_code_linux.txt
Created July 26, 2022 16:50
VStudio free serial
VS-L-6WJ47DAE69Q3EDKY-5SPL9AAL81UM5GL9-DF3N9JL5AT46EML4-AK7PNN3XDAA31U14 Valentina Studio Free: New Linux
@jigi-33
jigi-33 / deal_python3_basics_cheat_sheet.py
Created February 7, 2022 11:39
Cheat Sheet of Python3 basics (standard lib) w/ atomic examples
# User input - common syntax
input("Please enter the string you want to be printed out: ")
#Saving the input to a variable
user_says = input("Please enter the string you want to be printed out: ")
#Defining a Variable
my_var = 10 #type - integer
@jigi-33
jigi-33 / pyqt5_stub_with_ui_gen_scr.MD
Last active February 21, 2022 14:09
Рыба (эталон) главного скрипта при подключении внешнего UI, сгенеренного QtDesigner'ом

The Standard way in main script with external UI

(previously generated by QT Designer / Creator)

NEW: MDI (Multi-dialog interface) is supported [inside 2nd comment]

# -*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QApplication, QWidget
from my_app_ui import Ui_Form
@jigi-33
jigi-33 / pycharm_json_formatting_feature.MD
Created November 2, 2021 13:15
[trick] JSON pretty formatting in PyCharm and other IntelliJ IDEA products

JSON auto-formatting in PyCharm Community edition

Q:

When I create a .json file in PyCharm and put in some JSON, I'm expecting it to format it as per the format shown under File-> Settings-> Editor-> Code Style-> JSON.

But instead, my code stays as it is - e.g. more than one JSON key value pair on the same line, like this:

@jigi-33
jigi-33 / asyncio_code_debugging_tricks.py
Created October 31, 2021 17:43
asyncio code DEBUGGING tricks
import asyncio
import os
import logging, warnings
os.environ["PYTHONASYNCIODEBUG"] = "1"
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("asyncio").setLevel(logging.DEBUG)
warnings.resetwarnings()
@jigi-33
jigi-33 / cheat_sheet_py3.rst
Created October 29, 2021 06:37
Python3 typing hints and class declaration features [code examples]

Type hints cheat sheet (Python 3)

This document is a quick cheat sheet showing how the PEP 484 type annotation notation represents various common types in Python 3.

@jigi-33
jigi-33 / about_tail.md
Created June 23, 2021 17:04
использование утилиты Tail

Утилита Tail

Команда tail позволяет выводить заданное количество строк с конца файла, а также выводить новые строки в интерактивном режиме.

Синтаксис и опции:

$ tail options filespec