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
((([0-9])|([A-X])){5}-){4}(([0-9])|([A-X])){5} | |
check on this F3JM7-7QNWQ-KKFVP-PDDRT-4M6P7 |
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
Installing Jupyter notebook on Windows | |
Anaconda Python | |
1) https://www.continuum.io/downloads | |
2) start on ip to get access from web and WITHOUT BROWSER | |
CMD: jupyter notebook --ip 192.168.56.101 --no-browser | |
3) Customize CELL width: | |
Add to <user folder>\.jupyter\custom\custom.css | |
with text | |
.container { width:100% !important; } | |
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
Install PhantomSF on Windows - module to parse HTML with javascript code on client (emulating browser behavior) | |
how-to: http://phantomjs.org/build.html | |
Need to build localy : | |
1) Install prerequisite soft | |
- Install MSVC 2013 (https://www.microsoft.com/en-us/download/details.aspx?id=40784 or just find Instal MSVC 2013 download ) | |
- Install Ruby from https://rubyinstaller.org/downloads/ (click on check box Add to PATH) | |
- Install Python from https://www.python.org/downloads/ (click on check box Add to PATH) | |
- Install Perl https://www.perl.org/get.html#win32 (you can choose http://strawberryperl.com/) | |
- Install Install MinGW ( instruction: http://www.mingw.org/wiki/howto_install_the_mingw_gcc_compiler_suite; install to C:\MinGW) |
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
FROM centos:latest | |
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm | |
RUN yum update -y && yum install wget java-1.8.0-openjdk unzip -y && yum install postgresql96 -y | |
ENV PATH /usr/pgsql-9.6/bin:$PATH | |
RUN mkdir /opt/pentaho | |
WORKDIR /opt/pentaho | |
# Name of archive with Pentaho DI |
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
create folder | |
1) | |
mkdir docker-compose-pg | |
cd docker-compose-pg | |
2) | |
vi docker-compose.yml | |
insert this text: | |
" |
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
How to install postgres from Docker HUB inside Virtual BOX CentOS VM and connect from outside docker HOST | |
1) | |
docker pull postgres | |
2) systemctl stop firewalld | |
systemctl mask firewalld | |
3) run docker container | |
docker run -p <IP-OF-DOCKER-HOST-MACHINE>:<>:5432 -rm --name <DB-NAME> -e POSTGRES_PASSWORD=<PASSWORD> -d <USER> |
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
Check virtualization is enabled | |
That may be needed if you want to check start virtualization INSIDE VM 8-) | |
On Windows just run: | |
wmic cpu get VirtualizationFirmwareEnabled if it's = TRUE - that's fine. | |
For example Docker checks only this attribute during: | |
docker-machine -D create tmp -d virtualbox |
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
How to run WMware VM with no gui | |
1) Install VMware VIX from vmware website | |
https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0|PLAYER-1200|drivers_tools | |
2) put path to installed folder to PATH variable, for example that path: | |
C:\Program Files (x86)\VMware\VMware VIX | |
3) run virtual machine with no gui, now if settings inside WM were set correctly u can connect to it via RDP | |
vmrun -T player start "D:\WMware VMs\Windows 10\Windows 10 Pro x64.vmx" nogui |
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
Setting static IP for CentOS Linux | |
* check ips by command ip addr | |
http://ask.xmodulo.com/configure-static-ip-address-centos7.html | |
Go to the /etc/sysconfig/network-scripts directory, and locate its configuration file (ifcfg-enp0s3). Create it if not found. | |
GATEWAY shoud be set | |
check /etc/resolv.conf |
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
Sometimes it's impossible to open saved CDE to edit cos button is inactive. | |
You can open it using api | |
for example | |
if dashboard was saved in path /Home/MyDashboard.wcdf | |
y can open it using | |
http://centos_pentaho:8080/pentaho/api/repos/:home:MyDashboard.wcdf/edit | |
* ":" delimeter path |