This file contains hidden or 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
| export function fromObject<T extends jspb.Message, U>(c: new () => T, obj: U): T { | |
| const instance = new c(); | |
| Object.keys(obj) | |
| .forEach(key => { | |
| const setterName = makeSetterFuncName(key); | |
| (instance as any)[setterName] = (obj as any)[key]; | |
| }); | |
| return instance; | |
| } |
This file contains hidden or 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 * as React from 'react'; | |
| import * as GoogleWebAuth from 'expo-auth-session/providers/google'; | |
| import * as GoogleAppAuth from "expo-google-app-auth"; | |
| import * as WebBrowser from 'expo-web-browser'; | |
| import * as AppAuth from 'expo-app-auth'; | |
| import { Platform } from 'react-native'; | |
| import Constants, {AppOwnership} from 'expo-constants'; | |
| // Call this function once in your Component which handles the Google authentication | |
| // flow; typically done outside of the component decleration (ie: just after your |
This file contains hidden or 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 | |
| # ----------------------------------------------- | |
| # shutdown_after_replication.sh – Overview | |
| # | |
| # This script safely powers off the server when nightly ZFS replication | |
| # has completed (or has not begun within a configured time window). | |
| # Intended to be run via cron after a remote server wakes for replication. | |
| # | |
| # Workflow: |
OlderNewer