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 url = "http://localhost:8080/login#eyJpbml0Ijp7ImNsaWVudElkIjoiQkMwMXBfanM1S1VJanZxWVlBeldsREt0NmZ0LS01am9WMFRiWkVLTzdZYkRUcW5tVTV2MHNxXzR3Z2t5aDBRQWZaWkFpLXY2bktENGtjeGtBcVB1ajhVIiwibmV0d29yayI6Im1haW5uZXQiLCJyZWRpcmVjdFVybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCJ9fQ"; |
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
[user] | |
email = 25026967+phuctm97@users.noreply.github.com | |
name = Minh-Phuc Tran | |
[pull] | |
ff = only |
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 { useState } from "react"; | |
import TorusSdk from "@toruslabs/torus-direct-web-sdk"; | |
const App = () => { | |
const [torusSdk, setTorusSdk] = useState(); | |
const onMount = async () => { | |
const sdk = new TorusSdk({ | |
baseUrl: `${window.location.origin}/auth`, | |
enableLogging: true, |
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 { useState } from "react"; | |
import TorusSdk from "@toruslabs/torus-direct-web-sdk"; | |
const App = () => { | |
const [torusSdk, setTorusSdk] = useState(); | |
const onMount = async () => { | |
const sdk = new TorusSdk({ | |
baseUrl: `${window.location.origin}/auth`, | |
enableLogging: true, |
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 TorusSdk from "@toruslabs/torus-direct-react-native-sdk"; | |
const App = () => { | |
const onMount = async () => { | |
await TorusSdk.init({ | |
browserRedirectUri: "YOUR APP REDIRECT URI", | |
redirectUri: "YOUR APP REDIRECT URI", | |
network: "testnet" | |
}); | |
}; |
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 | |
# Install XCode Command Line Tools. | |
xcode-select --install &> /dev/null | |
# Wait until XCode Command Line Tools installation has finished. | |
until $(xcode-select --print-path &> /dev/null); do | |
sleep 5; | |
done |
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 | |
# This script enables authenticating `sudo` commands using Touch ID on macOS by adding a | |
# line 'auth sufficient pam_tid.so' to '/etc/pam.d/sudo'. | |
sudo python <<HEREDOC | |
import re | |
pam_cfg = '/etc/pam.d/sudo' | |
auth_re = re.compile(r'^auth\s+sufficient\s+') |
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 path = require('path'); | |
/** | |
* Helper function infers Webpack aliases from tsconfig.json compilerOptions.baseUrl and | |
* compilerOptions.paths. | |
* | |
* @param {string} tsconfigPath - Path to tsconfig.json (can be either relative or absolute path). | |
* @return {object} An object representing analogous Webpack alias. | |
*/ | |
module.exports = (tsconfigPath = './tsconfig.json') => { |
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 | |
osascript -il JavaScript prefs.js |
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 | |
# Enable auto hide. | |
defaults write com.apple.dock autohide -bool true | |
# Hide process indicators. | |
defaults write com.apple.dock show-process-indicators -bool false | |
# Set orientation. | |
defaults write com.apple.dock orientation -string left |
NewerOlder