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 / 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
>
@Clivern
Clivern / error_handling.rs
Last active August 30, 2022 21:00
Rust Error Handling
fn main() {
let x: Option<&str> = Some("some");
println!("{:?}", x);
println!("{:?}", x.unwrap());
match x {
Some(v) => {
println!("v = {:?}", v);
}
None => {
@Clivern
Clivern / node_exporter.md
Created April 24, 2022 20:34
Node Exporter
$ wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz
$ tar xvfz node_exporter-*.*-amd64.tar.gz
$ sudo mv node_exporter-*.*-amd64/node_exporter /usr/local/bin/
$ sudo useradd -rs /bin/false node_exporter