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 path = require('path'); | |
| module.exports = function(env) { | |
| const production = process.env.NODE_ENV === 'production'; | |
| return { | |
| devtool: production ? 'source-maps' : 'eval', | |
| entry: './js/app.js', | |
| output: { | |
| path: path.resolve(__dirname, '../priv/static/js'), | |
| filename: 'app.js', | |
| publicPath: '/', |
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
| from pymongo import MongoClient | |
| import serial | |
| import json | |
| import time | |
| def is_json(myjson): | |
| try: | |
| json_object = json.loads(myjson) | |
| except ValueError, e: | |
| return False |
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
| DocumentRoot /home/tineo/sf34/web | |
| <Directory /home/tineo/sf34/web> | |
| AllowOverride All | |
| Require all granted | |
| </Directory> |
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
| LOCK TABLES proyectos WRITE; | |
| DROP TRIGGER updFechaEntregaODT; | |
| DELIMITER $$ | |
| CREATE TRIGGER `updFechaEntregaODT` BEFORE UPDATE ON `proyectos` FOR EACH ROW BEGIN | |
| IF NEW.fecha_de_entrega_odt <> OLD.fecha_de_entrega_odt THEN | |
| INSERT INTO log_upd_fec_entrega_odt VALUES (NULL,OLD.id,OLD.fecha_de_entrega_odt,NOW()); | |
| END IF; | |
| END $$ | |
| DELIMITER ; | |
| UNLOCK TABLES; |
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
| #instalar | |
| #apt-get install synaptic apt-xapian-index -y | |
| #update-apt-xapian-index -vf | |
| #apt-get install barcode git ruby libgemplugin-ruby php5 libapache2-mod-php5 mysql-server libmysqlclient-dev php5-mysql ruby-mysql -y | |
| #gem install actionmailer -v 2.3.2 --no-rdoc --no-ri | |
| #gem install actionpack -v 2.3.2 --no-rdoc --no-ri | |
| #gem install activerecord -v 2.3.2 --no-rdoc --no-ri | |
| #gem install activeresource -v 2.3.2 --no-rdoc --no-ri | |
| #gem install activesupport -v 2.3.2 --no-rdoc --no-ri | |
| #gem install bundler -v 1.3.5 --no-rdoc --no-ri |
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 | |
| $salida = shell_exec('gem list --local'); | |
| echo "<pre>$salida</pre>"; | |
| ?> |
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
| import javax.swing.*; | |
| import javax.swing.table.DefaultTableModel; | |
| import javax.swing.table.TableModel; | |
| import java.io.*; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Scanner; |
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
| #INSTALACION DE ENTORNO VIRTUAL | |
| #instalar el virtualenv usando pip3 para python3 | |
| pip3 install virtualenv | |
| #ya que uso el pip3, virtualenv esta como un modulo | |
| #notese el -m y que el entorno tiene de nombre venv | |
| python3 -m virtualenv venv | |
| #activamos el entorno virtual |
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
| cd /etc/apache2/sites-available/ | |
| sudo cp old.conf new.conf | |
| sudo gedit new.conf | |
| sudo a2ensite new.conf | |
| sudo service apache2 reload | |
| sudo nano /etc/hosts | |
| 127.0.0.1 new.com |
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
| #check services running | |
| service --status-all | |
| #check MS SQL Server service status | |
| systemctl status mssql-server | |
| #disable MS SQL Server |