Skip to content

Instantly share code, notes, and snippets.

View sbrin's full-sized avatar

Mikhail Ilin sbrin

View GitHub Profile
@sbrin
sbrin / gist:5635828
Created May 23, 2013 12:53
Copy website (wget recursive crawler)
wget -w 1 -r --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains DOMAIN --no-parent FOLDER/
@sbrin
sbrin / replace
Created February 4, 2013 16:09
Замена фрагмента текста (string replace)
find . -type f -name "index*" | xargs perl -pi~ -e "s/PREV/REPLACE/ig"
@sbrin
sbrin / urldecode.sh
Created February 4, 2013 16:07
urldecode cyrillic -> utf8
#!/bin/bash
echo $1 | perl -MURI::Escape -lne 'print uri_unescape($_)'
@sbrin
sbrin / index.html
Created January 22, 2013 12:45
A CodePen by A.
<form id="mailform" action="#" method="post">
<textarea name="message" placeholder="Текст тут какой-надо"></textarea>
<br>
<input id="mailbuttom" type="submit" value="Отправить">
</form>
<p id="mailsuccess" style="display:none">Заебись, отправил!</p>