Skip to content

Instantly share code, notes, and snippets.

View bartimusprimed's full-sized avatar

Bartimus bartimusprimed

  • AZ
View GitHub Profile
@bartimusprimed
bartimusprimed / install-tensorflow.sh
Created November 29, 2016 23:47 — forked from denti/install-tensorflow.sh
Install TensorFlow v 0.11 and later on EC2 instances with Ubuntu 16.04. Instances: p2.xlarge, g2.xlarge and bigger
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@bartimusprimed
bartimusprimed / iw_parse.py
Created January 11, 2021 13:48
Simple iw parser in python. Useful for getting wireless card capabilities on linux.
import os
from pprint import pprint
from typing import Dict
# mac_addr = re.compile(r"[A-z0-9]+[:][A-z0-9]+")
def get_iw_output() -> Dict:
delimiter = "phy#"
interfaces = [x.replace("\t", "").replace("\n", "") for x in os.popen("iw dev").readlines()]
@bartimusprimed
bartimusprimed / get.this
Last active February 17, 2022 13:08
instructions
get username