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
[Desktop Entry] | |
Version=1.0 | |
Name=Firefox Beta | |
Comment=Browse the World Wide Web | |
GenericName=Web Browser | |
X-GNOME-FullName=Firefox Beta Web Browser | |
Exec=/opt/firefox-beta/firefox %u | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application |
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
const { extractText } = require('doxtract'); | |
if (process.argv.length <= 2) { | |
console.log(`Usage: ${__filename} path/to/doc`); | |
process.exit(-1); | |
} | |
const doc = process.argv[2]; | |
function countWords(text) { |
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
const fs = require('fs'); | |
if (process.argv.length <= 2) { | |
console.log('Usage: ' + __filename + ' path/to/directory'); | |
process.exit(-1); | |
} | |
const path = process.argv[2]; | |
fs.readdir(path, (err, items) => { |
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/sh | |
# delete local user files and empty trash | |
find /home/$USER/* -maxdepth 1 \! \( -name Documents -o -name Pictures -o -name Music -o -name Downloads -o -name Desktop -o -name Videos -o -name Public -o -name '\.*' -o -name Templates -o -name Examples -o -name Public \) -exec sudo rm -rf '{}' \; | |
sudo rm -rf /home/$USER/Documents/* /home/$USER/Pictures/* /home/$USER/Music/* /home/$USER/Downloads/* /home/$USER/Desktop/* /home/$USER/Videos/* /home/$USER/Public/* | |
rm -rf ~/.local/share/Trash/* | |
# remove git config | |
git config --global --unset-all user.name | |
git config --global --unset-all user.email |
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/sh | |
sudo apt update | |
# git | |
sudo apt install git -y | |
# cUrl | |
sudo apt install curl -y | |
# nvm node npm | |
sudo -k | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" |