Skip to content

Instantly share code, notes, and snippets.

View ergin's full-sized avatar

Ergin BULUT ergin

View GitHub Profile
@ergin
ergin / Install Jupyter Notebook on Windows.bat
Created December 10, 2023 18:45
Install Jupyter Notebook on a Windows. Assuming Python interpreter already installed on your computer.
:: Default installation path. You can change it to any directory you want.
mkdir C:\Development\jupyter
cd C:\Development\jupyter
:: Create a Python virtual environment
python -m pip install --upgrade pip
python -m venv env
:: Activate virtual environment and install jupyter notebook
env\Scripts\activate
@ergin
ergin / G Suite (Gmail aka Google Workspace) MX records, DNS file.txt
Created December 10, 2023 18:27
G Suite (Gmail, aka Google Workspace) MX records, DNS file. Download the txt file and then import it to your DNS provider (e.g. Cloudflare) to complete the configuration steps.
;; G Suite - https://gsuite.google.com/
;; Adds G Suite MX records
;; Documentation
;; https://support.google.com/a/answer/140034
;; Adds the default G Suite SPF as a TXT record.
;; Documentation
;; https://support.google.com/a/answer/33786

Install PostgreSQL on Windows by scoop

Follow the below steps to install the latest version of PostgreSQL on Windows by scoop package manager.

Install PostgreSQL

scoop install postgresql -g

Configure PostgreSQL as a Windows Service

Install MongoDB on Windows by scoop

Follow the below steps to install the latest version of MongoDB on Windows by scoop package manager.

Install MongoDB

scoop install mongodb -g

Configure MongoDB as a Windows Service

Install MySQL on Windows by scoop

Install latest version of MySQL via scoop package manager on Windows. If you want to install specific version of MySQL, just replace "mysql" with "mysql@version". For example: "mysql@8.1.0".

Install MySQL

scoop install mysql -g

Configure MySQL as a Windows Service

Install MongoDB on Windows by scoop

I'm installing version 6.3.2 but you can change the version anything you want to install just by replacing "6.3.2" with the other version.

Install MongoDB v6.3.2

scoop install mongodb@6.3.2 -g

Configure MongoDB as a Windows Service

@ergin
ergin / install-python3-jupyter-notebooks.ps1
Created June 7, 2019 19:51
Installation of Scoop, Python 3, Jupyter Notebooks, Pandas, Numpy, Matplotlib, Sklearn on Windows with Powershell
# Make sure PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later) are installed. Then run the following steps.
# Install Scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
# Note: if you get an error you might need to change the execution policy (i.e. enable Powershell) with Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# Install Python 3
scoop install python
# Upgrade pip
@ergin
ergin / zookeeper.service
Created July 12, 2018 19:30
Apache ZooKeeper systemd service file
[Unit]
Description=Apache ZooKeeper Centralized Service
Requires=network.target
After=network.target
[Service]
Type=forking
Restart=always
RestartSec=0s
ExecStart=/opt/zookeeper/bin/zkServer.sh start
@ergin
ergin / docker-mysql8-container.sh
Created May 11, 2018 22:09
Creates a docker MySQL8 (version 8.0.11) container with native mysql password Authentication mechanism.
docker run --name mysql8 -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql:8.0.11 --default-authentication-plugin=mysql_native_password