Skip to content

Instantly share code, notes, and snippets.

View zhw12's full-sized avatar

Hanwen Zha zhw12

View GitHub Profile
@zhw12
zhw12 / gpu_info.py
Created April 1, 2021 19:13
GPU info logging and scheduling
"""GPU info logging and scheduling"""
import gpustat
import time
import argparse
import json
import logging
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
@zhw12
zhw12 / gist:e2e9665fc446678c0fbfd11a025d15c6
Last active December 30, 2018 16:33 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
  • ↓ : Down arrow key
@zhw12
zhw12 / # gcc - 2017-07-06_16-30-56.txt
Created July 7, 2017 00:18
gcc on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for gcc on macOS 10.11.6
Build date: 2017-07-06 16:30:56