In this project, you will build a Peanut Butter and Jelly Sandwich (PB&J).
Before you build a PB&J, you will need to:
- Set up a clean table
- Get a clean dull knife
- Have some kitchen paper handy in case of errors
| az group create --location eastus2 --name MyResourceGroup | |
| az vm create -n myVM -g MyResourceGroup --image UbuntuLTS --generate-ssh-keys | |
| # Then search for myVM in Azure, get its ip and connect via ssh. | |
| # Once done you can destroy the resource group using: | |
| az group delete -n MyResourceGroup |
| python -c "from setuptools import setup, find_packages; print(find_packages())" |
| import time | |
| from pyautogui import typewrite | |
| import easygui | |
| text = easygui.textbox("Paste your text here, click on ok and then click in the field where you want the text to be pasted and wait for 10 seconds.", "Paste-into-anything-3000") | |
| time.sleep(10) | |
| typewrite(text, 0.01) |
| // Simply copy and paste the following script in your browser's console, | |
| // it will add an auto-scrolling button on the right part of the webpage you are visiting. | |
| (function() { | |
| let cssScrolling = "background-color: #f44336; border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; float:right; position:fixed; right:0; top:50%;"; | |
| let cssStopped = "background-color: #4CAF50; border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; float:right; position:fixed; right:0; top:50%;"; | |
| let btn = document.createElement("button"); | |
| var isScrolling = false; | |
| btn.innerHTML = "start scroll"; | |
| btn.style.cssText = cssStopped; |
| <html> | |
| <div class="background"> | |
| <div class="container"> | |
| <style> | |
| @import 'https://fonts.googleapis.com/css?family=Lato:300'; | |
| @import 'https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/css/weather-icons.min.css'; | |
| html, body, .background { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0; |
| stat -c '%n %a' * |
| #################### | |
| # KEYBOARD VERSION # | |
| #################### | |
| $shell = New-Object -ComObject WScript.Shell | |
| while(1) { | |
| $shell.sendkeys("{NUMLOCK}{NUMLOCK}") | |
| $time = Get-Date; |
| git reset HEAD "YOUR_FILE_PATH + YOUR_FILE_NAME" |
| // Open your browser's console, paste this script in it and press enter. | |
| // Reload the page using F5 to cancel the script's effects. | |
| async function autoScroll(scrollStartHeight, scrollSpeed, waitTimeBetweenScrolls){ | |
| let currentScrollHeight = scrollStartHeight; | |
| while (currentScrollHeight < document.body.scrollHeight) { | |
| currentScrollHeight += scrollSpeed; | |
| await new Promise(r => setTimeout(r, waitTimeBetweenScrolls)); | |
| window.scrollTo(scrollStartHeight, currentScrollHeight); | |
| } | |
| } |