Skip to content

Instantly share code, notes, and snippets.

View Cponcax's full-sized avatar
🏠
Working from home

Alex Ponce Cponcax

🏠
Working from home
View GitHub Profile
@apotonick
apotonick / fuck-erb.rb
Last active October 8, 2018 22:29
Fucking Fuck Fuckers ERB and Fuck Rails And Fuck Haml And Fuck Their Fucking Fuck Hacks
## Smple
<pre>
"@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_append='Word.\n\n'.freeze;@output_buffer.append= link_to \"/rails/sucks\" do @output_buffer.safe_append='\n hallo\n'.freeze; end \n@output_buffer.safe_append='\n'.freeze;@output_buffer.to_s"
</pre>
ActionView::Template::Handlers::Erubis.new "<%= form_for Object.new do %>\n <%= link do %>hallo<% end %> \n<% end %>"
```ruby
@galulex
galulex / install.md
Last active February 28, 2021 14:15
Ruby On Rails Ubuntu 18.04 install

Developer libs

mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...

sudo apt-get install libxslt1-dev libxml2-dev build-essential patch libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs rar

Ruby

sudo apt-add-repository ppa:brightbox/ruby-ng

sudo apt-get update