$ if command -v nvidia-smi &> /dev/null; then
echo "NVIDIA GPU detected:"
nvidia-smi
else
echo "No NVIDIA GPU found or nvidia-smi not installed."
fi
NVIDIA GPU detected:
Mon Jun 24 16:50:40 2024
how to install
-
conda:
works great. no issues.
-
docker:
works well - unless you want to use the latest stable vscode version as of may 2024.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import sys | |
import pathlib | |
import subprocess | |
""" | |
github commits are restricted to 25-50 MiB, varying based on the push method [^1]. | |
to handle files beyond this limit, git lfs (large file storage) pointers are necessary, referencing an external lfs server [^2]. | |
however, this method incurs a monthly cloud storage fee to github [^3]. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webbrowser | |
import time | |
from playwright.sync_api import sync_playwright | |
URL = "https://www.amazon.jobs/en/search?___________INSERT YOUR URL HERE___________" | |
page = sync_playwright().start().chromium.launch().new_page() | |
page.goto(URL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { assert, log } from 'console' | |
import fs from 'fs' | |
import playwright from 'playwright' | |
const DOWNLOAD_PATH = 'downloads' | |
const main = async () => { | |
console.clear() | |
// init download dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { join } = require("path"); | |
module.exports = { | |
cacheDirectory: join(__dirname, ".cache", "puppeteer"), | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import * as cheerio from 'cheerio' | |
import { assert } from 'console' | |
import open from 'open' | |
const main = async () => { | |
let url = process.argv[2] | |
assert(process.argv.length !== 2, 'illegal number of arguments') | |
assert(url, 'missing url as argument') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyPDF2 import PdfFileReader, PdfFileWriter | |
import os | |
inputPath = "./solutions" | |
outputPath = "./extractedPages" | |
chosenPages = [1] | |
if not os.path.exists(outputPath): | |
os.makedirs(outputPath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from reportlab.pdfgen import canvas | |
from PyPDF2 import PdfFileWriter, PdfFileReader | |
import webbrowser | |
inputPath = "input.pdf" | |
outputPath = "output.pdf" | |
imgPath = "logo.png" | |
tempPath = "temp.pdf" | |
imgSize = 70 | |
x = 500 |
NewerOlder