From: Edward Delaporte Date: Fri, 11 Sep 2020 15:07:31 +0000 (-0500) Subject: Merge branch 'master' of github.com:edthedev/dotfiles X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/3b36f7054b70729142504025676857307300c392?hp=2a120f0ebc2f4e638ebbb297e959b3da63531685 Merge branch 'master' of github.com:edthedev/dotfiles --- diff --git a/bootstrap.sh b/bootstrap.sh index acd0ba8..c99f8ee 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -8,9 +8,6 @@ # You can scp just this file to the destination host, # and then run it. -# sudo apt-get install zsh -# TODO: CURL me... - ## Setup Git and Vim if [ ! -d ~/dotfiles ]; then sudo apt-get install git install vim diff --git a/bootstrap_pi.sh b/bootstrap_pi.sh new file mode 100755 index 0000000..d192d9d --- /dev/null +++ b/bootstrap_pi.sh @@ -0,0 +1,72 @@ +# Reminder to future self: +# Step 0: git clone https://github.com/edthedev/dotfiles +# Step 1: Run this bootstrap script. + +echo "Git, vi are already installed." + +mkdir -p ~/.installed + +## Setup Git and Vim +if [ ! -d ~/dotfiles ]; then + sudo apt-get install git vim-nox + cd ~; git clone git@github.com:edthedev/dotfiles.git +fi + +# sudo apt-get install vim-nox + +if [ ! -f ~/.vimrc ]; then + git config --global user.email "edward@delaporte.us" + git config --global user.name "Edward Delaporte" + git config --global core.editor /usr/bin/vim + ln -s ~/dotfiles/vimrc ~/.vimrc +fi + +if [ ! -f ~/.installed/i3 ]; then + sudo apt-get install i3 + touch ~/.installed/i3 +fi + +## Setup PowerShell +if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then + sudo apt-get install powershell + chsh --shell /usr/bin/pwsh + mkdir -p ~/.config/powershell/ + ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1 +fi + +## Create SSH Keys +if [ ! -f ~/.ssh/id_rsa ]; then + ssh-keygen +fi + +## Setup Remote Access +# if [ ! -f ~/id_rsa.pub ]; then +# cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub +# chmod go+r ~/id_rsa.pub +# fi + +## Setup Screen +if [ ! -f ~/.screenrc ]; then + sudo apt-get install screen + ln -s ~/dotfiles/screenrc ~/.screenrc +fi + +## Setup Vundle for Vim +if [ ! -d ~/.vim/bundle ]; then + git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim + vim +BundleInstall +qall +fi + +if [ ! -d ~/.installed/code ]; then + # sudo apt install snapd + # sudo snap install --classic code + wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add - + curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash + touch ~/.installed/code +fi + +echo "https://github.com/settings/keys" +echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git" +cat ~/.ssh/id_rsa.pub + +ls -al ~/.installed diff --git a/install/ansible.ps1 b/install/ansible.ps1 new file mode 100644 index 0000000..965952f --- /dev/null +++ b/install/ansible.ps1 @@ -0,0 +1 @@ +docker up ansible/ansible \ No newline at end of file diff --git a/install/retropi.ps1 b/install/retropi.ps1 new file mode 100644 index 0000000..d0b9518 --- /dev/null +++ b/install/retropi.ps1 @@ -0,0 +1,7 @@ + +## TODO: Would be clever to make this a DSC module: https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart?view=powershell-7 +Write-Host "Adding ability to switch Joystick" +# https://github.com/meleu/RetroPie-joystick-selection +Write-Host "Enable SSH first via Raspi-Config" +ssh pi@retropi -C 'wget -O- "https://raw.githubusercontent.com/meleu/RetroPie-joystick-selection/master/install.sh" | sudo bash' +Write-Host "Now launch the script via RetroPi Setup - Configuration Tools - Joystick selection" \ No newline at end of file diff --git a/install_art.sh b/install_art.sh new file mode 100755 index 0000000..caa2c83 --- /dev/null +++ b/install_art.sh @@ -0,0 +1,8 @@ +mkdir -p ~/.installed + +if [ ! -f ~/.installed/gimp ]; then + sudo apt-get install gimp + touch ~/.installed/gimp +fi + +ls -al ~/.installeear diff --git a/this.code-workspace b/this.code-workspace new file mode 100644 index 0000000..d6801ba --- /dev/null +++ b/this.code-workspace @@ -0,0 +1,31 @@ +{ + "folders": [ + { + "path": "." + }, + { + "path": ".." + } + ], + "settings": { + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#65c89b", + "activityBar.activeBorder": "#945bc4", + "activityBar.background": "#65c89b", + "activityBar.foreground": "#15202b", + "activityBar.inactiveForeground": "#15202b99", + "activityBarBadge.background": "#945bc4", + "activityBarBadge.foreground": "#e7e7e7", + "statusBar.background": "#42b883", + "statusBar.border": "#42b883", + "statusBar.foreground": "#15202b", + "statusBarItem.hoverBackground": "#359268", + "titleBar.activeBackground": "#42b883", + "titleBar.activeForeground": "#15202b", + "titleBar.border": "#42b883", + "titleBar.inactiveBackground": "#42b88399", + "titleBar.inactiveForeground": "#15202b99" + }, + "peacock.color": "#42b883" + } +} \ No newline at end of file