Skip to content

Instantly share code, notes, and snippets.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\Themes\{a4d6a176-b948-4b29-8c66-53c97a1ed7d0}\VsInteractiveWindow]
"Data"=hex:94,00,00,00,0b,00,00,00,01,00,00,00,85,56,a0,75,a8,00,ed,4d,ba,e5,e7,a5,0b,fa,92,9a,04,00,00,00,12,00,00,00,49,6e,74,65,72,61,63,74,69,76,65,20,2d,20,43,79,61,6e,00,01,00,c0,c0,ff,13,00,00,00,49,6e,74,65,72,61,63,74,69,76,65,20,2d,20,47,72,65,65,6e,00,01,00,c0,00,ff,13,00,00,00,49,6e,74,65,72,61,63,74,69,76,65,20,2d,20,57,68,69,74,65,00,01,7f,7f,7f,ff,14,00,00,00,49,6e,74,65,72,61,63,74,69,76,65,20,2d,20,59,65,6c,6c,6f,77,00,01,c0,c0,20,ff
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\Themes\{a5c004b4-2d4b-494e-bf01-45fc492522c7}\VsInteractiveWindow]
"Data"=hex:1e,01,00,00,0b,00,00,00,01,00,00,00,85,56,a0,75,a8,00,ed,4d,ba,e5,e7,a5,0b,fa,92,9a,08,00,00,00,13,00,00,00,49,6e,74,65,72,61,63,74,69,76,65,20,2d,20,42,6c,61,63,6b,00,01,dc,dc,dc,ff,12,00,00,00,49,6e,74,65,72,61,63,74,69,76,65,20,2d,20,42,6c,75,65,00,01,8c,a
@zooba
zooba / OutliningTaggerProvider.cs
Created April 14, 2016 16:16
A code file for review
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Diagnostics;
using System.Threading;
using Microsoft.VisualStudio.Utilities;
using Microsoft.PythonTools.Analysis;
using Microsoft.PythonTools.Intellisense;
using Microsoft.PythonTools.Parsing.Ast;
using Microsoft.VisualStudio.Text;

Keybase proof

I hereby claim:

  • I am zooba on github.
  • I am stevedower (https://keybase.io/stevedower) on keybase.
  • I have a public key whose fingerprint is 7ED1 0B65 31D7 C8E1 BC29 6021 FC62 4643 4870 34E5

To claim this, I am signing this object:

@zooba
zooba / excel_dataframe.py
Created March 17, 2017 20:34
Function for viewing dataframes in Excel (or default CSV viewer)
print('Loaded dataframe viewer script.')
def xl(data, filename='temp.csv'):
import os, tempfile
filename = os.path.join(tempfile.gettempdir(), filename)
try:
# Try and get the to_csv() function
data_to_csv = data.to_csv
except AttributeError:
@zooba
zooba / feedback-68760.py
Created June 21, 2017 21:18
Python code for developer community feedback item #68760
#!/usr/bin/python
import sys
import re
import os
import fileinput
from PyQt5 import QtWidgets,QtGui
class Main_Page(QtWidgets.QWidget):
def __init__(self,parent = None):
super().__init__()
@zooba
zooba / gist:8c3572bb2261b6b398ce2e9bba1b090f
Created August 17, 2017 22:14
Symbol load log for _ctypes.pyd
E:\Temp\pythondaily\tools\_ctypes.pdb: Cannot find or open the PDB file.
E:\Temp\pythondaily\tools\DLLs\_ctypes.pdb: Cannot find or open the PDB file.
d:\a\1\b\out\amd64\_ctypes.pdb: Cannot find or open the PDB file.
C:\WINDOWS\_ctypes.pdb: Cannot find or open the PDB file.
C:\WINDOWS\symbols\dll\_ctypes.pdb: Cannot find or open the PDB file.
C:\WINDOWS\dll\_ctypes.pdb: Cannot find or open the PDB file.
E:\SymCache\_ctypes.pdb\896657d90d34459695cca921bf203cc91\_ctypes.pdb: Cannot find or open the PDB file.
E:\SymCache\MicrosoftPublicSymbols\_ctypes.pdb\896657d90d34459695cca921bf203cc91\_ctypes.pdb: Cannot find or open the PDB file.
SYMSRV: BYINDEX: 0x1
E:\SymCache*https://www.myget.org/F/python/symbols
@zooba
zooba / pep551_payload.py
Last active November 20, 2017 20:49
Payload for my PEP 551 demo
INTERNET_GUY = [
" .,...:, ",
" :,:::::,. ",
" `,.';;;';, ",
" `,.;'''':. ",
" :'+'''; ",
" ;''';; ",
" ;''';;. ",
" ,,.:;;;:;:;;:':.::. ",
" .::,,;:;++''+:';,...` ",
@zooba
zooba / pep551_payload.b64
Last active November 20, 2017 21:18
Base-64 encoded and gz compressed payload for my PEP 551 demo
H4sIAKxGE1oC/9WUwQqCQBCG74LvMNhBRZHOLsFKRgXlQhkhEQlhIMgW4vuT7lbqipZGh77TrM7nrPAzLtl7K+K4S29+8glZbWECB1mCHAX6opjfm6YhooYAKi9Rl4mxaGIMGIUMjDpN8V1hGogxwGzMtNCHpmoyXmY+nz8x35lPuGmjkl4mQkNNCFvMJqLJ7ttMgsop+h5lyMxR1cyz0Zo+Nqt+qJktua1ctH62fpL4fzGPsiRLtzSmmaY/C8Ut9wesA+ArxCcQkN0G1s50sfRminWOaBalWhJRzRUXzmF81HW98uXLNYUkphHEFBrdNv8D3lx05cIdYXfVEMQEAAA=
@zooba
zooba / decoded_line.py
Last active December 11, 2017 18:09
Sample Python code used in my North Bay Python 2017 session on PEP 551
# This code is the base-64 encoded payload from the single line above, with newlines added for readability.
__import__('gzip').decompress(
__import__('base64').b64decode(
__import__('urllib.request').request.urlopen('http://bit.ly/2iALS0l').read()
)
)
@zooba
zooba / try-remove.py
Created March 11, 2019 01:50
Tool for seeing which Python stdlib modules have dependencies on others
import ast
import json
import sys
import sysconfig
from pathlib import Path
def remove(data, key):
removed = {key}