- Tim Paine @timkpaine
- Andrew Stein @texodus
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
sudo defaults write /Library/Preferences/com.apple.airport.bt.plist bluetoothCoexMgmt Hybrid |
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
Example of perspective multiworker webserver (independent perspective instances) | |
```bash | |
uvicorn server:app --workers 4 | |
``` |
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
Array.from(document.getElementsByClassName("offer-cta")).map((elem) => elem.click()) | |
Array.from(document.getElementsByClassName("axp-offers__global__merchantOfferCta___qKBIE")).map((elem) => elem.click()) |
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
document.querySelectorAll('mds-icon[type="ico_add_circle"]').forEach((x) => x.click()) |
You want a server block in nginx
like this
server {
server_name <your fqdn>;
root /usr/share/nginx/html;
# allow certbot
location /.well-known {
autoindex on;
root /opt/www-pub/;
edit /usr/syno/share/nginx/Portal.mustache to remove \.local
instances
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
license: apache-2.0 |
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
license: apache-2.0 | |
height: 800 |
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
def interval_to_chron(interval, start_time): | |
if interval == Interval.MINUTELY: | |
# simple | |
return '*/1 * * * *' | |
elif interval == Interval.FIVE_MINUTES: | |
# simple | |
'*/5 * * * *' | |
elif interval == Interval.TEN_MINUTES: | |
return '{start_minute_mod_ten}-59/10 * * * *'.format(start_minute_mod_ten=start_time.minute % 10) | |
elif interval == Interval.THIRTY_MINUTES: |
NewerOlder