Skip to content

Instantly share code, notes, and snippets.

View miletskiy's full-sized avatar
:octocat:
Commiting

Sergiy Miletskyi miletskiy

:octocat:
Commiting
View GitHub Profile
# Freelancing Reviews Samples
=======================================================================
****
=======================================================================
## Buyer Reviews to Sellers
=======================================================================
@miletskiy
miletskiy / proxy.py
Created January 16, 2019 15:34 — forked from RaD/proxy.py
simple http proxy
# -*- coding: utf-8 -*-
import argparse
import re
import requests
from bs4 import BeautifulSoup, Comment
from flask import Flask
from flask import Response
@miletskiy
miletskiy / mysql.db
Created March 4, 2018 16:52
MySQL create db
# create db
CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci;
# assign to user
GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password';
@miletskiy
miletskiy / secret.py
Last active November 14, 2017 16:48 — forked from vitorfs/secret.py
Generate secret key
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
random_string = get_random_string(50, chars)
print(random_string)
@miletskiy
miletskiy / changes.html
Last active March 4, 2018 16:56
Изменения index.html
diff --git a/main/templates/main/index.html b/main/templates/main/index.html
index 92ae224..24ece26 100644
--- a/main/templates/main/index.html
+++ b/main/templates/main/index.html
@@ -8,8 +8,8 @@
<meta name="yandex-verification" content="75f9a85863f435fa" />
<meta name="description" content="Компанія ЗІКО – розробка інженерних рішень, які включають очистку води, водопідготовку, насоси та насосне обладнання, баки та гідроакумулятори, очистка стоків">
<meta charset="UTF-8">
- <link rel="canonical" href="http://www.ziko.com.ua/">
- <link rel="alternate" href="http://www.ziko.com.ua/ru" hreflang="ru" />
@miletskiy
miletskiy / context_processors.py
Created May 4, 2017 16:45
context_processors
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATE_DIR],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
@miletskiy
miletskiy / del.js
Last active April 1, 2017 18:20
for Alex
function (e) {
e.preventDefault();
$(e.currentTarget).parent().remove(); // delete from ul
return false;
}
// Corrected after review
$("document").ready(function() {
@miletskiy
miletskiy / bit_script.py
Last active March 18, 2017 20:08
bit_script.py
# /data/hack bitscript.py
# script for taking hash of transactions and send between wallets
from bitcoin import (
mktx,
sign,
deserialize,
)
@miletskiy
miletskiy / subscribe_form.html
Created January 9, 2017 17:48
Malilya form
<!-- http://forms.sendpulse.com/7798ab3d23/?_ga=1.164628411.522880241.1483983308 -->
<div id="a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1" style="width: 350px !important;background-color: #f1f1ee !important;border-style: solid !important;border-width: 1px !important;border-color: #a88f80 !important;border-radius: 5px !important;">
<style>
.a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1_form_line p,
.a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1_form_line h1,
.a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1_form_line h2,
.a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1_form_line h3,
.a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1_form_line h4,
.a07e0f19e09ccbf6c73d0f845d2e47905eda9948067e996f1e2b1d6ce4344fe1_form_line h5,
@miletskiy
miletskiy / p.py
Last active December 26, 2016 11:35
ip port scanner python
#! /usr/bin/env python
# http://mycodding.blogspot.com/2012/06/ip-port-scanner-python-python.html
import optparse
import telnetlib
from threading import Thread
from Queue import Queue
import time
queue = Queue()