Skip to content

Instantly share code, notes, and snippets.

View easy-quest's full-sized avatar

Ivan Yastrebov easy-quest

  • Krasnodar
  • 22:00 (UTC +03:00)
View GitHub Profile
@easy-quest
easy-quest / chezmoiexternals.toml:
Last active December 3, 2021 19:37
chezmoiexternals.toml:
[".vim/autoload/plug.vim"]
type = "file"
url = "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
refreshPeriod = "168h"
[".oh-my-zsh"]
type = "archive"
url = "https://github.com/ohmyzsh/ohmyzsh/archive/master.tar.gz"
exact = true
stripComponents = 1
refreshPeriod = "168h"
@easy-quest
easy-quest / snnipt
Last active December 1, 2021 00:32
```javascript
{
// Поместите свои глобальные фрагменты здесь.Каждый фрагмент определяется под названием фрагмента и имеет scope, prefix, body and
// description. Добавьте отдельные идентификаторы языков, где фрагмент применим в полевой области.Если сфера
// остается пустым или опущенным, фрагмент применяется ко всем языкам.Префикс - это то, что
// Используется для срабатывания фрагмента, а тело будет расширено и вставлено.Возможные переменные:
// $1, $2 for tab stops, $0 Для последнего курсора, and ${1:label}, ${2:another} для заполнителей.
// Защитники с одинаковыми идентификаторами подключены.
// Example:
"Print to console": {
{"lastUpload":"2021-12-01T13:27:42.325Z","extensionVersion":"v3.4.3"}

Keybase proof

I hereby claim:

  • I am easy-quest on github.
  • I am easypass (https://keybase.io/easypass) on keybase.
  • I have a public key whose fingerprint is ECFB 5492 2497 4758 1665 1BC4 2382 E2B4 699A 9122

To claim this, I am signing this object:

Yagi Sim Auto Translater
@easy-quest
easy-quest / newspaper.py
Last active October 16, 2021 16:54
newspaper3k
#!/usr/bin/env python
# coding: utf-8
# In[2]:
# !echo "export PATH=/home/zzz/.local/bin:$PATH" >> ~/.zshrc && source ~/.zshrc
# In[2]:
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
headers {
'accept': '*/*',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 YaBrowser/21.8.3.767 (beta) Yowser/2.5 Safari/537.36',
}
def main():
url = input('Введите url адрес скачиваемой страницы: ')
@easy-quest
easy-quest / python-.zshrc.sh
Created October 12, 2021 10:33
func poedit
function pyedit() {
xpyc=`python -c "import os, sys; f = open(os.devnull, 'w'); sys.stderr = f; module = __import__('$1'); sys.stdout.write(module.__file__)"`
if [[ "$xpyc" == "" ]]; then
echo "Python module $1 not found"
return -1
elif [[ $xpyc == *__init__.py* ]]; then
xpydir=`dirname $xpyc`;
[
{ "keys": ["ctrl+k", "ctrl+i"], "command": "gist" },
{ "keys": ["ctrl+k", "ctrl+p"], "command": "gist_private" },
{ "keys": ["ctrl+k", "ctrl+s"], "command": "gist_update_file" },
{ "keys": ["ctrl+k", "ctrl+o"], "command": "gist_list" },
{ "keys": ["ctrl+k", "ctrl+["], "command": "insert_gist_list" },
{ "keys": ["ctrl+k", "ctrl+]"], "command": "gist_add_file" },
{ "keys": ["ctrl+k", "ctrl+g"], "command": "gist_gitio" }
]