Skip to content

Instantly share code, notes, and snippets.

View allansrc's full-sized avatar
🇧🇷
from Home to the World

Allan Ramos allansrc

🇧🇷
from Home to the World
View GitHub Profile
requestPostWithFile() async {
final file = File('path');
final formDataRequestObject = FormData.fromMap({"objeto": "address"});
formDataRequestObject.files.add(
MapEntry('files', await MultipartFile.fromFile(file)),
);
final response = await Dio().post(URI, data: formDataRequestObject);
}
@allansrc
allansrc / Flutter Video player Example
Last active January 17, 2025 23:07
video_player: ^2.9.2
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("Jarbas Video Player"),
),
@allansrc
allansrc / build_ffmpeg_command.py
Created November 5, 2024 04:20 — forked from akitaonrails/build_ffmpeg_command.py
Try to convert Netflix videos into an open MKV format
# Procedure:
# - download the episodes you want from the Android Netflix app (there is a limit)
# - connect your smartphone to your PC and navigate to Internal Storage/Android/data/com.netflix.mediaclient/Download/.of.
# - fetch each directory (each directory is one episode)
#
# Each directory should have the following file formats:
# - .nfv - the video stream, possibly already in H.264, unencrypted
# - .nfa - the most difficult file to deal with, it's an unencrypted AAC file in ISO fMP4 (fragmented) format and an unknown "object type 42" that ffmpeg complains
# - .nfs - subtitle in TTML format with custom properties.
# - .nfi - information about the download (unknown format)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
export PATH=$HOME/runners:$PATH
export PATH=$HOME/flutter/bin:$PATH
export FLUTTER_ROOT=$HOME/flutter
#!/usr/bin/env sh
##############################################################################
##
## avdmanager start up script for Linux
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
@allansrc
allansrc / slidy_install.sh
Created May 17, 2021 01:32
Script to install slidy on linux :)
#!/usr/bin/env bash
if [[ -f temp_slidy ]]
then
rm temp_slidy
fi
cd $HOME
mkdir $(pwd)/.temp_slidy
sudo /usr/local/bin/ntfs-3g /dev/disk3s1 /Volumes/NTFS -o local -o allow_other -o auto_xattr -o auto_cache
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms 193.29.63.133
slmgr /ato
#!/bin/bash
yourfilenames=`ls *.png`
for eachfile in $yourfilenames
do
echo $eachfile
test="$(cat $eachfile | base64)"
sudo spctl --master-disable
sudo mount -uw /
sudo killall Finder
sudo mv ./*.kext /tmp
sudo chown -R root:wheel /tmp/*.kext
sudo kextload /tmp/*.kext