# Step 1: Run uninstaller
sudo /usr/bin/nvidia-uninstall
# Step 2: Stop fabric manager (H100)
sudo systemctl stop nvidia-fabricmanager.service
# Step 3: Remove kernel modules
sudo lsmod | grep -E 'Module|nvidia'
Making multiple MySQL versions work with Homebrew was tricky to say the least. Fortunately there are 2 new easy ways that I learned of to achieve this.
As @4unkur and @henrytirla commented below, there is this extremely easy to use app called DBngin, which lets you setup multiple databases (not only MySQL) simultaneously using different ports:
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
Use the -f option to git tag: | |
-f | |
--force | |
Replace an existing tag with the given name (instead of failing) | |
You probably want to use -f in conjunction with -a to force-create an annotated tag instead of a non-annotated one. | |
Example |
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
#!/usr/bin/env bash | |
# Authorize to GitHub to get the latest release tar.gz | |
# Requires: oauth token, https://help.github.com/articles/creating-an-access-token-for-command-line-use/ | |
# Requires: jq package to parse json | |
# Your oauth token goes here, see link above | |
OAUTH_TOKEN="34k234lk234lk2j3lk4j2l3k4j2kj3lk" | |
# Repo owner (user id) | |
OWNER="your-user-name" |
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
import sys | |
import subprocess | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--cluster', '-c', required=True, help="The TiDB cluster name") | |
args = parser.parse_args() | |
cluster = args.cluster | |
print(f"Cluster: {cluster}") |
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
#!/usr/bin/env python3 | |
#!coding:utf-8 | |
import argparse | |
import subprocess | |
import json | |
import os, sys, stat | |
import requests | |
def parse_args(): |
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
#!/usr/bin/env python | |
#-*- coding:utf8 -*- | |
# paramiko の ProxyCommandの Sample | |
# ------------------------------------------------- | |
# | |
# ~/.ssh/config | |
# | |
# Host proxy-server | |
# User hoge |
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
iconv -f SHIFT_JISX0213 -t UTF-8 < data.csv > data.UTF-8.csv |
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
import mnist | |
import numpy as np | |
import argparse | |
from cnn import CNN | |
import matplotlib.pyplot as plt | |
from termcolor import colored | |
import pickle | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-i", "--index", help="The index of a test image.", type=int, required=True) |
NewerOlder