This copy of the script is no longer updated, but I'll leave it here for reference.
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
<?php | |
function bar_form($form, &$state) { | |
$form['bar'] = array( | |
'#type' => 'textfield', | |
'#title' => t('Bar'), | |
'#autocomplete_path' => 'taxonomy/autocomplete/field_bar_term', // Field name here. | |
'#element_validate' => array('foo_taxonomy_autocomplete_validate'), | |
); | |
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
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* override base tab color */ | |
:root:root { | |
--color-100: white; | |
} | |
/* Plain */ | |
.tabbrowser-tab { | |
--color-main: var(--color-100); |
Caution: This requires some amount of technical knowledge about how matrix/riot works.
For reference, the original grey color scheme in Riot had a primary color of #595959 and a secondary color of #ececec
- Open the developer tools by typing
/devtools
- Click the "Explore Account Data" button
- Click the "im.vector.web.settings" button (if you don't have this button, use the instructions below instead)
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 should be the public-facing name (ie: dns name) | |
HOME_SERVER_URL="https://matrix.org" | |
# The room ID is NOT the room alias. The ID can be found at the bottom of the room settings dialog in riot-web | |
ROOM_ID="!AbCDef823s:matrix.org" | |
# This is your user ID and access token. The access token must match the user. | |
USER_ID="@turt2live:matrix.org" # The home server should match this domain as well (ie: t2l.io as a HS should be :t2l.io in the user) | |
ACCESS_TOKEN="token_here" |
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
ymaps.ready(function () { | |
ymaps.geolocation.get({ provider: 'yandex' }).then(function(result) { | |
var data = result.geoObjects.get(0).properties.get('metaDataProperty').GeocoderMetaData; | |
var administrativeAreaName = data.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName; // region | |
if ('SubAdministrativeArea' in data.AddressDetails.Country.AdministrativeArea) { | |
var localityName = data.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName; // city | |
} else { | |
var localityName = data.AddressDetails.Country.AdministrativeArea.Locality.LocalityName; // city |
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
#!/bin/bash | |
################################################################### | |
# Script for check new version of Element from github | |
# and download new version, if update is avaiable | |
# | |
# https://gist.github.com/MurzNN/ee64f98ab2e71b886c41d55594e5dd9e | |
# | |
################################################################### |
Hello, i am try to install protobuf + grpc + php, here is how i do
sudo apt install php-dev protobuf-compiler protobuf-compiler-grpc
sudo pecl channel-update pecl.php.net
sudo pecl install grpc protobuf
sudo -i
cd /etc/php/7.1/mods-available
echo "extension=protobuf.so" > protobuf.ini
OlderNewer