Skip to content

Instantly share code, notes, and snippets.

View sudoevans's full-sized avatar
:electron:
Listening Octocat fairy tales

Evans sudoevans

:electron:
Listening Octocat fairy tales
View GitHub Profile
@sudoevans
sudoevans / odoo-issue.md
Created June 6, 2024 15:39
Permissions Issue with `odoo-server.conf` Causing Service to Exit Immediately

Issue Description:

Problem: After running the Odoo installation script from Yenthe666's InstallScript, everything seemed to work well i get the

Done! The Odoo server is up and running. Specifications: Port: 8069 User service: odoo ...... bla bla bla

However, when checking the status of the Odoo service using sudo service odoo-server status, the status displayed as active (exited) instead of active (running).

@sudoevans
sudoevans / analysis.md
Created May 22, 2024 05:35
Analysis of Debian Preseed File

Analysis of Debian Preseed File

Some key things this preseed file covers:

User Accounts

  • It skips creation of a normal user account
  • It enables root login
  • It sets the root password using a pre-computed sha-512 hash:
@sudoevans
sudoevans / keep-alive.yaml
Created January 2, 2024 11:53
Github Action for Keep Alive
name: Keep Alive
on:
schedule:
- cron: '* * * * *' # Run every minute for testing, you can put 11:59 UTC🕔
jobs:
keep-alive:
runs-on: ubuntu-latest
@sudoevans
sudoevans / machine-learning-notes.md
Created December 15, 2023 08:39
Machine Learning Personal Notes

This is my summary of machine learning fundamental concepts.

  1. Supervised Learning:
  • Goal: To train a model to predict output based on labeled training data.
  • Algorithms:
    • Linear Regression: Used for predicting continuous outcomes.
    • Logistic Regression: Used for binary classification problems.
    • Decision Trees: Simplifies data into rules to make predictions.
    • Support Vector Machines (SVMs): Finds the best decision boundary to separate data.
  • k-Nearest Neighbors (k-NN): Predicts based on similarity to nearby data points.
@sudoevans
sudoevans / project-com404.ipynb
Created December 6, 2023 09:20
Project-com404.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sudoevans
sudoevans / alx_0x03.bash
Created June 14, 2023 03:00
0x03. Shell, init files, variables and expansions
0-alias
#!/bin/bash
alias ls="rm *"
1-hello_you
#!/bin/bash
echo "hello $USER"
@sudoevans
sudoevans / alx_shell-permisions.bash
Created June 8, 2023 22:08
Alx Shell Permisions
0-iam_betty
#!/bin/bash
su betty
1-who_am_i
#!/bin/bash
id -un
2-groups
#!/bin/bash
groups
@sudoevans
sudoevans / connect.sh
Created June 6, 2023 06:24
Alx SSH Shortcut
#!/bin/bash
echo "Connecting to ALX ssh 08c3e0cba18d@08c3e0cba18d.c683676a.alx-cod.online..."
sshpass -p <your_password> ssh 08c3e0cba18d@08c3e0cba18d.c683676a.alx-cod.online

Keybase proof

I hereby claim:

  • I am sudoevans on github.
  • I am sudoevans (https://keybase.io/sudoevans) on keybase.
  • I have a public key whose fingerprint is 76F0 A744 D696 9666 8A32 F824 B82B 560A 00FE B971

To claim this, I am signing this object: