Skip to content

Instantly share code, notes, and snippets.

View AngelKrak's full-sized avatar
📱
Convertir café en código y sueños en realidad, eso es lo mío 💻

Angel Ramirez AngelKrak

📱
Convertir café en código y sueños en realidad, eso es lo mío 💻
  • Metodika
  • 18:05 (UTC -06:00)
View GitHub Profile
@AngelKrak
AngelKrak / playlist_solo_leveling.m3u
Last active May 1, 2025 00:16
Solo Leveling Audio Latino y Subtitulado Playlist IPTV M3U
#EXTM3U
#EXTINF:1440 tvg-id="SLT1E1" tvg-name="T1E01 - Ya estoy acostumbrado" tvg-duration="1440" tvg-logo="https://image.tmdb.org/t/p/w200/wyjphDUt1vrlckpvfPd0TekuqMm.jpg" group-title="Temporada 1 - Sub Español [StreamWish]" tvg-shift="-6",T1E01 - Ya estoy acostumbrado
https://lSj7FWYXSn2mKLU.cdn-centaurus.com/hls2/01/02729/7t8s2ekrppdp_n/master.m3u8?t=DX1R31ae3NOxDQLwbZvel4zZX7QiDdTxaDsQV5GMU1I&s=1745985621&e=129600&f=13647982&srv=jrjr7jgjnmnz&i=0.4&sp=500&p1=jrjr7jgjnmnz&p2=jrjr7jgjnmnz&asn=17072745984365&e=129600&f=17333831&srv=d96jvs07ph5l&i=0.4&sp=500&p1=d96jvs07ph5l&p2=d96jvs07ph5l&asn=17072=1745984581&e=129600&f=38015299&srv=49do5y7vqi60&i=0.4&sp=500&p1=49do5y7vqi60&p2=49do5y7vqi60&asn=1707217072&sp=4000&p=745962121&e=129600&f=14321223&srv=3FjgDmcnea8S35m&i=0.4&sp=500&p1=3FjgDmcnea8S35m&p2=3FjgDmcnea8S35m&asn=17072
#EXTINF:1440 tvg-id="SLT1E2" tvg-name="T1E02 - Si tuviera otra oportunidad" tvg-duration="1440" tvg-logo="https://image.tmdb.org/t/p/w200/GpsueGZH511PtA2meDB7KbQJiR.jpg" group-title="Tempor
@AngelKrak
AngelKrak / updateNavigationState.ts
Created August 24, 2024 04:27
TypeScript utility function for managing and updating React Navigation state. Supports adding and removing routes, optional parameters, and a flexible reset mechanism with custom options like retaining the initial route. Ideal for dynamic navigation flows in React Native applications
import {
CommonActions,
NavigationContainerRef,
ParamListBase,
} from '@react-navigation/native';
interface UpdateNavigationStateOptions {
routesToAdd?: (string | {name: string; params?: object})[];
paramsToAdd?: object[];
routesToRemove?: string[];
@AngelKrak
AngelKrak / updateNavigationState.js
Created July 26, 2024 07:08
React Native - Updates the navigation state with new routes and custom options.
import { CommonActions } from "@react-navigation/native";
/**
* Updates the navigation state with new routes and custom options.
*
* @param {object} navigation - Navigation object provided by React Navigation.
* @param {object} options - Options for updating the navigation state.
* @param {Array<string|object>} [options.routesToAdd=[]] - New routes to be added to the navigation state.
* They can be just route names or complete route objects.
* @param {object[]} [options.paramsToAdd=[]] - Optional parameters for the new routes.
@AngelKrak
AngelKrak / getImageWeserv.js
Created February 14, 2024 19:41
getImage by Weserv
const imageUrl = (url, opts) =>
`https://wsrv.nl/?${new URLSearchParams({
/* The image URL to optimize */
url,
/* In case something goes wrong, just show the image */
default: url,
/*
@AngelKrak
AngelKrak / comandos-docker.md
Last active January 13, 2023 15:45
Comandos para Docker y Docker-Compose

No olvides reemplazar los <id_name> de los comandos por el tuyo

Actualizar nuevos cambios en el container.

sudo docker-compose up -d --build

Otra opción:

sudo docker-compose build && docker-compose up --renew-anon-volumes -d

Ver todos los contenedores corriendo.

docker ps

@AngelKrak
AngelKrak / MergeNativeLibsTask-mergeDebugNativeLibs-react-native.md
Created November 11, 2022 04:57
error: cannot find symbol UIImplementationProvider - react-native-reanimated

Errors:

  • :react-native-reanimated:compileReleaseJavaWithJavac FAILED
  • cannot find symbol - class ReaUiImplementationProvider extends UIImplementationProvider
  • constructor UIManagerModule.UIManagerModule(ReactApplicationContext,ViewManagerResolver,int) is not applicable

Description:

  Task :react-native-reanimated:compileReleaseJavaWithJavac FAILED
  /node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java:15: error: cannot find symbol
class ReaUiImplementationProvider extends UIImplementationProvider {
@AngelKrak
AngelKrak / version-kotlin-incompatible-react-native.md
Created November 11, 2022 04:57
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.

Errors:

  • Detected multiple Kotlin daemon sessions at build/kotlin/sessions
  • was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
  • Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.

Tasks:

  • Execution failed for task ':react-native-screens:compileDebugKotlin'.

Instrucciones:

@AngelKrak
AngelKrak / MergeNativeLibsTask-mergeDebugNativeLibs-react-native.md
Created November 11, 2022 04:56
2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs: - If you are using jniLibs and CMake IMPORTED targets, see

Errors:

Description:

  2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
  - /Users/username/.gradle/caches/transforms-3/867141dd00dd9221e01e5c82748f2a99/transformed/jetified-react-native-0.71.0-rc.0-debug/jni/arm64-v8a/libc++_shared.so
 - /Users/username/.gradle/caches/transforms-3/402164579eac94d3279c98f4a43eb5d8/transformed/jetified-fbjni-0.3.0/jni/arm64-v8a/libc++_shared.so
@AngelKrak
AngelKrak / flatlist.js
Created July 26, 2022 16:16 — forked from victorwpbastos/flatlist.js
Better performance paginated FlatList
import React, { useState, useEffect } from 'react';
import { Text, FlatList, View, TextInput, TouchableOpacity } from 'react-native';
let arr: any[] = [];
for (let i = 1; i <= 100; i++) {
arr.push({ id: i, text: `mensagem bacana #${i}` });
}
arr.reverse();
@AngelKrak
AngelKrak / create index.android.bundle
Created July 4, 2022 17:16
Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release
mkdir android/app/src/main/assets
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
cd android && ./gradlew clean && cd ../
(Optional)
adb reverse tcp:8081 tcp:8081