Skip to content

Instantly share code, notes, and snippets.

View tuliocll's full-sized avatar
🎶
eu vim da roça meu bem

Tulio Calil tuliocll

🎶
eu vim da roça meu bem
View GitHub Profile
@tuliocll
tuliocll / smb.conf
Created January 2, 2024 14:46
Samba config for Open PS2 Loader (PlayStation 2) with password support
# This setup works pretty well for OPL with a network link that travels through
# two UniFi switches and connects to a Samba server running inside Docker. The
# host OS is Debian with a ZFS filesystem and the container OS is also Debian.
# Latest Samba (4.11+).
[global]
# ======================
# General Samba settings
# ======================
log level = 1
@tuliocll
tuliocll / config
Created October 8, 2023 16:55
My fish config file - NVM, Yarn, PNPM, Bun, Android, Java, Nvim and Git alias
set fish_greeting ""
# aliases
alias ls "ls -p -G"
alias la "ls -A"
alias ll "ls -l"
alias lla "ll -A"
alias g git
@tuliocll
tuliocll / LoginScreen.jsx
Last active August 14, 2023 02:40
Simple React Native Login UI for native modules tutorial on http://tuliocalil.com/
import React from 'react';
import {
View,
Text,
TextInput,
TouchableOpacity,
ImageBackground,
StyleSheet,
StatusBar,
} from 'react-native';
@tuliocll
tuliocll / config.fish
Last active May 12, 2023 13:52
My fish config for React Native (Android) Setup
set -gx PATH node modules/.bin $PATH
set -Ux JAVA_HOME (/usr/libexec/java_home -v 11)
set -Ux ANDROID_HOME $HOME/Library/Android/sdk
set -gx PATH $ANDROID_HOME/tools $PATH
set -gx PATH $ANDROID_HOME/tools/bin $PATH
set -gx PATH $ANDROID_HOME/platform-tools $PATH
set -gx PATH $ANDROID_HOME/emulator $PATH
@tuliocll
tuliocll / trick.md
Created October 24, 2022 16:50
Open Android emulator without Android Studio Mac or Linux

Android emulator on terminal

Find the Android SDK path, here is a link to help you find it. For Mac is some like: /Users/<yout-user-name>/Library/Android/sdk"

Open the .rc file in your favorite editor:

# if you use ZSH
nano ~/.zshrc
@tuliocll
tuliocll / mac1-aws-ec2-resize-disk.md
Last active June 12, 2021 20:40
Resize Mac1 AWS EC2 disk

First, list all disks:

diskutil list

Check the avaliable space and the identifier for the Container partition, to me is the disk1s2 identifier on /dev/disk1 disk.

Repair the disk:

diskutil repairdisk /dev/disk1
@tuliocll
tuliocll / package.json
Created March 25, 2021 20:00 — forked from martsie/package.json
Purge CSS in Create React App without ejecting
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
},
"devDependencies": {
convert(`name,
subname,
users{
name,
id,
casas{
id,
}
},
address{
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: "Apache 2.0"
#My react native alias: http://tuliocalil.blogspot.com/2020/07/linux-e-unix-alias-atalhos-produtivos.html
alias rnand='npx react-native run-android'
alias rnios='npx react-native run-ios'
alias rnapk='cd android && ./gradlew assembleRelease && cd..'
alias rnbundle='cd android && ./gradlew bundleRelease && cd..'
alias rnd='npx react-native doctor'
alias rnlink='npx react-native link'