sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`
Reboot to update the group assignment.
Now we can prepare the config. Let's create the file:
| import os | |
| import sys | |
| import wave | |
| # Get the path to the directory from the command-line argument | |
| if len(sys.argv) < 2: | |
| print("Usage: python script.py <directory>") | |
| sys.exit(1) | |
| root_dir = sys.argv[1] |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0" /> | |
| <title>base64 + lzma + iframe</title> | |
| <style>iframe{position:absolute;top:0;left:0;height:100vh;width:100%;border:none}</style> | |
| </head> | |
| <body> | |
| <iframe sandbox="allow-same-origin allow-downloads allow-scripts allow-forms allow-top-navigation allow-popups allow-modals allow-popups-to-escape-sandbox"></iframe> |
| // Generative art with Markdeep diagrams. | |
| // | |
| // Examples: https://twitter.com/doersino/status/1321191553403129857 | |
| // Markdeep: https://casual-effects.com/markdeep/features.md.html#basicformatting/diagrams | |
| // | |
| // Usage: | |
| // 1. Navigate to: https://ghpages.noahdoersing.com/markdeep-diagram-drafting-board/ | |
| // 2. Open the JavaScript console (if you need help, see https://webmasters.stackexchange.com/a/77337). | |
| // 3. Paste the contents of this file and press Enter. | |
| // 4. Type "art()" and press Enter. |
| import PIL, random, sys | |
| from PIL import Image, ImageDraw | |
| origDimension = 1500 | |
| r = lambda: random.randint(50,215) | |
| rc = lambda: (r(), r(), r()) | |
| listSym = [] | |
| def create_square(border, draw, randColor, element, size): | |
| if (element == int(size/2)): | |
| draw.rectangle(border, randColor) | |
| elif (len(listSym) == element+1): |
| """ | |
| Author: Cristian Di Pietrantonio | |
| Doodle scheduler | |
| """ | |
| import json | |
| import requests | |
| import datetime | |
| # Simple Google Drive backup script with automatic authentication | |
| # for Google Colaboratory (Python 3) | |
| # Instructions: | |
| # 1. Run this cell and authenticate via the link and text box. | |
| # 2. Copy the JSON output below this cell into the `mycreds_file_contents` | |
| # variable. Authentication will occur automatically from now on. | |
| # 3. Create a new folder in Google Drive and copy the ID of this folder | |
| # from the URL bar to the `folder_id` variable. | |
| # 4. Specify the directory to be backed up in `dir_to_backup`. |
List of oldest supported version of top 10 Linux Distros and their glibc version according to distrowatch.com.
Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.
If CentOS 6 and 7 are eliminated, the oldest glibc is 2.23 in Ubuntu and Slackware.
| function gmailAutoarchive() { | |
| var delayDays = 2; // will only impact emails more than 48h old | |
| var maxDate = new Date(); | |
| maxDate.setDate(maxDate.getDate()-delayDays); // what was the date at that time? | |
| // Get all the threads labelled 'autoarchive' | |
| var label = GmailApp.getUserLabelByName("autoarchive"); | |
| var threads = label.getThreads(0, 400); | |