Skip to content

Instantly share code, notes, and snippets.

Установка в FreeBSD
---------------------------
Часть используемого ПО распространяется только в виде бинарных файлов, в связи с чем есть некоторые трудности (не найдены defluff и cryopng, не собирается pngrewrite).
```sh
## storing current dir
pushd . > /dev/null
### Installing needed ports
@rc5hack
rc5hack / restore_from_dump.sh
Created May 15, 2013 08:56
Restoring database(s) from dump, assume that *.sql contains "CREATE TABLE" statements, and *.txt contains table data. Folder name is name of database. Based on old Bookvoed's code. Syntax: cd /path/to/folders-with-dumps && ./restore_from_dump.sh database1 database2 ... databaseN
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "You should tell me where to work! I can't guess."
exit 1
fi
dir=$(pwd)
alert('foo bar from sandbox.js at github.com');
/*
* This code is to insert into userspace .js file on rodovid.org project
* (e.g. http://en.rodovid.org/wk/User:YourUsername/monobook.js)
*/
(function (window) {
window.loadedUserScripts={};
window.importUserScriptURI=function(url){
if(loadedUserScripts[url]){return null;}
/*
* Code copied from Russian wikipedia (08.02.2012)
*/
window.loadedScripts={};
window.importScriptURI=function(url){
if(loadedScripts[url]){return null;}
loadedScripts[url]=true;
var s=document.createElement('script');
@rc5hack
rc5hack / bots.hosts
Created January 23, 2013 10:17
Variables/bots.hosts for YaBB 2.x
alexa|Alexa
ia_archiver|Alexa archiver
yandex|Яndex
YaDirectBot|Яndex direct
YandexMetrika|Яndex metrika
crawl.yahoo|Yahoo
mercator|Mercator
surveybot|SurveyBot
wisenutbot|WISENutbot
atext.com|Exite Architext Spider