brew install colima docker
colima start --cpu 4 --memory 4
# colima start (after computer restart)
# cd repo
ddev config --project-type=drupal9 --docroot=web --create-docroot
ddev start
# import db
ddev import-db --file=database.sql.gz
# uninstall modules
This file contains 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
YouTube IFRAME embed for faster page loads in privacy enhanced mode | |
https://magnushelander.se/youtube-no-cookies-embed-privacy/ |
This is a simple way to implement hCaptcha with Livewire component.
NOTE: please read this carefully, and adjust variable names, etc to your use case
Before using this implementation, add their JS library first on your page
<script src="https://js.hcaptcha.com/1/api.js?hl=en" async defer></script>
- Setup Docker
sudo apt-get update
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Run post-install step: https://docs.docker.com/engine/install/linux-postinstall/
- Setup Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1- Go to: https://www.facebook.com/{your_id_or_username}/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE
You can use Filter to choose year or month.
2- Open the console and run the following JavaScript code and wait:
setInterval(() => { for (const Button of document.querySelectorAll('div[aria-label="Action options"]')) { Button.click() document.querySelector('div[role="menuitem"]').click() } }, 1000)
This file contains 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
# Open application (or file with application) | |
alias vscode='open -a "Visual Studio Code"' | |
# Shortcut for editing this file | |
alias envedit='vscode /Users/goranlilja/.zshenv' | |
# Hide/show desktop icons | |
alias hideicons='defaults write com.apple.finder CreateDesktop false; killall Finder' | |
alias showicons='defaults write com.apple.finder CreateDesktop true; killall Finder' | |
# Jump directly to directories | |
alias code='cd ~/Code' | |
# Delete Xcode's Derived Data folder |
This file contains 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
<html> | |
<head> | |
<title>Teachable Machine Image Model with upload</title> | |
</head> | |
<body> | |
<img id="imagePreview" style="height: 300px;" /> | |
<input id="imageUpload" type="file" /> | |
<div>Teachable Machine Image Model with upload</div> | |
<div id="label-container"></div> |
This file contains 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
name: Deploy to Github Pages | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
name: Deploy Application | |
runs-on: ubuntu-latest |
Description of Chrome Channels
- Install Chrome or Chrome Dev
- Note: Chrome and Chrome Dev use the same profile on a Mac
- Setup 2 profiles:
- Browsing: It may contain bookmarks, personal settings and extenstions
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Alpine.js Todo Demo</title> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.js" defer></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/ui@latest/dist/tailwind-ui.min.css"> | |
<meta charset="utf-8"> | |
</head> |
NewerOlder