- Descargar el archivo
pisee.service(o copiar el contenido a un archivo). - Copiar el archivo
pisee.serviceal directorio que contiene los archivos de servicio de sistema
sudo cp -v pisee.service /etc/systemd/system - Recargar el demonio de servicios systemd
sudo systemctl daemon-reload - Activamos el servicio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { execFile } = require("child_process"); | |
| const timeoutSeconds = 5; | |
| console.log(`Waiting ${timeoutSeconds} seconds before launching RedCast OnTime...`); | |
| setTimeout(() => { | |
| console.log("Starting RedCast OnTime."); | |
| execFile("RedCast OnTime.exe").unref(); | |
| }, timeoutSeconds * 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # author: Tomás Girardi | |
| # Based on http://helw.net/2011/04/28/updating-osx-for-egypts-dst-changes/ by Ahmed El-Helw | |
| # CHANGE THIS: | |
| # go to https://www.iana.org/time-zones and get the URL for the last DATA | |
| # release | |
| URLTZDATASRC=https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz | |
| # BACKUP your current icu file first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function validaRut(campo){ | |
| if ( campo.length == 0 ){ return false; } | |
| if ( campo.length < 8 ){ return false; } | |
| campo = campo.replace('-','') | |
| campo = campo.replace(/\./g,'') | |
| var suma = 0; | |
| var caracteres = "1234567890kK"; | |
| var contador = 0; |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| exec tail -n +3 $0 | |
| # This file provides an easy way to add custom menu entries. Simply type the | |
| # menu entries you want to add after this comment. Be careful not to change | |
| # the 'exec tail' line above. | |
| # /etc/grub.d/40_custom | |
| menuentry "Android-x86" { | |
| set root='(hd1,msdos2)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function hex2rgb($hex) { | |
| $hex = str_replace("#", "", $hex); | |
| if(strlen($hex) == 3) { | |
| $r = hexdec(substr($hex,0,1).substr($hex,0,1)); | |
| $g = hexdec(substr($hex,1,1).substr($hex,1,1)); | |
| $b = hexdec(substr($hex,2,1).substr($hex,2,1)); | |
| } else { | |
| $r = hexdec(substr($hex,0,2)); |