Skip to content

Instantly share code, notes, and snippets.

@ace3
ace3 / metadata.json
Last active February 27, 2024 09:24
{
"name": "NOBI",
"website": "https://usenobi.com",
"description": "NOBI",
"logo": "https://usenobi.com/wp-content/uploads/2023/03/Logo-Nobi-01-1.png",
"twitter": "https://twitter.com/usenobi"
}
version: "3"
services:
webserver:
image: nginx:latest
ports:
- 8080:80
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
error_reporting=E_ALL
FROM php:7.4-fpm
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
server {
server_name ace3;
# Set the port to listen on and the server name
listen 80 default_server;
# Set the document root of the project
root /var/www/html/public;
# Set the directory index files

ADB Remove Bloatware

ADB into Devices

adb devices

Into shell Mode

adb shell

To setup push to multiple remote with single git push, you need to do this:

  • Clone the repo like usual
  • Setup multi remote URL like this
git remote set-url --add --push origin git@github.com:[username]/[repository]
git remote set-url --add --push origin git@bitbucket.org:[username]/[repository]
  1. make .gitignore file.
  2. add node_modules/ line to .gitignore file
  3. run git rm -r --cached . && git add . && git commit -m "remove gitignore files" && git push
import { Dimensions, Platform, StatusBar } from 'react-native';
const X_WIDTH = 375;
const X_HEIGHT = 812;
const XSMAX_WIDTH = 414;
const XSMAX_HEIGHT = 896;
const { height: W_HEIGHT, width: W_WIDTH } = Dimensions.get('window');
# Disable the newline at the start of the prompt
add_newline = false
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 10
[battery]
full_symbol = "🔋"
charging_symbol = "⚡️"
discharging_symbol = "💀"