Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# -*- mode: bash; coding: utf-8 -*-
cool_hack_encoding="WINDOWS-1251"
if [ -z "$1" ]
then
echo "missing file path" >&2
exit 2
fi
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
#
# <header-blahblahblah>
import sys, functools, socket, logging
SERVER_FAMILY = socket.AF_INET # socket.AF_INET6 or socket.AF_INET ?
SERVER_ADDR = '11.22.33.44'
SERVER_PORT = 8124
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
#
# <header-blahblahblah>
import sys, functools, socket, logging
SERVER_FAMILY = socket.AF_INET # socket.AF_INET6 or socket.AF_INET ?
SERVER_ADDR = '0.0.0.0'
SERVER_PORT = 8124
// -*- mode: javascript; coding: utf-8 -*-
//
// <copyright-and-licence-header--blahblahblah>
(function ($) {
'use strict'
var HAS_ONLINE_OPERATORS_URL = '/webim/has_online_operators.php'
function has_online_operators (callback) {
<?php
// -*- mode: php; coding: utf-8 -*-
//
// <copyright-and-licence-header--blahblahblah>
if (!ini_get('display_errors')) {
ini_set('display_errors', 1);
}
error_reporting(E_ALL);
From 3c3a3777c1875297281eefa86a7932e27f57518c Mon Sep 17 00:00:00 2001
From: Andrej A Antonov <[email protected]>
Date: Wed, 19 Oct 2011 19:55:32 +0400
Subject: [PATCH] created function csrf_check_referer()
---
src/messenger/webim/libs/common.php | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php
From e47739defe12b716dc03674faa4b8e351d512504 Mon Sep 17 00:00:00 2001
From: Andrej A Antonov <[email protected]>
Date: Fri, 30 Sep 2011 14:50:48 +0400
Subject: [PATCH] fixed zip_open() fail actions
---
libraries/joomla/filesystem/archive/zip.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/libraries/joomla/filesystem/archive/zip.php b/libraries/joomla/filesystem/archive/zip.php
From dc066037384e93958a36d275b065a3d0c3938896 Mon Sep 17 00:00:00 2001
From: Andrej A Antonov <[email protected]>
Date: Fri, 30 Sep 2011 15:31:04 +0400
Subject: [PATCH] fixed zip_open() fail actions
---
libraries/joomla/filesystem/archive/zip.php | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/libraries/joomla/filesystem/archive/zip.php b/libraries/joomla/filesystem/archive/zip.php
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js"></script>-->
<script>
//<![CDATA[
(function ($) {
'use strict'
var content = $(
'<div>' +
'<h1>это мой новый супер контент</h1>' +
// -*- mode: javascript; coding: utf-8 -*-
//
// Copyright 2011 Andrej A Antonov <[email protected]>.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,