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 logging | |
from pytube import YouTube | |
from pydub import AudioSegment | |
import os | |
import sys | |
# Logger configuration | |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') | |
def download_youtube_video_as_mp3(url, output_path): |
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 argparse | |
import time | |
import subprocess | |
from tqdm import tqdm | |
parser = argparse.ArgumentParser(description='Download script.') | |
parser.add_argument('path', type=str, help='Path to the file to be downloaded.') | |
parser.add_argument('size', type=float, help='Size of the file to be downloaded in GB.') | |
args = parser.parse_args() |
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
# syntax=docker/dockerfile:1 | |
# | |
# Docker image to build Android AOSP | |
# | |
FROM ubuntu:18.04 | |
# Dependency required on Android docs | |
RUN apt-get update && apt-get install -y git-core \ | |
gnupg flex bison build-essential zip curl zlib1g-dev \ | |
gcc-multilib g++-multilib libc6-dev-i386 libncurses5 \ |
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
# File: ~/.screenrc | |
# | |
# Deactivate the startup message of screen | |
startup_message off | |
# Create 2x2 screens | |
split | |
split -v | |
focus down |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
""" | |
Spyder Editor | |
Maintain the connection on google codelab google for a long time. write in google cell at random time between 1 and 100 seconds. | |
""" | |
from pynput.keyboard import Key, Controller | |
import time | |
import random |
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
// Função para leitura do Arquivo | |
private void read(FileInputStream fis) throws IOException { | |
BufferedReader reader = new BufferedReader( | |
new InputStreamReader(fis)); | |
StringBuilder sb = new StringBuilder(); | |
String linha; | |
while ((linha = reader.readLine()) != null) { | |
if (sb.length() != 0) sb.append('\n'); | |
sb.append(linha); | |
} |
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
<?php | |
$metodoHttp = $_SERVER['REQUEST_METHOD']; | |
if ($metodoHttp == 'POST') | |
{ | |
$urltoken = 'https://www.googleapis.com/oauth2/v3/tokeninfo?id_token='; | |
$token = $_POST['idToken']; | |
$url = $urltoken.$token ; | |