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
from subprocess import Popen, PIPE | |
import sys | |
import os.path | |
import ConfigParser | |
from optparse import OptionParser | |
docstring = """ | |
A typical .hglftp file looks like this: | |
[ftp] |
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
#gradient { | |
background-image: -moz-linear-gradient(top, #81a8cb, #4477a1); /* Firefox 3.6 */ | |
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #4477a1),color-stop(1, #81a8cb)); /* Safari & Chrome */ | |
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#81a8cb', endColorstr='#4477a1'); /* IE6 & IE7 */ | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#81a8cb', endColorstr='#4477a1')"; /* IE8 */ | |
} |
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
gs -dBATCH -dNOPAUSE -sDEVICE=png48 -r300x300 -sOutputFile=conv2.png citroen-new-logo.eps | |
convert conv2.png -trim +repage -resize 300x^ conv3.png |
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
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn |head -n 15 |
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
#!/bin/zsh | |
for file in ./**/*.php | |
do | |
iconv -f windows-1251 -t UTF-8 "$file" > "${file%.php}-utf8.php" | |
rm $file | |
mv ${file%.php}-utf8.php $file | |
done |
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
api/sugar_crm/debug.slim | |
api/v1/special_offers/index.json.jbuilder | |
asides/_call.slim | |
asides/_responds.slim | |
asides/_search.slim | |
asides/_why_we_region.slim | |
cms/landing/pages/_block.slim | |
comments/_comment.slim | |
comments/_form.slim | |
comments/create.js.erb |
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
08:09:03.259 [search-backend-akka.actor.default-dispatcher-23] ERROR akka.actor.OneForOneStrategy - key not found: key | |
akka.actor.ActorInitializationException: exception during creation | |
at akka.actor.ActorInitializationException$.apply(Actor.scala:218) ~[akka-actor_2.10-2.2.3.jar:2.2.3] | |
at akka.actor.ActorCell.create(ActorCell.scala:578) ~[akka-actor_2.10-2.2.3.jar:2.2.3] | |
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:425) ~[akka-actor_2.10-2.2.3.jar:2.2.3] | |
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:447) ~[akka-actor_2.10-2.2.3.jar:2.2.3] | |
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:262) ~[akka-actor_2.10-2.2.3.jar:2.2.3] | |
at akka.dispatch.Mailbox.run(Mailbox.scala:218) ~[akka-actor_2.10-2.2.3.jar:2.2.3] | |
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) [akka-actor_2.10-2.2.3.jar:2.2.3] | |
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library-2.10.4.jar:na] |
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
traceroute to de1.instatfootball.tv (78.47.168.62), 64 hops max, 52 byte packets | |
1 192.168.1.254 (192.168.1.254) 1.623 ms 3.335 ms 1.343 ms | |
2 10.81.24.1 (10.81.24.1) 9.073 ms 8.527 ms 8.575 ms | |
3 10.1.229.26 (10.1.229.26) 8.387 ms 7.785 ms 8.266 ms | |
4 10.251.179.201 (10.251.179.201) 7.724 ms 9.363 ms 8.441 ms | |
5 10.251.174.36 (10.251.174.36) 8.289 ms 8.530 ms 8.472 ms | |
6 10.251.175.1 (10.251.175.1) 9.941 ms 8.362 ms 10.709 ms | |
7 10.251.179.186 (10.251.179.186) 12.021 ms | |
10.251.179.226 (10.251.179.226) 9.214 ms | |
10.251.179.218 (10.251.179.218) 8.221 ms |
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
Задача: написать приложение на Ruby on Rails, в котором: | |
На эндпойнт /incoming/ приходят POST-запросом данные в следующем формате: | |
<?xml version="1.0" encoding="UTF-8"?> | |
<data> | |
<players> | |
<player id="19489" name="Юрий" surname="Лодыгин" birthday="26.05.1990" height="185" weight="82" /> | |
<player id="3779" name="Доменико" surname="Кришито" birthday="30.12.1986" height="183" weight="75" /> | |
<player id="6796" name="Эсекьель" surname="Гарай" birthday="10.10.1986" height="188" weight="85" /> |
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
{"key":"47707d8bb76af58c7e4759e650233f22","callText":"Куда: ТурциÑ\u0017\nЖелаемые даты вылета: 8—9 авгуÑта\u0017\nСколько ночей: 7 - 10\u0017\nКто едет: 2 взроÑлых\u0017\nПожеланиÑ: ","warning":"","searchId":15617586,"searchKey":"47707d8bb76af58c7e4759e650233f22","searchTitle":"Туры в Турцию","searchUrl":"http://www.onlinetours.ru/tours/47707d8bb76af58c7e4759e650233f22?from=form","activeTime":0,"nextPageOffset":14,"results":[{"id":34302,"title":"Ðкономь и радуйÑÑ! ТурциÑ, отели Larissa, Ð’ÑÑ‘ включено!","gtm_url":"/special_offers/34302?from=form","url":"/special_offers/34302?from=form","stars":null,"location":"ТурциÑ","images":["http://static1.onlinetours.ru/system/uploads/special_offer_photo/image/6073/preview_8787519_l.jpg","http://static2.onlinetours.ru/system/uploads/special_offer_photo/image/6012/preview_Handsome_man_having_wife_a_piggyback_on_the_beach.jpg"],"price":"63 800","dat |
OlderNewer