https://aboutreact.com/getting-sha1-fingerprint-for-google-api-console/
https://stackoverflow.com/questions/54868611/how-to-get-sha-1-key-in-react-native-cli
/* Basic example of saving cookie using axios in node.js and session's recreation after expiration. | |
* We have to getting/saving cookie manually because WithCredential axios param use XHR and doesn't work in node.js | |
* Also, this example supports parallel request and send only one create session request. | |
* */ | |
const BASE_URL = "https://google.com"; | |
// Init instance of axios which works with BASE_URL | |
const axiosInstance = axios.create({ baseURL: BASE_URL }); |
sudo apt-get install virtualbox-guest-dkms
copy and páte:
vitualbox => setting of os => general => advanced tab => select 2 Bidirectional
in tool bar ubuntu => devices => insert guest addition cd image...
in side tool bar of ubuntu, it has cd ( vbox gas ), open it => right top corner => run software => open cmd type: reboot =>done
For IOS:
create bundle id at the page: http://developer.apple.com/ => Identifier
create New app in https://appstoreconnect.apple.com/apps
run command: expo build:ios
Fill in apple account info, choose build mode to ipa, don't choose expo auto generate mode because it will generate different bundle id
When the build is done, it will be pushed to the expo page (the expo account is logged in at the terminal console).
const url = 'https://test/com?x=a&y=b#old&p=8397543#dsf43';
function getUrlVars(url) {
var vars = {};
var parts = url.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
console.log(getUrlVars(url)['x']) // a
import React, { useState, useCallback } from "react";
import "./styles.css";
import { debounce } from "lodash";
export default function App() {
const [userQuery, setUserQuery] = useState("");
const sendQuery = query => console.log(`Querying for ${query}`);
const delayedQuery = useCallback(debounce(q => sendQuery(q), 500), []);
Step 1: Download warpplus.conf
file.
Step 2: Download and Install WireGuard for MacOS.
Step 3: Open WireGuard and click "Import Tunnel (s) from file" button.
Step 4: Select "warpplus.conf" file and click "Active" button
this is file
https://viblo.asia/p/charles-ung-dung-cong-cu-charles-vao-kiem-thu-Qbq5Q1A45D8
https://www.youtube.com/watch?v=AW2vTBRfOrU&fbclid=IwAR2Wx7y_z2lyctwwVPXa_szQe47A60qnjKTDnGE0yUGy7MFmzHCQzs_zx34
với các lần sau:
ở Iphone vào wifi => config proxy => manual => ip laptop port 8888 ( khi config cái này thì ở charles laptop nó sẽ hỏi allow )
general => about => certificate => enable charles CA
general => profile & device management => check xem đã có charles proxy CA chưa.
Go to android/app
run:
keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
add these lines to adroid/gradle.properties
, password is keystore password you created when generate keystore