Skip to content

Instantly share code, notes, and snippets.

View kairos03's full-sized avatar
🛠️
Hard working

EunSeop Shin kairos03

🛠️
Hard working
View GitHub Profile
@fivemini
fivemini / csshX with ssh args
Created April 27, 2015 02:27
csshX with ssh args
csshX --login user --ssh_args '-i /path/to/key.pem' ddd.ddd.ddd.dd1 ddd.ddd.ddd.dd2
@superseb
superseb / cleanup.sh
Last active June 19, 2023 10:03
Cleanup host added as custom to Rancher 2.0
#!/bin/sh
# OUTDATED: please refer to the link below for the latest version:
# https://github.com/rancherlabs/support-tools/blob/master/extended-rancher-2-cleanup/extended-cleanup-rancher2.sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
@ThinGuy
ThinGuy / maas-nvidia-gpu-tags.sh
Last active November 28, 2023 20:33
MAAS xpath auto tags for popular Nvidia GPUs (Tesla V/P/M and Quadro M/P/K series. Assists with GPGPU passthrough
# Note - if you have a single cpu machine, change cpu:0 to just cpu at the start of the definition
maas ${MAAS_PROFILE} tags create \
comment="Enable passthrough for Nvidia Tesla V series GPUs on Intel" \
name=gpgpu-tesla-v-i \
definition='//node[@id="cpu:0"]/capabilities/capability/@id = "vmx" and //node[@id="display"]/vendor[contains(.,"NVIDIA")] and //node[@id="display"]/description[contains(.,"3D")] and //node[@id="display"]/product[contains(.,"Tesla V")]' \
kernel_opts="console=tty0 console=ttyS0,115200n8r nomodeset modprobe.blacklist=nouveau,nvidiafb,snd_hda_codec_hdmi,snd_hda_intel video=vesafb:off,efifb:off intel_iommu=on rd.driver.pre=pci-stub pci-stub.ids=$(awk '/Tesla V/{if (/10de/) print $1":"$2;print "10de:"$1}' /usr/share/misc/pci.ids|paste -sd,) rd.driver.pre=vfio-pci vfio-pci.ids=$(awk '/Tesla V/{if (/10de/) print $1":"$2;print "10de:"$1}' /usr/share/misc/pci.ids|paste -sd,) vfio_iommu_type1.allow_unsafe_interrupts=1 vfio-pci.disable_vga=1"
maas ${MAAS_PROFILE} tags create \
name=gpgpu-tesla
@kairos03
kairos03 / MLVC_Docker_Manual.md
Last active July 10, 2019 01:45
MLVC Docker Manual

MLVC_Docker Manual

0. Images

mlvc/pytorch

Installed applications

app ver
vim
git
####################################################
# KUBECTL BASH Initial setting
#
# Installed features
# - kubectl
# - kubectl auto complete
# - kubectl alias (k)
# - kubectl plugin manager (krew)
# - kubectl plubins (ns, ctx, konfig)
#