Skip to content

Instantly share code, notes, and snippets.

View mykisscool's full-sized avatar
📺

Mike Petruniak mykisscool

📺
  • Florida
View GitHub Profile
@mykisscool
mykisscool / bq_database.py
Last active November 18, 2021 02:19
CRILL 2021-11-18: Google BigQuery Python/API-friendly (transactional) inserts, streaming inserts, and parameterized queries
import os
import json
from typing import List, Tuple
from google.cloud import bigquery
class BQDatabase:
def __init__(self):
# Can be done implicitly in a Google Cloud Storage bucket
@mykisscool
mykisscool / MinecraftLauncher.py
Last active March 25, 2019 19:09
Python script (designed for Macs) to help Minecraft LAN-play using a single account
#!/usr/bin/python
import json, os, signal
path_to_config = '/Users/' + os.getlogin() + '/Library/Application Support/minecraft/launcher_profiles.json'
path_to_open = '/usr/bin/open'
path_to_minecraft = '/Applications/Minecraft.app'
# Enter your name as you want it to appear in-game
minecraft_name = raw_input('Choose your Minecraft name: ')