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
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js | |
index 4620d1c43..bbc4b7edc 100644 | |
--- a/app/javascript/mastodon/features/compose/components/compose_form.js | |
+++ b/app/javascript/mastodon/features/compose/components/compose_form.js | |
@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent { | |
const fulltext = this.getFulltextForCharacterCounting(); | |
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0; | |
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); | |
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 5000 || (isOnlyWhitespace && !anyMedia)); |
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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function deleteAllMails(){ | |
for (var i = 0;i<100;i++){ | |
setTimeout(function(){document.getElementById("selectAll").click()},1000); | |
setTimeout(function(){document.getElementsByClassName("moveElement-btn-delete")[0].click()},3000); | |
setTimeout(function(){document.getElementById("confirmModalBtn").click()},5000); | |
await sleep(10000) |
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
""" | |
This component provides support to the Ring Door Bell camera. | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/camera.ring/ | |
""" | |
import asyncio | |
from datetime import datetime, timedelta | |
import pytz | |
import dateutil.parser |
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
from subprocess import Popen, PIPE, call | |
import logging | |
import logging.handlers | |
import sys | |
import os | |
# NOTE: this script assumes a debian system and requires the wmctrl and xdotool packages | |
# sudo apt-get install wmctrl xdotool | |
# NOTE: To get [Alt + ` ]to register on Elementary OS requires removing the keybinding via dconf editor for switch-group/switch-group-backward |
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
package config | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"io/ioutil" | |
"github.com/CodeCollaborate/Server/utils" |
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
import logging | |
import sys | |
from urllib.parse import urljoin | |
import asyncio | |
import aiohttp | |
from aiohttp import web | |
TARGET_SERVER_BASE_URL = 'http://127.0.0.1:8888' |
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
[Match] | |
Name=host* | |
[Network] | |
DHCP=yes |