Skip to content

Instantly share code, notes, and snippets.

View szepeviktor's full-sized avatar
🍓
Doing byte-level care

Viktor Szépe szepeviktor

🍓
Doing byte-level care
View GitHub Profile
@szepeviktor
szepeviktor / villamos2.php
Last active August 29, 2015 14:01
Villamos - Programozási feladat megoldása PHP és C++ nyelven
<?php
/**
* a járat class a "száraz" része a kódnak, ott nincs sem adat, sem kiírás
* a class után jön a "nedves" rész tele adattal és kiírással
* ehhez hasonló módon érdemes elválasztani a programok részeit
*/
class Jarat {
@szepeviktor
szepeviktor / phpmyadmin-get.sh
Last active August 29, 2015 14:01
Download latest phpmyadmin release automatically by github/sourceforge API
MOVED to: https://github.com/szepeviktor/debian-server-tools
@szepeviktor
szepeviktor / package-versions.sh
Last active August 29, 2015 14:01
Linux package version and possible updates - apt, python, pear, pecl, node.js, ruby gems, java JRE
MOVED to: https://github.com/szepeviktor/debian-server-tools/tree/master/monitoring
@szepeviktor
szepeviktor / vmware-tools-wheezy.sh
Last active August 29, 2015 14:01
Install VMware tools service (vmtoolsd) from OSP on Debian wheezy
MOVED to: https://github.com/szepeviktor/debian-server-tools
@szepeviktor
szepeviktor / bodyFile.7362.html
Created May 23, 2014 17:49
email source causing exception in lxml (indeed notification email)
<html>
<head>
<style type="text/css">
a,a:link{color:#00c}
.nolink{unicode-bidi: embed;}
a[href=""] {-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:default;}
</style>
<style type="text/css">
a,a:link{color:#00c}
Delivered-To: viktor@szepe.net
Return-Path: <noreply.LOJlH@dx38.domails.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0-rsvnunknown (svnunknown) on
szerver.szepe.net
X-Spam-Level: ****
X-Spam-Status: No, score=4.1 required=5.0 tests=BAYES_50,HTML_MESSAGE,
HTML_OBFUSCATE_05_10,MIME_HEADER_CTYPE_ONLY,MIME_HTML_ONLY,
SUBJECT_NEEDS_ENCODING,SUBJ_ILLEGAL_CHARS,T_REMOTE_IMAGE autolearn=no
version=3.4.0-rsvnunknown
Received: from vps.server.com (dx38.domails.org [::ffff:23.249.168.179])
-------------------------------------------------------------------------------
PHP COMPAT INFO EXTENSION SUMMARY
-------------------------------------------------------------------------------
EXTENSION EXT min/Max PHP min/Max COUNT
-------------------------------------------------------------------------------
Core 4.0.0 4.0.0 20306
PDO 5.1.0 3
Reflection 5.0.0 1
SPL 5.1.2 5.0.0 4
SimpleXML 5.0.0 2
@szepeviktor
szepeviktor / visual-console.js
Created June 5, 2014 20:19
Visual Javascript console logging
// draw a nice box
// colors: http://flatuicolors.com/
(function () {
var consoleBox = document.createElement('div');
consoleBox.id = 'console-box';
consoleBox.style.backgroundColor = '#bdc3c7';
consoleBox.style.opacity = '0.80';
consoleBox.style.borderRadius = '5px';
consoleBox.style.position = 'fixed';
@szepeviktor
szepeviktor / core-content-system.php
Created June 13, 2014 22:51
contribution to iThemes Security (former Better WordPress Security)
<?php
// WP stub
function __($str, $td) { return $str; }
define( 'ITSEC_TD', 'it-l10n-better-wp-security' );
class Bla {
public $value_on;