Skip to content

Instantly share code, notes, and snippets.

View Bleyddyn's full-sized avatar

Bleyddyn Bleyddyn

View GitHub Profile
@Bleyddyn
Bleyddyn / build_pytorch_rpi.sh
Created November 21, 2021 15:17
Building pytorch 1.11 on a Raspberry Pi 3B
# Steps needed to build and install pytorch (version 1.11.0a0+gitbe281fc)
# on a Raspberry Pi 3 Model B Rev 1.2, running Raspbian 10 (Buster)
# Linux malpi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
export NO_CUDA=1
export NO_DISTRIBUTED=1
export NO_MKLDNN=1
export NO_NNPACK=1
export NO_QNNPACK=1
export NO_XNNPACK=1
@Bleyddyn
Bleyddyn / github_stars.py
Last active August 14, 2023 10:56
Prototype of a simple way of keeping notes for starred Github repos
""" Prototype of a simple way of keeping notes for starred Github repos.
"""
import requests
import json
import argparse
import os
import time
from collections import defaultdict
def fetchJson( user ):
@Bleyddyn
Bleyddyn / pythonTitleCommand.sh
Last active February 12, 2018 22:09
Convert string to title case, python single command line
#python -c "import sys; print( '{}'.format( sys.stdin.read().title() ) )"
#or
alias title_case 'python -c "import sys; print( sys.stdin.read().title() )"'
# It seems python does the right thing by ignoring formatting commands in the print statement