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
| String cmd = request.getParameter("cmd"); | |
| //System.out.println(cmd); | |
| List<String> lst=new ArrayList(); | |
| Runtime run = Runtime.getRuntime(); | |
| Process p = null; | |
| //String cmd = "pwd"; | |
| try { | |
| p = run.exec(cmd); | |
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/ksh | |
| PATH=/usr/java/bin:$PATH | |
| L=/var/Mylib | |
| LOG=/tmp/logs | |
| export PATH | |
| CLASSPATH1=./NombreProyecto:./NombreProyecto/Myjar.jar:$L/log4j-1.2.16.jar:$L/gson-2.2.1.jar:$L/esper-4.6.0.jar:$L/commons-logging-1.1.3.jar:$L/cglib-nodep-2.2.jar:$L/banorte15.5.jar:$L/antlr- |
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
| $('#element').css({left:($(window).width() - $('#contenedorPrincipal').outerWidth())/2} |
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.digitalocean.com/community/tutorials/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql | |
| acceso remoto | |
| tambien debe aplicar el comando em | |
| mysql>GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'mozillamysql'; |
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
| Si tengo este jqgrid | |
| function dibujaGrid(idTabla, myControls, colNamesParam, colModelParam, | |
| captionTitle, Width, Height, Filtro, Footer) { | |
| // Grid para los eventos | |
| jQuery("#" + idTabla).jqGrid({ | |
| datatype : "json", | |
| scroll : true, | |
| loadtext : 'Cargando...', | |
| colNames : colNamesParam, |
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
| $('input[id^="HS_"]').click(function () { | |
| var obj=$(this).attr('title'); | |
| if ($(this).prop('checked')) { | |
| // checked | |
| $("#myid").showCol(obj); | |
| }else { | |
| // Unchecked | |
| $("#myid").hideCol(obj); | |
| } | |
| }); |
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
| .contentNav> div | |
| { | |
| display: inline-block; | |
| border: solid 1px #000; | |
| } | |
| <div id="container"> |
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
| Uno a uno ir colocando esto en consola para actualizar el repositorio con nuevos archivos agregados al proyecto | |
| git add . | |
| git status | |
| git commit -m "some message goes here" | |
| git push origin master |
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
| select * into nueva_TAbla | |
| from tabla_origen where 1=2 |
OlderNewer