Skip to content

Instantly share code, notes, and snippets.

((([0-9])|([A-X])){5}-){4}(([0-9])|([A-X])){5}
check on this F3JM7-7QNWQ-KKFVP-PDDRT-4M6P7
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; }
@dexalex84
dexalex84 / gist:9bb6f09b615e5758e4f97e597ad597d6
Created April 7, 2017 09:49
Building PhantomSF on Windows
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)
@dexalex84
dexalex84 / Dockerfile
Last active April 6, 2017 09:51
Pentaho DI CE 7.0 Install and run on Docker
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
@dexalex84
dexalex84 / gist:132a4833fae76a202544ddace912ddb2
Last active January 23, 2019 04:59
Creating postgresql container via docker-compose
create folder
1)
mkdir docker-compose-pg
cd docker-compose-pg
2)
vi docker-compose.yml
insert this text:
"
@dexalex84
dexalex84 / gist:446f66a5728e97f9955950dc3ed706b6
Last active April 3, 2017 17:26
How to install postgres from Docker HUB inside Virtual BOX CentOS VM and connect from outside docker HOST
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>
@dexalex84
dexalex84 / gist:ebcd72f69566ce0a288be09498eb8304
Created April 2, 2017 14:42
Check virtualization is enabled
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
@dexalex84
dexalex84 / gist:c570db84c06ab9a0baef63edd9b469b0
Created April 2, 2017 14:17
How to run WMware VM with no gui
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
@dexalex84
dexalex84 / gist:f71bebb98781ff7e42b826ff9238d837
Created April 1, 2017 08:27
Setting static IP for CentOS Linux
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
@dexalex84
dexalex84 / gist:ce111ad919462b1f49c5334c82d9f612
Created March 31, 2017 18:09
Pentaho 7.0 CE open edit for saved CDE via api to edit
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