Skip to content

Instantly share code, notes, and snippets.

@trietptm
Forked from Zer0xFF/0.osx.setup.sh
Created March 28, 2021 02:36
Show Gist options
  • Save trietptm/0f0b3299db9d8274ff97b9b0c1600cff to your computer and use it in GitHub Desktop.
Save trietptm/0f0b3299db9d8274ff97b9b0c1600cff to your computer and use it in GitHub Desktop.
My Essential Fresh OSX/Windows setup
xcode-select --install
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install b7zip cmake qt5 clang-format zsh mas watch git git-gui graphicsmagick ghostscript npm wget trash composer romkatv/powerlevel10k/powerlevel10k
brew install --cask vscodium vlc qt-creator keka db-browser-for-sqlite
brew install --cask adobe-acrobat-reader teamviewer
pip3 install requests
# pip3 install pandas pyodbc striprtf pathvalidate mysql-connector-python
# brew install r
# brew cask install rstudio zoomus
# brew install openjdk
# brew cask install intellij-idea clion ghidra
# sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >> ~/.zshrc
echo '' >> ~/.zshrc
echo '' >> ~/.zshrc
echo 'export PATH=/usr/local/opt/qt/lib/cmake:/usr/local/opt/qt/bin:$PATH' >> ~/.zshrc
echo 'VULKAN_SDK_VERSION=1.2.131.1' >> ~/.zshrc
echo 'export VULKAN_SDK=$HOME/Desktop/Play-Build/vulkansdk-macos-${VULKAN_SDK_VERSION}/macOS' >> ~/.zshrc
echo 'export PATH=$PATH:$HOME/usr/bin:~/bin' >> ~/.zshrc
sudo bash -c 'echo "/usr/local/bin/zsh" >> /etc/shells'
chsh -s /usr/local/bin/zsh
mas install 1295203466 1432731683
mkdir -p ~/bin/
wget https://gist.githubusercontent.com/Zer0xFF/de495ed5339090159c5856f6c70b97de/raw/clean_dls.sh -O ~/bin/1.clean_dls.sh -o clean_dls.sh
chmod +x ~/bin/clean_dls.sh
crontab -l | { cat; echo "5 13 * * 6 ~/bin/clean_dls.sh"; } | crontab -
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y cmake git vscodium hxd visualstudio2019community sqlitebrowser python3 php nodejs ghidra openssl vulkan-sdk vmwareworkstation microsoft-windows-terminal
choco install -y 7zip discord firefox vlc qbittorrent plex plexmediaserver adobereader teamviewer malwarebytes inkscape gimp
choco install -y steam epicgameslauncher goggalaxy
pip3 install requests stormssh
# pip3 pandas pyodbc striprtf pathvalidate mysql-connector-python
# choco install -y zoom
# choco install -y reflect-free
# sonarr service must be changed to run as "Local System", else it wont be able to access any files
# "Local System" seems unable to connect to the internet, running it as current user seems to fix that :/
choco install -y sonarr --pre
#!/bin/sh
date >> ~/logs/trashed
find ~/Downloads -mtime +10 -maxdepth 1 -exec ls -ltrd {} \; >> ~/logs/trashed
find ~/Downloads -mtime +10 -maxdepth 1 -exec trash {} \;
echo "\n\n" >> ~/logs/trashed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment