<activity android:name=".PackageInstallerActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" />
<data android:scheme="file" />
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
{"text": "Here is my response ok","links":["link1"]} |
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 | |
// https://github.com/lupomontero/psl/blob/master/index.js | |
class Domain | |
{ | |
protected ?string $input = null; | |
protected $tld = null; | |
protected $sld = null; | |
protected $domain = null; |
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
npm install react-i18next i18next --save | |
npm install i18next-http-backend i18next-browser-languagedetector --save | |
Create i18nextConf.js in a root: | |
``` | |
import i18n from 'i18next'; | |
import { initReactI18next } from 'react-i18next'; | |
import Backend from 'i18next-xhr-backend'; | |
import LanguageDetector from 'i18next-browser-languagedetector'; |
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
const required = value => (value || typeof value === 'number' ? undefined : 'Required'); | |
const maxLength = max => value => | |
value && value.length > max ? `Must be ${max} characters or less` : undefined; | |
const maxLength15 = maxLength(15); | |
export const minLength = min => value => | |
value && value.length < min ? `Must be ${min} characters or more` : undefined; | |
export const minLength2 = minLength(2); | |
const number = value => | |
value && isNaN(Number(value)) ? 'Must be a number' : undefined; | |
const minValue = min => value => |
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
$url = ''; // Change this | |
$apiKey = ''; // Change this | |
$secretKey = ''; // Change this | |
$salt = mt_rand(); | |
$signature = base64_encode(hash_hmac('sha256', $salt, $secretKey, true)); | |
$url = sprintf('%sindex.php?/News/NewsItem/ListAll/1&apikey=%s&salt=%s&signature=%s', | |
$url, | |
$apiKey, |
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 apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install redis-server | |
sudo apt-get install php-redis | |
# Cache | |
sudo nano /etc/redis/redis.conf | |
# add | |
maxmemory 128mb | |
maxmemory-policy allkeys-lru |
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
git branch -D smsme-431/Update_docs_in_swagger | |
git fetch origin smsme-431/Update_docs_in_swagger | |
git reset --hard FETCH_HEAD | |
git clean -df |
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
CouchDB | |
======= | |
sudo add-apt-repository ppa:jderose/couchdb-1.7.0 | |
sudo apt-get update | |
sudo apt-get remove couchdb couchdb-bin couchdb-common -yf | |
sudo apt-get install couchdb -y | |
sudo ufw allow 5984 | |
sudo ufw allow 6984 |
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
ActiveMQ | |
******** | |
# Github: https://github.com/stomp-php/stomp-php | |
composer require grimkirill/stomp | |
# Apache ActiveMNQ |
NewerOlder