Skip to content

Instantly share code, notes, and snippets.

View ErneX's full-sized avatar

Ernesto González Aroca ErneX

View GitHub Profile
@ErneX
ErneX / 2014_music.md
Last active January 2, 2016 16:58
2014 Music!

2014 LP releases

January

  • 28th | Actress - Ghettoville

February

  • 17th | Lucy - Churches Schools and Guns

March

  • 3rd | Edit Select - Phlox
@ErneX
ErneX / gist:6859700
Created October 6, 2013 22:02
iMac wake on lan + remote access
Wake On Lan:
Mi router es un Comtrend y este router en particular la tabla ARP no hay manera de crear entradas permanentes desde la UI web, pero se puede via telnet. No recuerdo ahora exactamente bajo cuales circunstancias se olvidaba de las entradas ARP que se creaban automáticamente, creo que si reiniciabas el router las perdía o algo. Entonces busqué la manera de recrear estas entradas de forma automática periódicamente mediante un script para que estuviesen al día y poder enviar el magic packet y que el router supiese a cual ordenador pasarlo.
La solución con la que he dado es esta:
1.
Instalar SleepWatcher http://www.bernhard-baehr.de es un programa que lo instalas con launchd y te permite ejecutar scripts cuando el ordenador se duerme o despierta.
2.
@ErneX
ErneX / gist:4994966
Created February 20, 2013 11:46
Playstation – See the Future – Feb 20th 2013 – Live Streams
http://www.gametrailers.com/games/tkebzh/playstation-4
http://www.4players.de/4players.php/sony-live-stream/
http://www.gamespot.com/features/playstation-meeting-2013-ps4-announcement-6403818/
http://www.ign.com/articles/2013/02/14/watch-the-220-playstation-event-on-ign+
https://secure.eu.playstation.com/meeting2013/
http://www.vg247.com/2013/02/19/ps4-announcement-watch-live-here-tomorrow/
@ErneX
ErneX / gist:3179774
Created July 26, 2012 01:42
OS X Mountain Lion clean install & Rails
OS X Mountain Lion clean install Rails development environment setup using MySQL, imagemagick, homebrew and rvm. Rough steps, your mileage or your needs may vary:
- Install XCode from the App Store.
- Launch XCode > Preferences > Downloads > Install the Command Line Tools
- Install XQuartz version 2.7.2 http://xquartz.macosforge.org/trac/wiki/X112.7.2
- Install git, I used git-osx-installer version 1.7.11.3 http://code.google.com/p/git-osx-installer/downloads/list
- Install Ruby 1.9.3 with rvm, run this command on a terminal and follow the instructions: curl -L https://get.rvm.io | bash -s stable --ruby
- Install MySQL using the DMG installer, I used version 5.1.63 found here http://dev.mysql.com/downloads/mysql/5.1.html I use this to get the files needed for the mysql2 gem to install, I don't install the prefpane or the init script since I use MAMP as my MySQL server on my Mac.
- Install homebrew: https://github.com/mxcl/homebrew/wiki/installation
- Install ghostscript, from a terminal: brew install ghosts
/*
* touchSwipe - jQuery Plugin
* http://plugins.jquery.com/project/touchSwipe
* http://labs.skinkers.com/touchSwipe/
*
* Copyright (c) 2010 Matt Bryson (www.skinkers.com)
* Licensed under the GNU GPL license
*
* $version: 1.2.1
*
/*
http://labs.skinkers.com/touchSwipe/demo/image_scroll.php
*/
setimgwidth();
window.onorientationchange = setimgwidth;
function setimgwidth () {
/*window.orientation returns a value that indicates whether iPhone is in portrait mode, landscape mode with the screen turned to the
left, or landscape mode with the screen turned to the right. */
var orientation = window.orientation;
(function($) {
$.fn.earsnav = function(options) {
var defaults = {
wrapperCSS : {},
pointerSize: 14,
textTransform: 'none',
opacity: .8,
backgroundColor: '#234',
fontColor: '#eee',
fontFamily: 'Arial, Helvetica, sans-serif',
(function($) {
$.fn.earsnav = function(options) {
var defaults = {
wrapperCSS : {},
pointerSize: 14,
textTransform: 'none',
opacity: .8,
backgroundColor: '#234',
fontColor: '#eee',
fontFamily: 'Arial, Helvetica, sans-serif',