| title | tags | |||
|---|---|---|---|---|
The Best Cloud GPU Providers for Artificial Intelligence & Machine Learning  | 
  
  | 
  
  
    
      This file contains hidden or 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
    
  
  
    
  | # --- Input Data --- | |
| # Nominal GDP in USD | |
| nominal_GDP_current = 640.59 * 1e9 # Convert billion USD to USD | |
| # Population | |
| population = 46.65 * 1e6 # Convert million to individuals | |
| # Nominal GDP per Capita (Y) | |
| Y = nominal_GDP_current / population | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ip route show | grep -i default | awk '{ print $3}' | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # syntax=docker/dockerfile:1 | |
| # Keep this syntax directive! It's used to enable Docker BuildKit | |
| ################################ | |
| # PYTHON-BASE | |
| # Sets up all our shared environment variables | |
| ################################ | |
| FROM python:3.12.5-slim-bookworm as python-base | |
| # python | 
  
    
      This file contains hidden or 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
    
  
  
    
  | GITHUB_ORGANIZATION=my_github_org | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| # Check if the script is run with superuser privileges | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run this script as root (sudo)." | |
| exit 1 | |
| fi | |
| # Prompt the user for the target devices | |
| read -p "Enter the target devices (e.g., /dev/sdX /dev/sdY): " target_devices | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| F12::ToggleTerminal() | |
| ShowAndPositionTerminal() | |
| { | |
| WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS | 
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent
Let's say alice is a github.com user, with 2 or more private repositories repoN.
For this example we'll work with just two repositories named repo1 and repo2
https://github.com/alice/repo1
https://github.com/alice/repo2
You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.
  
    
      This file contains hidden or 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
    
  
  
    
  | // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
| "profiles": | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| ##### installing homebrew | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"; | |
| test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv); | |
| test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv); | |
| test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile; | |
| echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile; | |
| # installing zsh and oh-my-zsh | |
| brew install zsh |