This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
############################################################################## | |
## | |
## avdmanager start up script for Linux | |
## | |
############################################################################## | |
# Attempt to set APP_HOME | |
# Resolve links: $0 may be a link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ -f temp_slidy ]] | |
then | |
rm temp_slidy | |
fi | |
cd $HOME | |
mkdir $(pwd)/.temp_slidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /usr/local/bin/ntfs-3g /dev/disk3s1 /Volumes/NTFS -o local -o allow_other -o auto_xattr -o auto_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX | |
slmgr /skms 193.29.63.133 | |
slmgr /ato |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yourfilenames=`ls *.png` | |
for eachfile in $yourfilenames | |
do | |
echo $eachfile | |
test="$(cat $eachfile | base64)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder