Posts

Шпаргалка по значениям umask в UNIX/Linux и пару полезных ссылок

Image
Шпаргалка по значениям umask в UNIX/Linux и пару полезных ссылок Все возможные режимы umask Создание файлов с определённым режимом  (eng.) Что такое umask и как установить права на файл или директорию

Как отобразить объект JavaScript

Image
console . log ( obj ) str = JSON . stringify ( obj ); str = JSON . stringify ( obj , null , 4 ); // (Optional) beautiful indented output. console . log ( str ); // Logs output to dev tools console. alert ( str ); // Displays output using window.alert() Ссылка на Mozilla API Reference и другие примеры obj = JSON . parse ( str ); // Reverses above operation (Just in case if needed.) Источник: https://stackoverflow.com/questions/957537/how-can-i-display-a-javascript-object

Географический атлас 'Мир и человек' (1988)

Географический атлас 'Мир и человек' (1988)  on Scribd

Шикарный туториал по селекторам jQuery для новичков (link)

Image
http://anton.shevchuk.name/javascript/jquery-for-beginners-selectors/

Перенаправление вывода в linux(unix) - Output redirection in linux(unix)

Image
  echo test > afile . txt ..redirects stdout to afile.txt . This is the same as doing.. echo test 1> afile . txt To redirect stderr, you do.. echo test 2 > afile . txt >& is the syntax to redirect a stream to another file descriptor - 0 is stdin. 1 is stdout. 2 is stderr. You can redirect stdout to stderr by doing.. echo test 1 >& 2 # or echo test >&2 ..or vice versa: echo test 2 >& 1 So, in short:  2> redirects stderr to an (unspecified) file, appending &1 redirects stderr to stdout In the shell, what does “ 2>&1 ” mean?   Crontab, want to mail just errors to myself AND log output in separate file Some additional INFO: Основы системного администрирования Linux: работа с консолью Техническая библиотека IBM - Linux 101 Перенаправление вывода (википедия) Перенаправление ввода/вывода, каналы и фильтры в BASH Что значит >/dev/null 2>&1 Advanced Bash-Scripting Guide and little addon: [command

Check your site for broken links as Crawler or Spider (useful for Linux)

Image
Check your site for broken links as Crawler or Spider (useful for Linux) http://www.pc-freak.net/blog/checking-your-website-for-broken-links-on-linux-with-linkchecker-and-htcheck-how-to-find-broken-links-on-your-website/ http://htcheck.sourceforge.net Pros: The "Spider" or "Crawler" - HTTP/1.1 compliant with persistent connections and cookies support - HTTP Basic authentication supported - HTTP Proxy support (basic authentication included) - Crawl customisable through many configuration attributes which let the user limit the digging on URLs pattern matchings and distance ("hops") from the first URL. - MySQL databases directly created by the spider - MySQL connections through user or general option files as defined by the database system (/etc/my.cnf or ~/.my.cnf) Cons:  for htcheck but not for linkcheckr : No support for Javascript and other protocols like HTTPS, FTP, NNTP and local files.

Vagrant + Windows (some useful links)

Vagrant + Windows (some useful links) Getting Started with Vagrant on Windows Change VAGRANT_HOME directory on windows   Vagrant and Windows и на закуску: 5 Easy Ways to Get Started with PHP on Vagrant   Vagrant для PHP-проекта  

Дневник канадского иммигранта (humour detected)

Дневник канадского иммигранта 15-е августа. Вот мы и в Канаде!!! Я очарован этой страной! Здесь восхитительно! Горы так прекрасны. С нетерпением жду, когда увижу их покрытыми снегом. 14-е октября. КАНАДА! Это самое чудесное место на земле! Листья на деревьях пожелтели и приобрели все оттенки спектра, от красного до оранжевого. Вчера совершил увлекательную поездку за город, в сельскую местность. Вы не поверите! Видел диких оленей! На воле, они так красивы и грациозны. Поистине это самые очаровательные животные на планете. Ну просто милашки! Нет, здесь действительно рай! 11-е ноября. Скоро открывается сезон охоты на оленей. Это ужасно! Не могу себе представить, что у кого то может подняться рука на это милое, безобидное создание. Со дня на день ожидаем снег. Мне здесь нравится! 2-е декабря. Наконец-то! Этой ночью выпал снег. УРА!!! Проснувшись поутру, мы обнаружили очаровательную картину за окном. Все покрыто белоснежным, пушистым покрывалом. Вид, как на удивительной рождес

Полезное под linux/unix

Image
Полезное под linux/unix (черновик) http://www.commandlinefu.com/commands/browse/sort-by-votes/25 - рейтинг консольных команд Unix/Linux (тут можно найти довольно интересные и полезные команды) Как узнать какой у Вас дистрибутив(link)  a также могут помочь следующие команды(пакеты): screenfetch - базовая инфо, по вашей linux (перед запуском нужно её установить sudo apt-get install screenfetch (для ubuntu, debian), для других дистрибутивов вот ссылка есть ещё одна команда neofetch - это расширенный screenfetch, устанавливается также как и screenfetch ( ссылка ) wslfetch - это  screenfetch  для windws linux subsystem WSL (расширенная инфо - ссылка ) nnn - консольный файловый менеджер (очень удобная вещь при очень скромных потреблениях системных ресурсов :-) ... круче чем mc ))) P.S.: уровень кастомизации запредельный (тонны плагинов) запуск с ключем -е позволяет сразу открывать текстовые файлы во встроенном редакторе  vi ( ссылка на описание как сразу сделать редактор красивым с и

Vagrant modifying the Owner/Group when mounts synced folders

Modifying the Owner/Group By default, Vagrant mounts the synced folders with the owner/group set to the SSH user. Sometimes it is preferable to mount folders with a different owner and group. It is possible to set these options: config . vm . synced_folder "src/" , "/srv/website" , owner: "root" , group: "root"   https://www.vagrantup.com/docs/synced-folders/basic_usage.html  

Подсказка по командам Linux + раскрашивание (Solorized)

Раскрашиваем директории : Robert Mark Bram - ls --color scheme Chris Wilson - Re: No color when using ls buluschek development » Setting ls to reasonable colors in cygwin colors - Colored files in Windows terminal via Cygwin? - Stack Overflow Solarized: A Must Have Color Scheme For Gnome Terminal, Vim, Gedit And Lots More ~ Web Upd8: Ubuntu / Linux blog Красим BASH Красим всё  остальное Команды устанавливаемые отдельно для раскрашивания лог файлов: 1. ccze  ( apt-get install  ccze    Just do  tail -f /var/log/apache2/error.log | ccze You are done!) 2.  grc  ( apt-get install grc    Just do  grc tail -f /var/log/apache2/error.log You are done!) 3. colorize ( apt-get install colorize   ) additional configuration needed, after install 4. multittail  ( Just do  multitail /var/log/apache/access.log ) 5.  TxtStyle  ( Just do  tail -f example.log | txts -n example ) под иксами (в системе x-window) нажатие ctrl+t - вызовет окно терминала alias ls = "ls -lah --color=auto&q