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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
while (my $line = <STDIN>) { | |
if($line =~ /^(\S+)\s*DEFINER\s{0,1}=\s{0,1}(\S+)(.*)/){ | |
print $1." ".$3."\n"; | |
}else{ | |
print $line; | |
} |
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
function brokenUTF($tbl, $id) { | |
header('Content-Type: text/html; charset=utf-8'); | |
echo "<pre>"; | |
echo "Konwersja: ".$tbl."</br/>"; | |
$sql = new MySQLi("HOST", "USER", "HASLO", "BAZA"); | |
$cnt = $sql->query('SELECT COUNT(' . $id . ') AS count FROM ' . $tbl); | |
$cnt = $cnt->fetch_assoc(); | |
$cnt = $cnt['count']; |
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
/**********************************************/ | |
/* | |
/* InTheDark Skin by Aleksander Cynarski | |
/* | |
/* Based on Darker Skin by Darcy Clarke - 2011 | |
/* Based on Joe Bergantine's Specials Board: | |
/* http://joebergantine.com/werkstatt/seestyle | |
/* | |
/**********************************************/ |
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
var express = require('express'); | |
var app = express.createServer(); | |
app.get('/', function(req, res) { | |
res.write("Hello World ;]"); | |
res.end(); | |
}); | |
app.listen(8080, function() { | |
var addr = app.address(); |
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
<?php | |
/** \brief DbAdapter - adapter bazy danych | |
Klasa wykonująca proste zapytania SQL | |
\author Aleksander Cynarski (cynarski.pl) | |
\author $LastChangedBy$ | |
\date 2008-05-24 | |
\date $LastChangedDate$ | |
\version $Rev$ |
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
Index: sapi/cli/config.w32 | |
=================================================================== | |
--- sapi/cli/config.w32 (revision 308839) | |
+++ sapi/cli/config.w32 (working copy) | |
@@ -6,7 +6,8 @@ | |
ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no'); | |
if (PHP_CLI == "yes") { | |
- SAPI('cli', 'php_cli.c', 'php.exe'); | |
+ SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe'); |
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
#!/usr/bin/ruby -rubygems | |
# | |
# dev tools by Aleksander Cynarski <[email protected]> | |
# | |
requests = { | |
'lista/dodaj' => {'standID' => '2', 'pageID' => '1', 'articleID' => '1'}, | |
'lista/skasuj' => {'standID' => '2', 'pageID' => '1', 'articleID' => '1'}, |
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
#!/usr/bin/python | |
# SAS by Aleksander Cynarski [[email protected]] | |
import os, sys, getopt, socket | |
from pwd import getpwnam | |
def main(): | |
try: | |
opts, args = getopt.getopt(sys.argv[1:], "hd:u:t:s:", ["help", "domain=","username=","type=","ssl"]) |
NewerOlder