Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| class ErbEngine < Haml::Engine | |
| def push_script(text, preserve_script, in_tag = false, preserve_tag = false, | |
| escape_html = false, nuke_inner_whitespace = false) | |
| push_text "<%= #{text.strip} %>" | |
| end | |
| def push_silent(text, can_suppress = false) | |
| push_text "<% #{text.strip} %>" | |
| end | |
| end |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/usr/bin/env bash | |
| # Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`. | |
| # Please modify the CONSTANT variables to fit your configurations. | |
| # The script will start with config set by $PUMA_CONFIG_FILE by default | |
| PUMA_CONFIG_FILE=config/puma.rb | |
| PUMA_PID_FILE=tmp/pids/puma.pid | |
| PUMA_SOCKET=tmp/sockets/puma.sock |
| # Capistrano 3 tasks for Puma | |
| namespace :puma do | |
| %w[start stop restart status].each do |command| | |
| desc "#{command} puma" | |
| task command do | |
| on roles (:app) do | |
| within current_path do | |
| execute "bin/puma.sh", "#{command} -c config/puma/#{fetch(:stage)}.rb" |
| module.exports = (grunt) -> | |
| # Project configuration. | |
| grunt.initConfig | |
| coffee: | |
| options: | |
| sourceMap: false | |
| app: | |
| expand: true | |
| cwd: 'public/js/coffee/' |
| <form action="<%= @pay_desc['mrh_url'] %>" method="post"> | |
| <input type=hidden name=MrchLogin value="<%= @pay_desc['mrh_login'] %>"> | |
| <input type=hidden name=OutSum value="<%= @pay_desc['out_summ'] %>"> | |
| <input type=hidden name=InvId value="<%= @pay_desc['inv_id'] %>"> | |
| <input type=hidden name=Desc value="<%= @pay_desc['inv_desc'] %>"> | |
| <input type=hidden name=SignatureValue value="<%= @pay_desc['crc'] %>"> | |
| <input type=hidden name=Shp_item value="<%= @pay_desc['shp_item'] %>"> | |
| <input type=hidden name=IncCurrLabel value="<%= @pay_desc['in_curr'] %>"> | |
| <input type=hidden name=Culture value="<%= @pay_desc['culture'] %>"> | |
| <input type=submit value='Оплатить'> |
| ru: | |
| devise: | |
| confirmations: | |
| confirmed: "Ваша учётная запись подтверждена. Теперь вы вошли в систему." | |
| send_instructions: "В течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи." | |
| send_paranoid_instructions: "Если ваш адрес email есть в нашей базе данных, то в течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи." | |
| failure: | |
| already_authenticated: "Вы уже вошли в систему." | |
| inactive: "Ваша учётная запись ещё не активирована." | |
| invalid: "Неверный адрес email или пароль." |
| require 'formula' | |
| class Pngout < Formula | |
| url 'http://static.jonof.id.au/dl/kenutils/pngout-20110722-darwin.tar.gz' | |
| homepage 'http://www.jonof.id.au/kenutils' | |
| md5 'ce70a9d70e08b1920e5ac88d130d0eb9' | |
| version '20110722' | |
| def install | |
| prefix.install Dir['*'] |
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb | |
| sudo dpkg -i elasticsearch-1.1.1.deb |
| // Doing AES-256-CBC (salted) decryption with node.js. | |
| // This code is based on http://php.net/manual/de/function.openssl-decrypt.php and works with PHP sqAES. | |
| // | |
| // Create your encrypted data with | |
| // echo -n 'Hello world' | openssl aes-256-cbc -a -e | |
| var crypto = require('crypto'); | |
| var password = 'password'; | |
| var edata = 'U2FsdGVkX18M7K+pELP06c4d5gz7kLM1CcqJBbubW/Q='; |