Skip to content

Instantly share code, notes, and snippets.

aspe:keyoxide.org:SLXBTZLB4TW2PWJCANS67HIAJM
@damko
damko / keybase.md
Last active August 23, 2018 17:08
keybase.md

Keybase proof

I hereby claim:

  • I am damko on github.
  • I am damko (https://keybase.io/damko) on keybase.
  • I have a public key ASAPu_aiH20JnTLd6aYT8GSNDPRx15IR0W1ULDLv9Z3cSQo

To claim this, I am signing this object:

@damko
damko / PSR-2.xml
Created March 14, 2016 11:56 — forked from netojoaobatista/PSR-2.xml
Code formatter for Zend Studio using the FIG-Standards PSR-2 Coding Style Guide. see: https://github.com/netojoaobatista/PSR-2
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles>
<profile name="PSR-2">
<setting id="com.zend.php.core.formatter.insert_new_line_in_function_invoke" value="0"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_force_split" value="true"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_indent_policy" value="2"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_line_wrap_policy" value="1"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_force_split" value="true"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_indent_policy" value="2"/>
<setting id="com.zend.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_line_wrap_policy" value="1"/>
@damko
damko / gist:ddfe1dc9017031a1405e
Created February 11, 2015 14:33
Prevent accidental halt of vagrant production vms
In Vagrantfile add the IF block right after the config.vm.define for the production vm
config.vm.define DO_VM_NAME do |production|
if ARGV[0] == 'halt'
puts "You can not halt the production vm"
ARGV.clear
exit
end
end
@damko
damko / example.css
Created December 28, 2014 14:42
angularjs UI - Vertical tabs stacked on the left - tab content on the right
.nav, .pagination, .carousel, .panel-title a { cursor: pointer; }
.ng-isolate-scope > .nav-tabs {
border-bottom: 0;
}
.tab-content > .tab-pane,
.pill-content > .pill-pane {
display: none;
@damko
damko / bs3_vertical_tabs
Created December 28, 2014 10:49
Bootstrap 3 - Vertical tabs stacked on the left, tabs body on the right
<!-- taken from http://www.bootply.com/74926 -->
<style type="text/css">
.tabs-left > .nav-tabs {
border-bottom: 0;
}
.tab-content > .tab-pane,
.pill-content > .pill-pane {
@damko
damko / gist:7931014
Last active December 31, 2015 03:59
Gitlab 6.3.1 Gmail configuration

Gitlab 6.3.1 Gmail configuration

Copy or rename the sample smtp settings file into smtp_settings.rb

sudo -u git -H cp config/initializers/smtp_settings.rb.sample config/initializers/smtp_settings.rb

Note: in 6.3.1 there is no need to modify config/environments/production.rb line: config.action_mailer.delivery_method. Leave the original value :sendmail

Edit smtp_settings.rb as follow