Skip to content

Instantly share code, notes, and snippets.

View clickfreak's full-sized avatar

Konstantin Novakovskii clickfreak

View GitHub Profile
@clickfreak
clickfreak / vscale_upload_zone.py
Last active February 9, 2016 15:24
Import dns zone into vscale domains
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import json
import logging
import httplib
import argparse
@clickfreak
clickfreak / upload_dns_help.txt
Last active October 4, 2019 09:56
Import bind-zone file to Selectel DNS via API
usage: bind_upload.py [-h] --key <key> --name <name> --zone <zone>
Selectel domains-api bind-zone import helper
optional arguments:
-h, --help show this help message and exit
required named arguments:
--key <key> Your API Key
--name <name> Domain name for creation
@clickfreak
clickfreak / pypresender.py
Last active August 18, 2016 04:18
Resend udp packet to another host using pcap
#!/usr/bin/env python
import pcap
import socket
from scapy.all import *
conf.use_pcap=True # because by default scapy try to use raw socket and can't assign bpf filter
conf.verb=0 # it just grab all traffic and get error on processing
import scapy.arch.pcapdnet
@clickfreak
clickfreak / kernel_upgrade.yml
Created January 12, 2015 17:14
HWE kernel on ubuntu precise (Ansible playbook)
---
- name: install HWE Stack on Ubuntu 12.04
hosts: all
user: someuser
sudo: yes
tasks:
- name: Install linux-hwe-generic package
apt: