Skip to content

Instantly share code, notes, and snippets.

View theonelucas's full-sized avatar
🐔
whoami > /dev/null

Theone theonelucas

🐔
whoami > /dev/null
View GitHub Profile
(function (window) {
// Script definitions
var delay = 500, // Delay between each video
moduleTree = true, // If true, each module will have a separate directory, else, all modules will belong to the same directory
createCourseDirectory = false, // If true, will download the course in a separate directory
waitServerTime = true; // If true, will wait the necessary time defined by the server that bots are identified
// (One request each 10-30 seconds). If false, the server will block your account after
// the download of an average of 3-4 courses
<?php
ini_set('display_errors', 'On');
set_time_limit(-1);
$imgs = [
'/srv/http/jessica.jpg',
];
define('BR', '<br>');
<?
// 35 km por 1 litro
// 12 km por dia (6 ida/6 volta)
// 1 litro gasonila = 4.29 (09/17)
$precoLitro = 4.29;
$totalKmPorLitro = 35;
$totalKmPorDia = 12;
#!/bin/bash
# Configurations
PASSPHRASE=''
LOG_FILE='./log'
#!/bin/bash
# Configurations
PASSPHRASE=''
LOG_FILE='./log'
#!/bin/bash
images=()
# Get all non JPG images
readarray -d '' images < <(find ./ -type f \( -iname \*.jpeg -o -iname \*.png \) -print0)
# Convert them to JPG
for i in "${!images[@]}"
do