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
python -m SimpleHTTPServer 8080 |
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
ssh -fCND <localport> <user>@<host> |
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
<div id="wrapper"> | |
<div class="elem"></div> | |
<div class="elem"></div> | |
<div class="elem"></div> | |
</div> |
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
#Save list: | |
rpm --queryformat=%{NAME}" " -qa > package.list | |
#Install from list: | |
sudo yum install $(cat packages.list) |
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
find . -name "*.mp3" -print0 | xargs -0 mid3iconv -e CP1251 -d |
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
"info": { | |
"title": "Вторая Пуническая война", | |
"blocks": [ | |
{ | |
"name": "Дата", | |
"type": "text", | |
"body": "218 год до н. э. — 201 год до н. э.", | |
}, | |
{ | |
"name": "Место", |
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
{ | |
"id": 100, | |
"name": "second_punic_war", | |
"label": "Вторая Пуническая война", | |
"description": "Вторая Пуническая война (называемая также римлянами «войной против Ганнибала» и Ганнибаловой войной[3], 218—201 до н. э.) — военный конфликт между двумя коалициями, во главе которых стояли Рим и Карфаген, за гегемонию в Средиземноморье. В разное время на стороне Рима воевали Сиракузы, Нумидия, Этолийский союз и Пергам, на стороне Карфагена — Македония, Нумидия, Сиракузы и Ахейский союз. Официальной причиной войн стала [[Осада Сагунта|осада и взятие испанского города Сагунта]] (союзника Рима) карфагенским полководцем [[Ганнибал Барка|Ганнибалом]]. После этого римляне объявили Карфагену войну. Поначалу карфагенская армия под предводительством Ганнибала одерживала верх над римскими войсками. Самой значительной из побед карфагенян является [[битва при Каннах]], после которой в войну на стороне Карфагена вступила Македония. Однако римляне вскоре смогли перехватить инициативу и перешли в наступление. Последним сраже |
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
{ | |
"timestamp": 1477390003288, | |
"types": [ | |
{ | |
"id": 1, | |
"name": "вооружённый конфликт", | |
"types": [ | |
{ | |
"id": 2, | |
"name": "война" |
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
{ | |
"dicts": [ | |
1477390003288, | |
[ | |
[ | |
1, | |
"вооружённый конфликт", | |
[ | |
[2, "война"], | |
[3, "восстание"], |
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/bash | |
# Recursive file convertion windows-1251 --> utf-8 | |
# Place this file in the root of your site, add execute permission and run | |
# Converts *.php, *.html, *.css, *.js files. | |
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
while read file | |
do |
OlderNewer