Skip to content

Instantly share code, notes, and snippets.

View fernandezpablo85's full-sized avatar

Pablo Fernandez fernandezpablo85

View GitHub Profile
## The Problem
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
## The temptingly easy but ultimately wrong solution:
Alter the port the script talks to from 8000 to 80:
}).listen(80);
package com.diegodella.foodtruckerapp.setting;
import android.content.Context;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
$("<div/>").
append("<p/>").
append("<otro/>")
package main
import (
"net"
"os"
)
const (
RECV_BUF_LEN = 1024
)
package main
import (
"net"
"os"
)
const (
RECV_BUF_LEN = 1024
)
// try it out!
fn main() {
io::println("hello rustpad.");
io::println("hello rustpad.");
}
// try it out!
fn main() {
io::println("hello rustpad.");
io::println("hello rustpad.");
}
// try it out!
fn main() {
io::println("hello rustpad.");
io::println("hello rustpad.");
}
class ConductorSimple extends Simulation {
val httpConf = http.baseURL("http://my.rpoxy.net:3000").disableFollowRedirect
val conductor = scenario("conductor test")
.exec(
http("small").get("/cloud/raw/small").check(status.is(200))).pause(0 milliseconds, 100 milliseconds)
.exec(
http("medium").get("/cloud/raw/medium").check(status.is(200)))
namespace Proveedores
{
public interface IMapeadorCRUD<V, F>
{
bool Agregar(V valor);
bool Modificar(V valor);
bool Eliminar(V valor);
List<V> Listar(F filtro);
V Consultar(F filtro);
}