- Make sure you have a modern-ish version of Node.js installed.
- Type
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
- Connect to it from a client, e.g.
netcat
or similar:nc localhost 9000
Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure.
In order to design a piece of software we need to “design” the team that is going to produce it.
This fast tutorial will teach you how to install redis-cli
on AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:
$ sudo yum install gcc
This may return an "already installed" message, but that's OK. After that, just run:
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
/* Here's the compiled CSS */ | |
@import url("http://fonts.googleapis.com/css?family=Droid+Sans"); | |
body { | |
font-family: Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif; | |
font-size: 14px; | |
line-height: 25px; | |
font-weight: 300; | |
color: #444; | |
} |
# This hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file for non-commercial uses, | |
# as long the original URL and attribution is included. | |
#<localhost> | |
127.0.0.1 localhost | |
127.0.0.1 localhost.localdomain | |
255.255.255.255 broadcasthost | |
::1 localhost |
// Haz un programa en Java obtenga la fecha actual del sistema y | |
// a. Permita obtener por separado y lo muestre por consola: el día del mes, | |
// el día de la semana y la hora (formato 24h). Revisa la documentación | |
// de las clases java.util.Calendar, java.util.GregorianCalendar para | |
// llevar a cabo este apartado. Por ejemplo si la fecha actual del | |
// sistema es Fri Aug 30 16:05:13 CEST 2013, la salida por consola sería | |
// Día del mes: 30 | |
// Día de la semana: 6 | |
// Hora del día (24Hrs): 16 | |
// b. Permita añadir un mes a la fecha actual y muestre la fecha calculada |
<?php | |
class PassAPI extends Plugin | |
{ | |
# Registration | |
# register a device to receive push notifications for a pass | |
# | |
# POST /v1/devices/<deviceID>/registrations/<typeID>/<serial#> | |
# Header: Authorization: ApplePass <authenticationToken> | |
# JSON payload: { "pushToken" : <push token, which the server needs to send push notifications to this device> } | |
# |
var winston = require('winston') | |
require('winston-mongodb') | |
// prepare some custom log levels | |
var customLevels = { | |
levels: { | |
debug: 0, | |
info: 1, | |
warning: 2, | |
error: 3 |