This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mutagen.mp4 import MP4 | |
audio = MP4("Did You.m4a") | |
print "Artist: " + audio.tags['\xa9ART'][0] | |
audio.tags['\xa9ART'] = "Someone Else" | |
audio.save() | |
audio = MP4("Did You.m4a") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# actual_data = json.loads(data) | |
# for c in actual_data: | |
# if not actual_data[c]: | |
# print c + '--' | |
# r = requests.post('http://www.beertutor.com/beers/index.php?t=sub_pages&cat=' + str(c), data = {'num_results': '5000'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import json | |
import clipboard | |
first_level_categories = {74: {}, 75: {}, 134: {}, 79: {}, 53: {}, 86: {}, 110: {}, 76: {}, 77: {}} | |
# Get 2nd level categories | |
for category in first_level_categories: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' More info about SMBIOS can be found in the SMBIOS specification: https://www.dmtf.org/standards/smbios, and from this article: http://www.codeguru.com/cpp/misc/misc/system/article.php/c12347/SMBIOS-Demystified.htm | |
' Get SMBIOS data using WMI | |
Set objWMIService = GetObject("winmgmts:\\.\root\WMI") | |
Set smbios_array = objWMIService.ExecQuery("SELECT * FROM MSSmBios_RawSMBiosTables") | |
For Each i in smbios_array | |
Set smbios = i | |
Exit For | |
Next | |
smbios_string = Join(smbios.SMBiosData, ",") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import datetime | |
import pickle | |
import webbrowser | |
import codecs | |
import subprocess | |
import sys | |
# Quick little function that opens the default web browser and displays the HTML of your choice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''''''''''''''''''''''''''''' | |
' Purpose: Allows you to enter the drive letter of an external drive with a copy of Windows on it, returns computer name | |
' Requirements: Windows 7 (may support older OSes), Administrator (maybe) | |
' Written by: Alex Yancey | |
' Date: December 8, 2016 | |
''''''''''''''''''''''''''''' | |
const HKEY_LOCAL_MACHINE = &H80000002 | |
set objshell = CreateObject("Wscript.shell") | |
computer_name = InputBox("OS drive letter: ", "HDD Computer Name") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''''''''''''''''''''''''''''' | |
' Purpose: Allows us to remotely map drives without psexec or knowing the user's password | |
' Requirements: Windows 7 (may support older OSes), Administrator (maybe) | |
' Written by: Alex Yancey | |
' Date: December 20, 2016 | |
''''''''''''''''''''''''''''' | |
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
Set objFile = objFSO.CreateTextFile("remotemap.bat") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import records | |
import datetime | |
db = records.Database('mysql://root:a6478a14@172.16.144.157/bank') | |
print('Welcome to Softbank. Please enter your username and password...') | |
username = raw_input('Username: ') | |
password = raw_input('Password: ') | |
# This SQL library does not immediately run the query and store the results until we tell it to. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import records | |
db = records.Database('mysql://root:a6478a14@172.16.144.157/bank') | |
print('Welcome to the Softbank registration system!') | |
print('Please tell us the following information...') | |
first_name = raw_input('First name: ') | |
middle_name = raw_input('Middle name: ') | |
last_name = raw_input('Last name: ') | |
username = first_name.lower()[0] + last_name.lower() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import records | |
db = records.Database('mysql://root:a6478a14@172.16.144.157/bank') | |
# Create User table | |
db.query("""CREATE TABLE `user` ( | |
`id` INT NOT NULL AUTO_INCREMENT, | |
`first_name` VARCHAR(100) NOT NULL, | |
`middle_name` VARCHAR(100) NOT NULL, |
OlderNewer