Skip to content

Instantly share code, notes, and snippets.

View alejandro's full-sized avatar

Alejandro Morales alejandro

  • Revls
  • Tegucigalpa, Honduras
View GitHub Profile
[{
"id": "1",
"time": "20:30pm (4/16)",
"link": "https://twitter.com/saludhn/status/1250972755996139522/photo/1",
"headline": "A 9.3% sube la tasa de mortalidad en Honduras:",
"abstract": "Se lamentan 6 nuevas muertes, todas en Cortés."
}, {
"id": "3",
"time": "12:00am (4/16)",
"link": "https://twitter.com/radiohrn/status/1250873543065243648",

Run each of the following lines, replacing yourdomain.com and codehere with your details:

now dns add yourdomain.com @ TXT google-site-verification=codehere
now dns add yourdomain.com @ MX ASPMX.L.GOOGLE.COM 1
now dns add yourdomain.com @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add yourdomain.com @ MX ALT4.ASPMX.L.GOOGLE.COM 10
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli 'node-gyp' ]
2 info using npm@1.1.61
3 info using node@v0.8.9
4 verbose node symlink C:\Program Files (x86)\nodejs\\node.exe
5 verbose read json C:\Users\DELL GAMEZ\AppData\Roaming\npm\package.json
@alejandro
alejandro / app.js
Last active December 24, 2015 08:29
A Disqus component for Ember.js
App.CDisqusComponent = Em.Component.extend({
didInsertElement: function(){
var root_url = "website url"
, page_id = window.location.href
, disqus_identifier = page_id
, disqus_title = Em.$('title').text()
, disqus_url = page_id
, disqus_shortname = 'disqus shortname'
, el_id = disqus_shortname + Date.now()
this.set('page_id', el_id)
html, body, button, input, textarea, select {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
body {
background: #fff;
color: #333;
font: normal normal 22px/1.6 'dosis','Helvetica Neue',Helvetica,Arial,Verdana,sans-serif;
td {
background: cyan;
min-width: 100px;
height: 100px;
text-align: center;
font-family: Arial;
font-weight: 800;
font-size:30px;
}
td {
background: cyan;
min-width: 100px;
height: 100px;
text-align: center;
font-family: Arial;
font-weight: 800;
font-size:30px;
}
@alejandro
alejandro / apache.md
Created April 17, 2013 17:10
Running apache in diferent ports and dirs

Sin ser un especialista en Apache o PHP, decidi investigar en como correr diferentes "apps" en diferentes puertos, digo, para tener app1 en el puerto 8080, app2 en el puerto 8082, como normalmente lo haria en Node sin ningún problema.

Investigando me encontré con VirtualHosts y las configuraciones de sites-enabled, así que aqui va una rápida configuración:

/etc/apache2/ports.conf

Para escuchar en el puerto 3010, solo agregar:

NameVirtualHost *:3010
Listen 3010
@alejandro
alejandro / index.html
Last active December 15, 2015 13:29
A un unico usuario
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript">
var ws = io.connect()
@alejandro
alejandro / telescope.md
Last active December 11, 2015 19:48
Running Telescope

De nada a Telescope

Primero que nada, asegurarse que se tiene instalado MongoDB y Node, luego proceder a instalar meteor:

$ curl https://install.meteor.com | /bin/sh

Nota Preferir este método al de npm install meteor, el paquete en npm esta desactualizado.