A guide to setup your WSL with Hyper and zsh
- Follow the very thorough instructions here
- Download Hyper.js here - I went with the 'hyperblue' theme.
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| # Find the latest version on https://github.com/creationix/nvm#install-script | |
| $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
| # Add in your ~/.zshrc the following: | |
| export NVM_DIR=~/.nvm | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
| $ source ~/.zshrc |
| /* | |
| Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired). | |
| This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working). | |
| Instructions: | |
| 1) The code may need to be modified depending on the language of your Twitter web site: | |
| * For English language web site, no modification needed. | |
| * For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
| * For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
| //Random function | |
| function rand(min, max) { //Random Function | |
| return Math.floor(Math.random() * (max - min) + min); | |
| } | |
| //Ball8 command | |
| } else if (msg.body.startsWith('!ball8')) { //Ball8 fun game | |
| var args = msg.body.split(' '); | |
| var bola8palavras = ["It's right", "It definitely is", "Without a doubt", "Yes, definitely", "You can count on it", "In my opinion, yes", "Probably", "It seems so", " Yes "," Signs point to yes "," Vague answer try again "," Ask again later "," I better not tell you now "," I can't predict now "," Focus and ask again " , "Don't count on it", "My answer is no", "My sources say no", "Looks like no", "Very Doubtful"]; | |
| if (args.length >= 2) { |