Skip to content

Instantly share code, notes, and snippets.

View leimingyu's full-sized avatar

Leiming Yu leimingyu

View GitHub Profile
@leimingyu
leimingyu / git_cheatsheet.md
Last active October 17, 2023 12:46
git command cheatsheet
  • create a new branch
git checkout -b <new branch name>
  • list all branches
git branch -a
@leimingyu
leimingyu / cuda_notes.md
Last active March 18, 2024 20:04
cuda related notes

dump sass

cuobjdump -sass <your.exe>

Install/Remove CUDA Driver/Toolkit in Ubuntu

Make sure there is no nvidia related repo in source list.

@leimingyu
leimingyu / tensorflow_notes.md
Created November 11, 2022 14:49
tensorflow tricks
export model summary to a file
def sumprint(s):
    with open('modelsummary.txt','a') as f:
        print(s, file=f)

keras_model.summary(print_fn=sumprint)
@leimingyu
leimingyu / ai-related.md
Last active November 10, 2022 05:07
AI/ML/DL related
@leimingyu
leimingyu / windows_configurations.md
Last active March 25, 2024 20:00
windows_NittyGritty_configurations
@leimingyu
leimingyu / vim_cheat_sheet.md
Last active October 26, 2023 15:54
vim cheat sheet
  1. go to the begging of the line
type: 0
  1. go to the end of the line
type: $
  1. undo
@leimingyu
leimingyu / LinuxCmds.md
Last active January 8, 2023 17:16
some linux commands

Linux Commands

Change text to uppercase

$tr a-z A-Z < input.txt

Redirect stdout/stderr to file

stdout to file

@leimingyu
leimingyu / bashrc
Created September 8, 2022 01:50
some common configurations for ~/.bashrc file
#-----------------------------------------------------------------------------#
# some common configurations for ~/.bashrc file
#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
# some more ls aliases
#-----------------------------------------------------------------------------#
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
" use vim features
set nocompatible
"enable language-dependent indenting.
filetype plugin indent on
"confirm for saving file and readonly files
set confirm
set autowrite