Skip to content

Instantly share code, notes, and snippets.

View netoff's full-sized avatar

Dusan Pantelic netoff

  • Serbia
  • 14:31 (UTC +01:00)
View GitHub Profile
@netoff
netoff / script.js
Last active January 13, 2024 14:47 — forked from bramus/script.js
List of valid HTML Elements
// Run this on https://developer.mozilla.org/en/docs/Web/HTML/Element
var tags = [], nodeList = document.querySelectorAll('td a code');
for (i in nodeList) {
if ((nodeList[i].innerText) && (nodeList[i].innerText.indexOf('<') > -1)) {
var tag = nodeList[i].innerText.replace('<','').replace('>','');
if (tags.indexOf(tag) == -1) {
tags.push(tag);
}
}
}
@netoff
netoff / rbenv-install-system-wide.sh
Created December 7, 2012 14:39 — forked from jnx/rbenv-install-system-wide.sh
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
echo '# rbenv setup' > /etc/profile.d/rbenv.sh
echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh
echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
chmod +x /etc/profile.d/rbenv.sh