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 | |
echo "SETTING UP NVIDIA" | |
sudo nvidia-smi -i 0 -pl 280 | |
sudo nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffsetAllPerformanceLevels[3]=1300 | |
sudo nvidia-settings -a [gpu:0]/GPUGraphicsClockOffsetAllPerformanceLevels[3]=-200 | |
sudo nvidia-settings -a [gpu:0]/GPUFanControlState=1 | |
sudo nvidia-settings -a [fan:0]/GPUTargetFanSpeed=70 | |
sudo nvidia-settings -a [fan:1]/GPUTargetFanSpeed=70 |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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/local/bin/bash | |
if [ $1 == "-f" ] | |
then | |
echo -e "$2: \e[92mbuild problem encountered\e[0m ❌" | |
exit 1 | |
elif [ $1 == "-s" ] | |
then | |
echo -e "$2: \e[92mbuild successful\e[0m ✅" | |
fi |
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/local/bin/bash | |
# /!\ make sure to use the latest version of bash | |
if [ -z "$1" ]; then | |
echo "usage: ./build <dir name>" | |
exit 1 | |
fi | |
declare ROOT_DIR="/Users/fabienrajao/Documents/freelance/zephyr" | |
declare PACK_DIR="$ROOT_DIR/packages" | |
declare -a commands=("next" "relay") |