Version 0.1 — 2025
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
| function changeColorOfSuggestedForYou(parentLevels = 0) { | |
| let spans = document.querySelectorAll('span[dir="auto"]'); | |
| for (let span of spans) { | |
| if (span.textContent.trim() === 'Suggested for you') { | |
| span.style.color = 'red'; | |
| let parent = span; | |
| for (let i = 0; i < parentLevels; i++) { | |
| parent = parent.parentElement; | |
| if (parent && parent.tagName.toLowerCase() === 'div') { |
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
| Prefece: BookStack is seemingly a normal laravel app. | |
| This means you need to check it out to a directory someplace, | |
| install its deps, config the DB, and point a symlink apache app to the 'public' sub directory. | |
| Create a new OSUser for this app to live in, it makes deployment a little easier. | |
| Shell commands, | |
| mkdir ~/src | |
| cd ~/src |
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
| <a href="//dobbs.town/@Homoevolutis0">Mastodon</a>"><a rel="me" href="https://dobbs.town/@Homoevolutis0">Mastodon</a></a></p><p> </p><p><a rel="me" href="https://dobbs.town/@Homoevolutis0">Mastodon</a></p></div> |
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
| import requests | |
| # What you want to search, lower case | |
| SEARCH_TERM = "birdsite" | |
| # Your home instance URL | |
| INSTANCE_URL="https://opalstack.social" | |
| # Number of accounts to search before stop | |
| MAX_OFFSET = 10000 | |
| def grab_instance_domains(): |
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
| import requests | |
| # What you want to search, lower case | |
| SEARCH_TERM = "anthropology" | |
| # Your home instance URL | |
| INSTANCE_URL="https://opalstack.social" | |
| # Number of accounts to search before stop | |
| MAX_OFFSET = 10000 | |
| def spider(): |
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
| curl -X POST --header "Content-Type:application/json" --header "Authorization: Token YOURAPITOKENHERE" -d'[{"osuser": "OSUSER-UUID", "name": "fastapi", "type": "CUS", "installer_url": "https://raw.githubusercontent.com/opalstack/installers/master/core/fastapi/install.py"}]' https://my.opalstack.com/api/v1/app/create/ |
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
| #include <Wire.h> | |
| #include "SparkFunBME280.h" | |
| BME280 mySensor; | |
| #include <LiquidCrystal.h> | |
| //LCD pin to Arduino | |
| const int pin_RS = 8; | |
| const int pin_EN = 9; | |
| const int pin_d4 = 4; | |
| const int pin_d5 = 5; |
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
| # A simple 'hello world' application with python uwsgi and nginx | |
| # Make directory and files | |
| # The directory structure: | |
| # ./ | |
| # |-- app/ | |
| # | |-- hello.py | |
| # | |-- hello_nginx.conf | |
| if [ -d app ]; then | |
| rm -rf app |
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
| from django.core.exceptions import ValidationError | |
| from django.core.validators import validate_ipv46_address | |
| from django.utils.deconstruct import deconstructible | |
| from django.utils.encoding import force_text | |
| from django.utils.translation import ugettext_lazy as _ | |
| import re | |
| @deconstructible | |
| class DomainNameValidator(object): |
NewerOlder