Skip to content

Instantly share code, notes, and snippets.

@zipme
zipme / up-and-running-with-edeliver-on-do.md
Created August 1, 2016 06:06 — forked from mattweldon/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver

Build Server

  • Go to Digital Ocean
  • Create new droplet
  • London
  • Ubuntu
  • No apps
  • Add SSH keys
@zipme
zipme / bem.scss
Last active August 29, 2015 14:12
BEM Sass Mixins
/// Block Element
/// @access public
/// @param {String} $element - Element's name
@mixin element($element) {
&__#{$element} {
@content;
}
}
/// Block Modifier
@zipme
zipme / SassMeister-input.scss
Created December 5, 2013 14:54 — forked from lunelson/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
/*
A slightly more automated approach to BEM modifier classes:
using '&' parent selector interpolation, modifiers extend their bases,
so that HTML markup requires only the modifier class not the base *and* modifier
*/
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth0 -p tcp -d xx.xx.xx.xx --dport 443 -j DNAT --to-destination 168.143.162.100:443
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
#======
"echo 1 > /proc/sys/net/ipv4/ip_forward" is not permenant,If we want to make this configuration permanent the best way to do it is using the file /etc/sysctl.conf
where we can add a line containing net.ipv4.ip_forward = 1