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
# Install Homebrew (https://brew.sh/) | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Install multipass via homebrew | |
brew install --cask multipass | |
# Create a Multipass VM instance | |
# 'jammy' is Ubuntu 22.04LTS. | |
# Please note that the alias cannot start with a number so '42berlin' is not valid | |
# Default username is ubuntu: you can use your Linux skills to create a different one later on if you want |
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
# Description: This script will scrape a website and save all the paths to a file. | |
# Usage: It will also exclude any paths that end with the extensions specified in the --exclude-extensions parameter. | |
# It will also limit the number of links to visit per page to the number specified in the --max_links_per_page parameter. | |
# It could be used to test a website for broken links. | |
# Be careful not to overload the website with requests. You could get banned. | |
# Example: python ValidateLinksScraping.py https://webscraper.io/test-sites --max_links_per_page 100 --exclude-extensions pdf,jpg,png | |
# Author: Kuba Andrysek | |
# Website: https://kubaandrysek.com | |
# Date: 2023-05-34 |
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
// Note that this script will remove all permissions of all files and subfolders | |
// (including files in subfolders) of the given folder | |
// https://drive.google.com/drive/folders/abcdefgh | |
const id = "abcdefgh"; | |
function start() { | |
const folder = DriveApp.getFolderById(id); | |
getSubFolders(folder); | |
// At the end, reset for parent folder |
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
#!/usr/bin/env python | |
import argparse | |
import sys | |
import jinja2 | |
import markdown | |
TEMPLATE = """<!DOCTYPE html> | |
<html> |