Skip to content

Instantly share code, notes, and snippets.

/opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [90,0,0], thread: [32,0,0] Assertion `srcIndex < srcSelectDimSize` failed.
/opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [90,0,0], thread: [33,0,0] Assertion `srcIndex < srcSelectDimSize` failed.
/opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [90,0,0], thread: [34,0,0] Assertion `srcIndex < srcSelectDimSize` failed.
/opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [90,0,0], thread: [35,0,0] Assertion `srcIndex < srcSelectDimSize` failed.
/opt/conda/conda-bld/pytorch_1659484810403/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [90,0,0], thread: [36,0,0] Assertion `srcIndex < srcSelectDimSize` failed.
/opt/conda/conda-bld/pytorch_16594848104
split -b 99m file.tar.gz
cat x* > file.tar.gz
@nashid
nashid / config.ts
Created July 23, 2022 23:08 — forked from AmazingTurtle/config.ts
openai client
export const DEFAULT_ENGINE = 'davinci';
export const ENGINE_LIST = ['ada', 'babbage', 'curie', 'davinci', 'davinci-instruct-beta', 'curie-instruct-beta'];
export const ORIGIN = 'https://api.openai.com';
export const DEFAULT_API_VERSION = 'v1';
export const DEFAULT_OPEN_AI_URL = `${ORIGIN}/${DEFAULT_API_VERSION}`;
@nashid
nashid / split.md
Created July 22, 2022 06:12
split command

Split text file into smaller multiple text file using command line:

gsplit -l 6500 -d --additional-suffix=.txt $FileName file
  • -l 6500: split file into files of 6,500 lines each.
  • -d: numerical suffix. This will make the suffix go from 00 to 99 by default instead of aa to zz.
  • --additional-suffix: lets you specify the suffix, here the extension
  • $FileName: name of the file to be split.
@nashid
nashid / gist:49f32c77640344475ef63a2a9783b313
Created July 13, 2022 02:15
Author biographies in latex
open -a "Google Chrome" html-result-viewer/view-results.html
from zss import Node, simple_distance
import lxml.html
html1 = lxml.html.parse('file1.html')
html2 = lxml.html.parse('file1.html')
def tree_from_el(el):
node = Node(el.tag)
for child in el:
node.addkid(tree_from_el(child))
@nashid
nashid / arxiv-submission.md
Created June 2, 2022 20:25
Steps before arxiv submission
\documentclass[sigconf,review]{acmart}
@nashid
nashid / git-tag.md
Last active June 2, 2022 20:18
git tag

Creating Tags

git tag -a v0.2.5 -m "shiny-app v0.2.5"

Push Tags

git push origin --tags
@nashid
nashid / delete-large-file-from-history.md
Last active July 6, 2022 07:00
delete large file from git history