Skip to content

Instantly share code, notes, and snippets.

View cywf's full-sized avatar
:shipit:
Tinkering

KP cywf

:shipit:
Tinkering
View GitHub Profile
@cywf
cywf / cron-jobs.md
Created February 25, 2023 12:46
Learn how to automate tasks and keep your Linux system secure with Cron, a powerful time-based job scheduler. Follow the wisdom of Viking king Ragnar Lothbrok in this beginner's guide for system administrators.

Viking Wisdom: Using Cron to Keep Your Linux System Secure

alt text

Greetings, my fellow warriors and wise ones, I am Ragnar Lothbrok, and today I will be sharing my knowledge of the Cron system on Linux with you, mmm!

The Cron system is a time-based job scheduler in Linux that allows you to automate tasks and run them periodically, mmm! This can be especially helpful for system administrators who want to automate tasks like system updates and backups, mmm!

Let's get started, shall we? To create a new cron job, you will need to edit the crontab file, which is a configuration file that specifies the commands to run and when to run them, mmm! To open the crontab file, type the following command in your terminal:

Interact with OpenAI's Speech Recognition model

alt text

Step 1: Install Dependancies

Whisper requires Python3.7+ and a recent version of PyTorch (we used PyTorch 1.12.1 without issue).
Install Python and PyTorch now if you don't have them already.

Whisper also requires FFmpeg, an audio-processing library.

@cywf
cywf / venv-python.md
Created February 25, 2023 16:32
Explanation guide to python virtual enviornments

Understanding Python Virtual Enviornments

alt text

venv is a built-in module in Python 3 that allows you to create and manage virtual environments. A virtual environment is a self-contained directory that contains its own Python installation and packages, isolated from the system-wide Python environment. This makes it easier to manage dependencies and ensure that your project runs on the specific version of Python and package versions that you need.

To create a virtual environment using venv, follow these steps:

  1. Open a terminal or command prompt.
  2. Navigate to the directory where you want to create the virtual environment.
@cywf
cywf / ai-for-cybersecurity.md
Created February 28, 2023 02:21
Roadmap for Implementing Artificial Intelligence to reinforce Cybersecurity

alt text

AI for Cybersecurity - A General Approach

  • Phase 1: Fundemental Cybersecurity Principles and Tasks

    • Description: Identifyintelligence needs of organization, critical assests, and their vulnerabilities
    • Approaches: threat trending, vulnerability assessments, asset discovery, diamond modeling
  • Phase 2: Data Collection and Aggregation

  • Description: Identify and collect relevant data
@cywf
cywf / ai-security-initiatives.md
Last active February 28, 2023 03:51
Taking a look at the current existing AI Initiatives in 2023
@cywf
cywf / network-essential-knowledge.md
Last active March 2, 2023 15:50
Essential knowledge for Network Engineers
@cywf
cywf / iec-61850.md
Created March 9, 2023 17:56
Guide on setting up a ICS air gapped network for Substation devices

IEC-61850

alt text

Here's a step-by-step guide on how to use Zerotier and a Raspberry Pi to connect radio and sat alights (compatible with IEC 61850), air-gapped from the regular internet, but can communicate via Zerotier. We'll also show you how to view the data via Grafana.

Overview

  • Raspberry Pi: We'll use a Raspberry Pi as a Zerotier client to connect the radio and sat alights to the Zerotier network.
  • Zerotier: We'll use Zerotier to create a virtual network that will allow the Raspberry Pi and the radio and sat alights to communicate securely over the internet.
@cywf
cywf / microk8s.md
Created March 12, 2023 16:05
This guide provides a concise introduction to Microk8s, a lightweight Kubernetes distribution designed for local development and testing, covering installation, configuration, and basic usage for quick deployment, scaling, and monitoring of applications.

alt text

Microk8s is a lightweight and powerful Kubernetes distribution that is designed to run on resource-constrained systems, such as laptops, IoT devices, and edge servers. It offers a simple and quick way to set up a local Kubernetes environment for development, testing, and experimentation. In this guide, we will walk you through the steps to install, configure, and use Microk8s.


Installing Microk8s

The first step is to install Microk8s on your system. Microk8s supports several operating systems, including Ubuntu, Debian, Fedora, CentOS, and macOS. Here are the general steps to install Microk8s:

@cywf
cywf / grats.md
Created March 20, 2023 14:21
Grantor Retained Annuity Trust

alt text

Introduction to GRATs

A GRAT is an estate planning tool that allows you to transfer assets to a trust for a specified term, while retaining the right to receive annual payments from the trust during the term. At the end of the trust term, the remaining assets are transferred to the designated beneficiaries. The purpose of a GRAT is to minimize estate and gift taxes.

#3 Understanding the Key Components of a GRAT

There are several key components of a GRAT that you need to understand:

@cywf
cywf / honeypots.md
Created March 25, 2023 20:17
Loaded list of honeypot enviornment tools, docs, and more

Awesome Honeypots Awesome Honeypots

A curated list of awesome honeypots, plus related components and much more, divided into categories such as Web, services, and others, with a focus on free and open source projects.

There is no pre-established order of items in each category, the order is for contribution. If you want to contribute, please read the guide.

Discover more awesome lists at sindresorhus/awesome.

Contents