Skip to content

Instantly share code, notes, and snippets.

View velrino's full-sized avatar
:octocat:
Fortis Fortuna Adiuvat

Velrino velrino

:octocat:
Fortis Fortuna Adiuvat
View GitHub Profile
#!/bin/bash
# Script to convert videos (mainly .mov) to .mp4 with efficient compression
# Usage: ./video.sh /path/to/video.mov
# ./video.sh "/Users/velrino/Documents/screenshots/Screen Recording 2025-11-24 at 15.58.38.mov"
# This script will:
# - Convert video to H.264/AAC MP4 format
# - Compress the file efficiently while maintaining good quality
# - Save the output to ~/Documents/videos-ffmpeg/
#
@velrino
velrino / android.md
Created March 4, 2025 17:48
React Native Build & Deployment Guide

📱 React Native Android Build & Deployment Guide

🔄 Reset Metro Bundler Cache

Before building the application, it's recommended to clear the Metro Bundler cache to avoid potential issues with stale or corrupted data:

npm start -- --reset-cache
@velrino
velrino / wsl2_android_device_via_wifi_or_usb.md
Created October 24, 2024 18:42 — forked from jramiresbrito/wsl2_android_device_via_wifi_or_usb.md
Connect Android Devices to WSL2 with WIFI or USB
@velrino
velrino / rearct-native-app-in-wsl2.md
Created October 24, 2024 12:09 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2
{
"type": "ListView",
"children": [
{
"type": "Container",
"color": "#ec7000",
"padding": "10,30,10,50",
"child": {
"type": "Center",
"child": {
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: ListView(
@velrino
velrino / remove-docker-containers.md
Created October 5, 2017 14:31 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm
    

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images