Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vgrivtsov
vgrivtsov / mnemonic_words.py
Last active August 28, 2018 08:14
Create mnemonical words for Kozarenko system
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#import pymorphy2
#with open ('russian.txt', 'r') as file:
#z = file.read()
#with open ('russian_decoding.txt', 'a') as wf:
#wf.write(z.encode('latin1').decode('cp1251'))
#start script
service tor start
service privoxy start
gsettings set org.gnome.system.proxy.socks host 'localhost'
gsettings set org.gnome.system.proxy.socks port 9050
gsettings set org.gnome.system.proxy.http host 'localhost'
gsettings set org.gnome.system.proxy.http port 8118
gsettings set org.gnome.system.proxy.https host 'localhost'
gsettings set org.gnome.system.proxy.https port 8118
gsettings set org.gnome.system.proxy mode 'manual'
@vgrivtsov
vgrivtsov / electircal tilts change
Last active January 12, 2017 12:21
scripts for change electrical tilts.
author__ = 'victor.grivtsov'
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
dt = datetime.now().strftime('%m%d')
etilts_csv = "./DB/e_tilts678.csv"
@vgrivtsov
vgrivtsov / WinSCPcommands.txt
Last active November 3, 2016 04:42
make executable files from .py and put-get pack to from FTP
open ftp://%NAME%:%PASS%@%IP_FTP%:21
option batch on
option confirm off
cd temp
cd RELEASE
get "*.7z"
exit
__author__ = 'victor.grivtsov'
# -*- coding: utf-8 -*-
import os
import sys
import shutil
import xlrd
import datetime
from pytils import translit
from subprocess import Popen
__author__"Victor Grivtsov"
# -*- coding: utf-8 -*-
# Work pause generator, beep on 45 min of hour and blocking keyboard and mouse
# and unblocking after 15 minutes
import sys
import time
from ctypes import * # windll.user32 , win32con need use for mouse_events
import win32api
__author__ = 'victor.grivtsov'
# -*- coding: utf-8 -*-
import urllib.request
from bs4 import BeautifulSoup, Tag
import re
global descript_arr, price, href_arr, date
def get_html(url):