$ch = curl_init();
$headers = array();
$headers[] = "Authorization: Bearer " . $apiToken;
//$headers[] = "Content-Type: multipart/form-data"; // ERROR: no uses esta cabecera. Si $post es un array, la cabecera se añade automáticamente. Si se añade manualmente, me ha pasado que el boundary o el base64 se genera mal.
$cfile = new \CURLFile($fileNameWithFullPath);
//$post = array($fieldName => '@/tmp/phpDT8j'); // ERROR: no uses '@'. Genera errores en el base64. Desde PHP 5.5 está obsoleto. En su lugar usar CURLFile.
This file contains hidden or 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
| <IfModule mod_negotiation.c> | |
| Options -MultiViews | |
| </IfModule> | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] | |
| </IfModule> |
This file contains hidden or 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 | |
| # backup_mysql_db.sh | |
| # This script backs up each MySQL/MariaDB database into its own file daily. | |
| # The backups are stored in /var/backups/mysql/<database_name>/<database_name>_<date_time>.sql | |
| # Backups older than 30 days are automatically deleted. | |
| # | |
| # Author: Ph33nx | |
| # GitHub: https://github.com/ph33nx | |
| # |
This file contains hidden or 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
| @REM Author: https://github.com/ph33nx | |
| @REM Description: This script blocks or unblocks Adobe-related executables in Windows Firewall. | |
| @REM Usage: | |
| @REM - To block executables: adobe_block.bat | |
| @REM - To unblock (delete) existing rules: adobe_block.bat -delete | |
| @echo off | |
| setlocal enabledelayedexpansion | |
| REM Check if the script should delete existing rules |
2019-06-03
Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.
** Listar y ordenar por tamaño Linux **
du -sh * | sort -h
** Listar y ordenar por tamaño NuShell**
ls -d | sort-by size -r
Buscar archivos con cierta ext:
script.jsis on the html page, it sends the data to google docs- the javascript in
collection.jstakes the data and inserts it in the correct place in the spreadsheet
- input is at http://jsfiddle.net/nbass/DpEAb/
- collection spreadsheet is at https://docs.google.com/spreadsheet/ccc?key=0Ancky9VbVd4FdE1JcTZfcFZOQUgxallvRUV4QUJvUUE
git discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
NewerOlder