Skip to content

Instantly share code, notes, and snippets.

View KillerGoldFisch's full-sized avatar

Kevin Gliewe KillerGoldFisch

View GitHub Profile
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication
drive = GoogleDrive(gauth)
file1 = drive.CreateFile({'title': 'Hello.txt'}) # Create GoogleDriveFile instance with title 'Hello.txt'
file1.SetContentString('Hello World!') # Set content of the file from given string
file1.Upload()
#!/usr/bin/env python
# coding: utf8
"""AttrDict.py: A object/dictionary Hybrid."""
__author__ = "Kevin Gliewe aka KillerGoldFisch"
__copyright__ = "Copyright 2015, Kevin Gliewe"
__credits__ = ["Kimvais", "Kevin Gliewe",]
__license__ = "WTFPL"
__version__ = "1.0.0"
#!/usr/bin/env python
# This Module is a wrapper for the gentoo sandbox tool.
# For Debian based systems take a look at https://wiki.debian.org/Sandbox
import subprocess, os
def addto(varname, value):
@KillerGoldFisch
KillerGoldFisch / spotify-dl.py
Created October 7, 2014 15:17
Spotify playlist downloader
#!/usr/bin/env python
import groove
import urllib2
import argparse
from bs4 import BeautifulSoup
import difflib
def get_soup(url):
page = urllib2.urlopen(url)
return BeautifulSoup(page)
@KillerGoldFisch
KillerGoldFisch / mcscan.py
Last active September 8, 2023 18:21
Scans a range of IPs for Minecraft Servers
#!/usr/bin/env python
# coding: utf8
"""mcscan.py: Scans an ip range for Minecraft multiplayer server."""
__author__ = "Kevin Gliewe aka KillerGoldFisch"
__copyright__ = "Copyright 2016, Kevin Gliewe"
__credits__ = ["Kevin Gliewe",]
__license__ = "MIT"
__version__ = "1.1.0"
/*
FILE: Vector3D.h
ABOUT: C++ Vector Tamplate
AUTHOR: Kevin Gliewe
EMAIL: [email protected]
DATE: 12.12.2011
*/
#pragma once
/*
FILE: Mat3D.h
ABOUT: C++ 3D Martix Tool
AUTHOR: Kevin Gliewe
EMAIL: [email protected]
DATE: 2014-07-5
*/
#pragma once
@KillerGoldFisch
KillerGoldFisch / Vector3Th.h
Created June 25, 2014 17:55
3D Vector helper
/*
FILE: Vector3Th.h
ABOUT: C++ Vector Tamplate
AUTHOR: Kevin Gliewe
EMAIL: [email protected]
DATE: 12.12.2011
*/
#pragma once
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Circular regression (Circle-fitting)
Calculates the best fitting circle by the given Points.
Based on http://www.block-net.de/messtechnik/p-messtechnik.html
"""
__author__ = "Kevin Gliewe aka KillerGoldFisch"
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
sortmp3.py: Copys MP3 files to a structured directory Tree.
Usage: sortmp3.py -i <inputdir> -o <outputdir>
Depends on:
- id3reader
"""