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() { | |
| tinymce.PluginManager.add( 'custom_sections', function( editor, url ) { | |
| // Add Button to Visual Editor Toolbar | |
| editor.addButton('custom_sections', { | |
| title: 'Covertir en sección', | |
| cmd: 'custom_sections', | |
| image: '/wp-content/plugins/tinymce-secciones/ico-secciones.png' | |
| }); |
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
| public object GetUserAutenticate(string token, string email, string password) | |
| { | |
| string redirectUrl = 'http://miweb.com/'; | |
| var url = $"{redirectUrl}api/usuarios/autenticar"; | |
| var request = (HttpWebRequest)WebRequest.Create(url); | |
| string json = $"{{\"email\":\"{email}\",\"password\":\"{password}\"}}"; | |
| request.Method = "POST"; | |
| request.Headers.Add("Authorization", "Bearer " + token); |
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
| // Javascript dentro del iframe | |
| // Recibe mensajes de la plataforma de origen donde está incrustado el iframe | |
| window.addEventListener('message', receiver, false); | |
| function receiver(event) { | |
| if(event.data.tipo_mensaje == 'valores_disponibilidad'){ | |
| // función que se encargará de procesar la información según el tipo | |
| } | |
| if(event.data.tipo_mensaje == 'valores_eventos'){ | |
| // función que se encargará de procesar la información según el tipo |
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
| /usr/bin/php7.1 /usr/local/bin/composer update | |
| /usr/bin/php7.1 artisan migrate --seed |
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
| <appSettings> | |
| <add key="coreClientID" value="2" /> | |
| <add key="coreClientSecret" value="secret" /> | |
| <add key="coreUrl" value="http://stps-registro.lol/" /> | |
| </appSettings> |
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
| curl -L https://download.moodle.org/download.php/direct/stable32/moodle-latest-32.tgz > moodle.tgz | |
| sudo tar -xvzf moodle.tgz -C /var/www/html |
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
| https://www.youtube.com/watch?v=pSrn2qek0CY | |
| https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php | |
| https://ga-dev-tools.appspot.com/account-explorer/?hl=es |
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
| find travel_cdmx/ -type d -exec chmod 775 {} \; | |
| find travel_cdmx/ -type f -exec chmod 664 {} \; |
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
| git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD | |
| git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d | |
| echo node_modules/ >> .gitignore | |
| git add .gitignore | |
| git commit -m 'Removing node_modules from git history' | |
| git gc | |
| git push origin master --force |
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
| sudo service nginx restart | |
| sudo service php7.0-fpm restart |
NewerOlder