We are going to upload the file we want to distribute in the "public" Dropbox folder, then use that file's URL as the webseed for a new torrent. Then shut off our computer knowing that our file is well looked-after and you will not receive a stern email from Dropbox.
Hay que poner el código de este index.php
en una ruta accesible por el servidor web, que debe soportar php
, obviamente.
Si por ejemplo lo metemos en una carpetaa /var/www/html/drive
debe ser accesible desde http://tu_dominio_o_ip/drive
Además, necesitaremos una versión bastante reciente de rclone
, podemos descargarla de https://rclone.org/downloads/
Estas instrucciones son para Linux, pero cualquiera con manejo suelto en windows podrá hacerlo funcionar sin problema.
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 | |
# Get a list of all fragmented tables | |
FRAGMENTED_TABLES="$( mysql -e ';use information_schema; SELECT TABLE_SCHEMA,TABLE_NAME FROM TABLES WHERE ENGINE="MyISAM" AND TABLE_SCHEMA NOT IN ("information_schema","mysql") AND Data_free > 0' | grep -v "^+" | sed 's,\t,.,' )" | |
for fragment in $FRAGMENTED_TABLES; do | |
database="$( echo $fragment | cut -d. -f1 )" | |
table="$( echo $fragment | cut -d. -f2 )" | |
[ $fragment != "TABLE_SCHEMA.TABLE_NAME" ] && echo "Optimizando $fragment" && mysql -e "USE $database; OPTIMIZE TABLE $table;" > /dev/null | |
done |
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
# NO SIRVE DE NADA BORRAR TU HISTORIAL, seguirá en el canal 48 horas | |
# disponible para cualquiera que quiera recuperarlo :P | |
from telethon import TelegramClient, events, sync | |
from telethon.tl.types import InputChannel, PeerChannel | |
from telethon.tl.types import Channel | |
import time | |
api_id = 'XXXXXX' | |
api_hash = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' |
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 | |
# | |
# WP-UTD | |
# WordPress Up To Date 0.1, May 25 2012 | |
# by Marcos BL; No license, feel free use it | |
# | |
# WP-UTD checks all your local WordPress installations are | |
# up-to-date and notifies you by email if a new version | |
# is available. | |
# |
Add the provided code in ~/.bash_profile ( or similarly sourced file ) and you'll get artisan command tab completes on any project on your system:
_artisan()
{
local arg="${COMP_LINE#php }"
case "$arg" in
artisan*)
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
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
0-mail.com | |
0815.ru | |
0clickemail.com | |
0wnd.net | |
0wnd.org | |
10minutemail.com | |
20minutemail.com | |
2prong.com | |
30minutemail.com | |
3d-painting.com |
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
<html> | |
<head> | |
<style> | |
p { page-break-after: always; } | |
.footer { position: fixed; bottom: 0px; } | |
.pagenum:before { content: counter(page); } | |
</style> | |
</head> | |
<body> | |
<div class="footer">Page: <span class="pagenum"></span></div> |
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 | |
class Utils | |
{ | |
public static function tabs2array($list, $indentation = ' ') { | |
$result = array(); | |
$path = array(); | |
$list = str_replace("\r", "", $list); | |
foreach (explode("\n", $list) as $line) { | |
$depth = 0; | |
while (substr($line, 0, strlen($indentation)) === $indentation) { |
NewerOlder