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
#!/usr/bin/perl -s | |
# postgresqllogcleaner.pl | |
# PostgreSQL log cleaner | |
# | |
# Usage: | |
# postgresqllogcleaner.pl -i=/path/to/postgresql.log -o=/path/to/output.log | |
# | |
# Short description: | |
# This script used for cleaning postgresql log to be valid SQL | |
# |
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 Email extends Controller { | |
function index() | |
{ | |
$this->load->library('email'); | |
$config['protocol'] = "smtp"; | |
$config['smtp_host'] = "smtp.mailserver.net"; |
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
#!/opt/local/bin/perl | |
$string = "<TEXT> | |
First text | |
Some text | |
Last text | |
</TEXT>"; | |
if($string =~ /<(TEXT)>\s*(.*)\s*<\/\1>/gs) | |
{ | |
$result = $2; |
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 | |
$ch = curl_init('http://49.50.8.82/phpjsondns/api.github.com/a'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host: azhari.harahap.us")); | |
$content = curl_exec($ch); | |
$content = json_decode($content, TRUE); | |
curl_close($ch); | |
$github = $content['result'][0]['ip']; | |
$ch = curl_init('https://'.$github.'/legacy/repos/search/: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
-- | |
-- Database: "kalkun" | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table "kalkun" | |
-- |