Skip to content

Instantly share code, notes, and snippets.

View dutradotdev's full-sized avatar
🎯
Focusing

lucas dutradotdev

🎯
Focusing
View GitHub Profile
Entrar no postgres:
- psql postgres
Criar usuário:
- CREATE ROLE strapi WITH LOGIN PASSWORD 'strapi';
Alterar senha para senha encriptada:
- ALTER USE strapi WITH ENCRYPTED PASSWORD 'strapi123';
Criar banco de dados:
@dutradotdev
dutradotdev / .tsx
Last active March 24, 2025 23:24
BlurContainer in React Native
import React from 'react';
import WebView from 'react-native-webview';
export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
export interface BlurContainerProps {
backgroundColor: RGBA;
blurRadius: number;
}
@dutradotdev
dutradotdev / gist:06fd6a582f2b3647da4f40a95f4a2477
Created April 20, 2023 14:35
check iOS device logs using console
brew install libimobiledevice
idevice_id --list // list available device UDIDs
idevicesyslog -u <device udid>
to log all console.log() in iOS release mode:
1. go to RCTLog (cmd shift o)
2. edit the method RCTLogTypeForLogLevel to:
static os_log_type_t RCTLogTypeForLogLevel(RCTLogLevel logLevel)
{
return OS_LOG_TYPE_ERROR;
}
3. rebuild the app
@dutradotdev
dutradotdev / gist:d6357000e972f34767fc3796857b3b20
Created April 20, 2023 14:47
get the current simulator uuid
xcrun simctl list | egrep '(Booted)'