This file contains 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
Basado en documentación en: | |
https://vdc-download.vmware.com/vmwb-repository/dcr-public/b7ae1097-9dc8-4323-9877-6e5380c54d17/48aca922-d7ac-455d-865d-50c9194de37a/HTML-Console-SDK-21.pdf | |
Ctrl+Alt+F1 es una tecla usada en las distribuciones de linux para cambiar de modo gráfico a modo consola, por ello cuando intentámos enviar esta combinación a una consola de vmware de html5, no nos es posible tan fácilmente, por ello, y como no se me ocurrió otra forma: | |
Abrir la consola javascript de firefox / chrome | |
y ejecutar los siguientes comandos: | |
----- | |
mywmks = WMKS.createWMKS("container", {}); | |
mywmks.sendKeyCodes([17,18,112]) ; //Ctrl+Alt+F1 |
This file contains 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 clone https://github.com/jordansissel/keynav | |
con esta configuración para que no estámos locos o no usamos tanto vim: | |
teclas: | |
123 | |
w | |
asd j | |
~/.keynavrc | |
------cut-here------ | |
clear | |
ctrl+semicolon start |
This file contains 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 apt-get install git | |
mkdir -p `~/src` | |
cd `~/src` | |
git clone https://github.com/nonpop/xkblayout-state.git | |
cd xkblayout-state | |
make | |
# | |
./xkblayout-state print %s | |
# | |
src:https://stackoverflow.com/questions/21483050/get-current-active-keyboard-layoutlanguage-in-linux |
This file contains 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
//10.x.y.z/Direcotorio\040con-espacios /dir-en-linux cifs credentials=/var/tmp/.smbcred,domain=DOMINIO,iocharset=utf8,sec=ntlm,vers=1.0 0 0 | |
------ | |
/var/tmp/.smbcred | |
- | |
username=mamartinez | |
password=xxxxxxxxx | |
------ |
This file contains 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
convert -density 150 -antialias "doc.pdf" -resize 1024x -quality 100 "doc.png" | |
doc-0.png | |
doc-1.png | |
... | |
--- | |
editamos en gimp etc y guardamos cada capa una hoja la primera hoja en la capa de hasta abajo y asi ya no será necesario -reverse y guardamos como mng | |
--- | |
convert -reverse doc.mng doc-alterado.pdf |
This file contains 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.rebasedata.com/ubuntu-read-fdb | |
curl -F files[]=@example.fdb https://www.rebasedata.com/api/v1/convert?outputFormat=csv -o output.zip |
This file contains 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
yum install -y xorg-x11-xauth xorg-x11-fonts-\* xorg-x11-utils xorg-x11-apps | |
/etc/ssh/sshd_config: | |
X11Forwarding yes | |
X11UseLocalhost yes | |
ssh -XY user@host | |
echo $DISPLAY | |
xclock |
This file contains 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 clone https://github.com/rbakels/PHP-Documentation | |
alias pman="man -M ./PHP-Documentation/manpages" | |
#test with: | |
pman explode |
This file contains 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
problem: | |
# ./configure | |
... | |
... | |
# make | |
/bin/cc -o perl.o -c perl.c -D_DEBUG_ | |
perl.c:9:20: fatal error: EXTERN.h: No such file or directory | |
#include <EXTERN.h> | |
^ | |
compilation terminated. |
This file contains 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 | |
#Restore screen width to normal | |
DNAME=`xrandr | tail -n+2|head -n1| cut -d " " -f1` | |
WxH=`xrandr | grep \* | awk '{print $1}'` | |
W=`echo ${WxH}|cut -d "x" -f1` | |
H=`echo ${WxH}|cut -d "x" -f2` | |
xrandr --fb ${W}x${H} --output ${DNAME} --mode ${W}x${H} --panning ${W}x${H} |