Skip to content

Instantly share code, notes, and snippets.

View jpaljasma's full-sized avatar
🎯
Focusing

Jaan Paljasma jpaljasma

🎯
Focusing
View GitHub Profile
@jpaljasma
jpaljasma / NewMacConfig.md
Last active December 4, 2015 17:22 — forked from offsky/NewMacConfig.md
Setup new mac for web development (Updated for Yosemite)
@jpaljasma
jpaljasma / mysql-remove-duplicates.sql
Created January 25, 2014 00:24
Delete duplicates from MySQL database
CREATE TEMPORARY TABLE temp SELECT DISTINCT code, airport FROM `iata_airport_codes` GROUP BY code HAVING COUNT(*)>1;
DELETE FROM iata_airport_codes WHERE (code) IN (SELECT code FROM temp);
INSERT INTO iata_airport_codes(code, airport) SELECT code, airport FROM temp;
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
# Creamos un fichero PID para monit
SCRIPT="$(basename $0)"