Skip to content

Instantly share code, notes, and snippets.

View raulmoyareyes's full-sized avatar
💻
Programming!

Raúl Moya Reyes raulmoyareyes

💻
Programming!
View GitHub Profile

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@raulmoyareyes
raulmoyareyes / dst.js
Last active March 2, 2018 14:32
Hora con horario de verano en Javascript
//Cambio de UTC+1 a UTC+2 en verano.
//El cambio horario se produce (a nivel Europeo) el último domingo de Marzo y de Octubre
function lastSunday(){
//días que tiene un mes
var nD = new Date(new Date().getFullYear(), new Date().getUTCMonth(), 0).getUTCDate();
var d = new Date().getUTCDay();
var n = new Date().getUTCDate();
var j = n;
@raulmoyareyes
raulmoyareyes / robot.txt
Created July 18, 2015 17:50
Robox.txt for Wordpress
#
User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins/
Disallow: /wp-content/cache/
Disallow: /wp-content/themes/
Disallow: */trackback/
Disallow: */feed/
@raulmoyareyes
raulmoyareyes / sitemap.xml
Last active August 29, 2015 14:25
Sitemap example for websites
<!-- More info in http://www.sitemaps.org/es/protocol.html -->
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.raulmoya.es/</loc>
<lastmod>2013-03-27T16:26:55+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>

Wallpapers

Install with git git clone https://gist.github.com/85942af486eb79118467.git ~/Pictures/wallpapers

@raulmoyareyes
raulmoyareyes / elementaryos_trash.md
Last active August 4, 2020 19:15
Create trash in elementaryOS

Launch this command in your temrminal

sudo subl /usr/share/applications/trash.desktop

Copy and paste this text in sublime text and save the file.

[Desktop Entry]
Comment=Contiene los archivos eliminados
EmptyIcon=emptytrash
# For Mac OS X El Capitan
sudo trimforce enable
# For Mac OS X Yosemite
# backup patched file
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original
# Important: Add "kext-dev-mode=1" as Kernel Arguments or the computer won't boot.
sudo nvram boot-args="kext-dev-mode=1"
sudo shutdown -r now
@wbroek
wbroek / genymotionwithplay.txt
Last active November 8, 2024 01:24
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@maxbrunsfeld
maxbrunsfeld / backbone_super.js
Created December 30, 2011 23:58
A 'super' method for backbone.js (plain javascript)
// This method gives you an easier way of calling super
// when you're using Backbone in plain javascript.
// It lets you avoid writing the constructor's name multiple
// times. You still have to specify the name of the method.
//
// So instead of having to write:
//
// User = Backbone.Model.extend({
// save: function(attrs) {
// this.beforeSave(attrs);