Skip to content

Instantly share code, notes, and snippets.

View Capitalmind's full-sized avatar
🎯
Focusing

Capitalmind Capitalmind

🎯
Focusing
View GitHub Profile
@thocell
thocell / 5 cheap (less than $5) and reliable vps comparison and how to earn $25 for free.md
Last active April 15, 2024 04:25
A comparison between 5 cheap VPS providers with plans below $5 per month and how to earn $25 for free.

Here is a basic comparison between 5 reliable and cheap VPS providers with plans below $5 per month.

VPS Companies


OVH Linode DigitalOcean Scaleway Vultr
Foundation 1999 2003 2011 2013 2014
Headquarters Roubaix (FR) Galloway, NJ (US) New York (US) Paris (FR) Matawan, NJ (US)
@pjobson
pjobson / plex_media_permissions_4_noobies.md
Last active November 16, 2024 00:45
Plex Media Permissions for Linux Noobies

Plex Media Permissions for Linux Noobies

There is no problem with being a noobie and I do not use the term to sligtht or disparage anyone.

This is a way to setup your permissions for running Plex in Linux. Different folks may use different methods.

The permissions concepts provided here apply to OSX, but the users and groups are controlled and modified differently, so much of this will not work properly. I think the command is dscl, but that could be out of date.

There are many ways to setup your permissions scheme in Linux, this methodology describes a way to do it, not everyone will like it, but it works for me, so whatever.

@ageis
ageis / .bashrc 02-25-2020
Last active May 10, 2024 02:34
@ageis's ~/.bashrc 🖥️ with numerous useful functions, aliases and one-liners. ⚠️ NOTE: many paths in sourced scripts and environment variables are specific to my system, but if you dig in I hope you'll find something you can use!
#!/bin/bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# kevin gallagher (@ageis) <[email protected]>
# normally I divide this into separate files: .bashrc, .bash_profile, .bash_aliases and .bash_functions (also .bash_logout), but it's all concatenated here.
ulimit -s unlimited
export MYUID=$(id -u)
export USER="$(id -un)"
if [[ "$TILIX_ID" ]] || [[ "$VTE_VERSION" ]]; then

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@denguir
denguir / cuda_install.md
Last active November 18, 2024 14:57
Installation procedure for CUDA / cuDNN / TensorRT

How to install CUDA / cuDNN / TensorRT on Ubuntu

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

from txtai import Embeddings, LLM
# Data to index
data = [
"US tops 5 million confirmed virus cases",
"Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg",
"Beijing mobilises invasion craft along coast as Taiwan tensions escalate",
"The National Park Service warns against sacrificing slower friends in a bear attack",
"Maine man wins $1M from $25 lottery ticket",
"Make huge profits without work, earn up to $100,000 a day"