Skip to content

Instantly share code, notes, and snippets.

View shubham2110's full-sized avatar
💭
I may be slow to respond.

Shubham Kumar shubham2110

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/python
import httplib2
import os
import sys
from apiclient.discovery import build
from apiclient.errors import HttpError
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
@shubham2110
shubham2110 / port-forwarding.py
Last active December 2, 2023 08:31 — forked from WangYihang/port-forwarding.py
port forwarding via python socket
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Tcp Port Forwarding (Reverse Proxy)
# Author : WangYihang <wangyihanger@gmail.com>
import socket
import threading
import sys
@shubham2110
shubham2110 / README.md
Created July 5, 2018 10:24 — forked from withakay/README.md
KVM QCOW2 Live backup

Live backup of KVM virtual machines

This script will let you make backups of live VMs running on KVM, using libvirt.

The backup job will suspend the VM for the time it takes to copy the RAM to disk.

Credits: Luca Lazzeroni

Edited to detect and check the image format is qcow2 using qemu-img, rather than rely on the file extension being .qcow2