Skip to content

Instantly share code, notes, and snippets.

View cigolpl's full-sized avatar

Mateusz cigolpl

View GitHub Profile

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@cigolpl
cigolpl / script
Created April 22, 2017 13:26
Install Java + Elasticsearch 5.3.1 on Ubuntu 16.04
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo sysctl -w vm.max_map_count=4262144
sudo apt-get install htop
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.1.zip
sha1sum elasticsearch-5.3.1.zip
@cigolpl
cigolpl / script
Created April 22, 2017 13:24
Install Node.js + MongoDB with Docker on Ubuntu
#!/bin/bash
docker run --name some-mongo -p 27017:27017 -d mongo
cd ~
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
sudo apt-get update
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
sudo apt-get install build-essential
npm install pm2 -g
service ufw stop
@cigolpl
cigolpl / elasticsearch_ansible_basic_installation.sh
Created November 29, 2016 11:38
Elasticsearch installation with Ansible
- name: Elasticsearch with custom configuration
hosts: localhost
roles:
#expand to all available parameters
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch/data", es_log_dir: "/opt/elasticsearch/logs", es_work_dir: "/opt/elasticsearch/temp",
es_config: {
node.name: "node1",
cluster.name: "custom-cluster",
discovery.zen.ping.unicast.hosts: "localhost:9301",
http.port: 9201,
@cigolpl
cigolpl / elasticsearch_installation.sh
Last active November 28, 2016 12:55
Installing Elasticsearch on Ubuntu 14.04
#!/bin/sh
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.deb
sudo dpkg -i elasticsearch-1.7.2.deb
sudo service elasticsearch start
{
"name": "restaurants",
"type": "restaurants",
"index": "restaurants",
"defaults": {
"sort": "rating"
},
"schema": {
"name": {
"type": "string",
server {
listen 80;
listen [::]:80;
server_name yourserver.com;
root /path/to/your/htdocs;
error_page 404 /404.html
index index.html;
mysqldump -u username -p database_name codes > codes.sql --skip-triggers