Skip to content

Instantly share code, notes, and snippets.

View leshikus's full-sized avatar
💭
happy

Alexei Fedotov leshikus

💭
happy
View GitHub Profile
@leshikus
leshikus / default.htm
Last active December 16, 2015 01:30
Repetitive network bandwidth check
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
var relax = 5000;
var start = 0;
var end = 0;
@leshikus
leshikus / om.2.1.1.diff
Created June 6, 2013 10:07
2.1.1. release changes (compared to 2.1)
Index: xdocs/HotKeys.xml
===================================================================
--- xdocs/HotKeys.xml (.../tags/2.1RC3) (revision 1490221)
+++ xdocs/HotKeys.xml (.../branches/2.1) (revision 1490221)
@@ -42,6 +42,12 @@
<td>
</td>
</tr>
+ <tr>
+ <td>F7 (code 118)</td>
@leshikus
leshikus / 211-head.diff
Created June 6, 2013 10:23
2.1.1 vs head
Diff between the head and 2.1.1Index: build-red5_ivy.xsl
===================================================================
--- build-red5_ivy.xsl (.../branches/2.1) (revision 1490226)
+++ build-red5_ivy.xsl (.../trunk/singlewebapp) (revision 1490226)
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
Сукчев Михаил
Родился 7 апреля 1982 Мужской пол Москва, готов к переезду Готов к командировкам
________________________________
+7 985 8417943
mikhail.sukchev@gmail.com желаемый способ связи
LinkedIn
Резюме обновлено 18.01.2013
Желаемая должность и зарплата
Специалист по медицинской информации; MSL; Биотехнологии
Медицина, фармацевтика
<iframe
src="https://docs.google.com/forms/d/1MyEgTac3X9soK4b_2RCU3SwZbXZRj1q78IFDFiFRDzA/viewform?embedded=true"
width="760" height="500" frameborder="0" marginheight="0" marginwidth="0">Загрузка...</iframe>
@leshikus
leshikus / check-google
Last active December 28, 2015 23:59
Check Google search results for a particular one
function waitFor(f) {
setTimeout(function() {
try {
f();
} catch (e) {
console.log('waitFor(): ' + e);
waitFor(f);
}
}, 5000);
}
@leshikus
leshikus / rndis.inf
Last active December 29, 2015 22:59
МТС 970Н networking for Windows XP
; MS-Windows driver config matching some basic modes of the
; Linux-USB Ethernet/RNDIS gadget firmware:
;
; - RNDIS plus CDC Ethernet ... this may be familiar as a DOCSIS
; cable modem profile, and supports most non-Microsoft USB hosts
;
; - RNDIS plus CDC Subset ... used by hardware that incapable of
; full CDC Ethernet support.
;
; Microsoft only directly supports RNDIS drivers, and bundled them into XP.
wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" \
--no-check-certificate -O - 'https://www.google.com/search?q=linux' | wget -k -w 1 -i - --force-html
wget -np -nH -w 1 -m http://www.finmarket.ru/
wget -c -r -l0 -k -E -np -nH -w 1 -nc http://www.bytemag.ru
@leshikus
leshikus / device.py.patch
Created April 12, 2014 13:44
hplip fix for russian scanners
--- device.py.orig 2014-04-12 17:23:12.447041684 +0400
+++ /usr/share/hplip/base/device.py 2014-04-12 17:18:23.513041337 +0400
@@ -2523,6 +2523,7 @@
if not data:
log.error("Unable To read the XML data from device")
return ""
+ data = filter(lambda x: x in string.printable, data)
xmlDict = utils.XMLToDictParser().parseXML(data)
try:
return str(xmlDict[attribute])