Skip to content

Instantly share code, notes, and snippets.

View Clivern's full-sized avatar

Ahmed Clivern

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Clivern
Clivern / scikit.ipynb
Created December 17, 2023 17:55
Supervised Learning With scikit-learn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Clivern
Clivern / scikit1.ipynb
Created December 17, 2023 17:53
Introduction to Machine Learning With Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

@Clivern
Clivern / server.py
Created October 2, 2023 20:54
Live status
import socket
import os
import json
try:
os.remove("/tmp/livestatus.sock")
except OSError:
pass
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
@Clivern
Clivern / sha256file.go
Created May 29, 2019 23:58 — forked from miguelmota/sha256file.go
Golang SHA256 checksum of file
package main
import (
"crypto/sha256"
"fmt"
"io"
"log"
"os"
)
@Clivern
Clivern / install_go_1.12.sh
Created November 18, 2019 11:21
Install golang 1.12
sudo apt-get update
sudo apt-get -y upgrade
cd /tmp
wget https://dl.google.com/go/go1.12.linux-amd64.tar.gz
sudo tar -xvf go1.12.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
@Clivern
Clivern / basics.rs
Created October 30, 2022 20:33
Rust Basics
const MAX_ITEM1: i64 = 1000000;
const MAX_ITEM2: &str = "HJ";
fn main() {
let y = 3;
println!("y = {}", y);
let mut x = 1;
x += 1;
println!("x = {}", x);
@Clivern
Clivern / ownership.rs
Last active October 30, 2022 15:35
Understanding Ownership
fn main() {
let x: i32 = 2;
take_ownership_x(x);
println!("x = {}", x);
let y = String::from("Hello");
take_ownership(y);
// the following line shall fail since value borrowed above
// println!("y = {}", y);
@Clivern
Clivern / guide.exe
Last active October 9, 2022 12:04
Elixir Lang
>