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 wmi | |
import struct | |
# RAM memory types described in 7.18.2 in SMBIOS Specification | |
MEMORY_TYPES = {1: 'Other', 2: 'Unknown', 3: 'DRAM', 4: 'EDRAM', 5: 'VRAM', 6: 'SRAM', 7: 'RAM', 8: 'ROM', 9: 'FLASH', 10: 'EEPROM', 11: 'FEPROM', 12: 'EPROM', 13: 'CDRAM', 14: '3DRAM', 15: 'SDRAM', 16: 'SGRAM', 17: 'RDRAM', 18: 'DDR', 19: 'DDR2', 20: 'DDR2 FB-DIMM', 21: 'Reserved', 22: 'Reserved', 23: 'Reserved', 24: 'DDR3', 25: 'FBD2'} | |
def Get_SMBIOS(w): | |
SMBIOSTableData = "" | |
for i in w.query("SELECT * FROM MSSmBios_RawSMBiosTables")[0].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 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
# 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 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
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") |
NewerOlder