Known Issues: On High Sierra there are problems related to the screen brightness and sleep issues.
This file contains 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 | |
if [ "$1" = "-s" ] || [ "$1" = "--show" ]; then | |
show=true | |
else | |
show=false | |
fi | |
if $show || [ "$1" = "-v" ] || [ "$1" = "--verbose" ]; then | |
verbose=true |
This file contains 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
# Install R | |
sudo apt update | |
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev | |
# Install RStudio | |
cd ~/Downloads | |
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb | |
sudo gdebi rstudio-1.2.5001-amd64.deb | |
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile |
This file contains 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
# Before running this script, go to Quiver and export all notebooks into json/quiver format | |
# Place them in a folder called `exports` in the same directory as this script. | |
# In terminal, run `ruby quiver-to-evernote.rb` | |
# Check for presence of required gems. | |
# If not present, install the gems | |
["rubygems", "sanitize"].each do |gem| | |
begin | |
gem "#{gem}" | |
rescue Gem::LoadError | |
`gem install #{gem}` |
This file contains 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 | |
sudo apt-get install -y libcurl4-openssl-dev libxml2-dev libssl-dev | |
sudo apt-get install -y r-base r-base-dev | |
sudo apt-get install -y gdebi-core | |
wget https://download2.rstudio.org/rstudio-server-1.0.136-amd64.deb | |
sudo gdebi --non-interactive rstudio-server-1.0.136-amd64.deb | |
# rstudio will be running on port 8787 |
Some Time there is a shallow update not allowed issue in your cloned GIT repo.
This means that you have to unshallow your repository. To do so you will need to add your old remote again.
git remote add origin <path-to-old-remote>
After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).
git fetch --unshallow origin
And now you should be able to push into your new remote repository.
This file contains 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/osascript | |
on run argv | |
set dir to quoted form of (first item of argv) | |
if application "iTerm" is running then | |
set wasRunning to true | |
else | |
set wasRunning to false | |
end if |
- Install mkvtoolsnix.
brew install --with-qt5 mkvtoolnix
- Use mkvinfo to get the audio track IDs that you want.
mkvinfo *.mkv
- Note that the audio track IDs are not the track numbers. Check the man page of mkvmerge or mkvinfo for more details.
- Use mkvmerge to create a copy of the mkv with ONLY the desired tracks using
--audio-tracks
. mkvmerge -o out.mkv -a 2 orig.mkv
This file contains 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
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
NewerOlder