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 | |
if ! which jetbrains-toolbox &> /dev/null ; then | |
sudo apt-get install dos2unix | |
md_tburl=$(curl -I "https://data.services.jetbrains.com/products/download?code=TBA&platform=linux" | dos2unix | grep Location: | cut -d" " -f2) | |
md_tbfile=$(echo $md_tburl | cut -d/ -f5 | cut -d. -f1-3) | |
cd ~/Downloads/ || exit 1 | |
wget -c $md_tburl || exit "Could not download Jetbrains Toolbox." | |
tar -xzvf $md_tbfile.tar.gz | |
sudo cp $md_tbfile/jetbrains-toolbox /usr/bin/jetbrains-toolbox | |
jetbrains-toolbox && |
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 | |
FOLDER={{REPLACE WITH BACKUP FOLDER ID}} | |
KEEP=5 | |
gdrive list --no-header -q "'$FOLDER' in parents" | cut -d " " -f1 | tail -n +$(expr $KEEP + 1) | xargs -n1 -I id gdrive delete id |
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
Put the following file in /etc/network/if-up.d/ under any name. Make sure to chmod+x. |
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
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) | |
/******/ return installedModules[moduleId].exports; |