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 | |
`libreoffice --headless --invisible --convert-to pdf sample.ppt --outdir ./out/ > /dev/null`; |
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 | |
namespace Helper\TombstoneHelper; | |
use Scheb\Tombstone\{ | |
GraveyardProvider, | |
Handler\StreamHandler, | |
Tracing\TraceProvider | |
}; |
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 | |
require_once('vendor/autoload.php'); | |
use Helper\TombstoneHelper\TombstoneHelper; | |
class DeadCode { | |
private $tombstoneHelper; | |
public function __construct() { |
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
2019-08-11T18:37:51+05:30 - Vampire detected: tombstone("11-Aug-19", "Vijayan"), in file /var/www/html/tombstone/index.php:15, in function DeadCode->called, invoked by deadCodeTrigger | |
2019-08-11T19:41:47+05:30 - Vampire detected: tombstone("11-Aug-19", "Vijayan"), in file /var/www/html/tombstone/index.php:15, in function DeadCode->called, invoked by deadCodeTrigger | |
2019-08-11T19:44:20+05:30 - Vampire detected: tombstone("11-Aug-19", "Vijayan"), in file /var/www/html/tombstone/index.php:15, in function DeadCode->called, invoked by deadCodeTrigger |
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 requests | |
import openpyxl | |
import time | |
#CONSTANTS | |
API_URL = 'https://restcountries.eu/rest/v2/name/' | |
def extract_country_details(search_term): |
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 | |
$handle = imagecreatetruecolor(640, 480); #create a 640px wide 480px height image. Consider this like canvas to draw. | |
$green = imagecolorallocate($handle, 0, 255, 0); #assign green color | |
imagefilledrectangle($handle, 0, 0, 640, 480, $green); #Create filled rectangle with green color. Consider like this the shape drawn over the canvas. | |
# Jpeg conversion | |
header("Content-type: image/jpg"); | |
imagejpeg($handle); |
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
<img src="http://localhost/image.php"> |
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 | |
$wide = 1080; | |
$height = 50; | |
$handle = imagecreatetruecolor($wide, $height); #create a 640px wide 480px height image. Consider this like canvas to draw. | |
$green = imagecolorallocate($handle, 0, 255, 0); #assign green color | |
$black = imagecolorallocate($handle, 0, 0, 0); #assign black color | |
imagefilledrectangle($handle, 0, 0, $wide, $height, $green); #Create filled rectangle with green color. Consider like this the shape drawn over the canvas. |
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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^image\.jpg image.php [L,QSA] |
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
<Directory /var/www/> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Require all granted | |
</Directory> |
OlderNewer