Skip to content

Instantly share code, notes, and snippets.

View jbnunn's full-sized avatar
:octocat:

Jeff Nunn jbnunn

:octocat:
View GitHub Profile
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active January 23, 2025 16:11
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@jbnunn
jbnunn / update.py
Last active December 4, 2022 13:57
Update a Lambda function from the command line (Mac OS X)
"""
$ python update.py
Updates an AWS Lambda function with all the latest goodies.
To use, create a directory containing all the files and requirements required to
execute your Lambda function. Supply the directory, ARN of your Lambda function,
and AWS profile (defaults to `default`) as arguments to `update.py`, e.g.,
python update.py <directory> <lambda_arn> <aws_profile>
@jbnunn
jbnunn / requirements.txt
Last active February 9, 2023 13:11
Conda DL environment for Mac M1/M2 (PyTorch)
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-arm64
# Set the platform to arm64 with `conda env config vars set CONDA_SUBDIR=osx-arm64`
# For HuggingFace see https://huggingface.co/docs/accelerate/usage_guides/mps
accelerate=0.16.0=pyhd8ed1ab_0
aiohttp=3.8.3=pypi_0
aiosignal=1.3.1=pypi_0
async-timeout=4.0.2=pypi_0