Skip to content

Instantly share code, notes, and snippets.

@ayebrian
ayebrian / vmware.md
Last active December 14, 2024 14:03
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
@pronazmul
pronazmul / git_github.md
Created December 14, 2024 14:00
All about Git and github

গিট এবং গিটহাব নিয়ে বিস্তারিত

গিট কিঃ

গিট সব সময় আমাদের ফাইলের উপর নজর রাখে কোথায় চেইঞ্জ হচ্ছে, কখন চেইঞ্জ হচ্ছে এর সকল কিছু্র স্ট্রেট রাখে। এটিকে এক কথায় ভার্সন কন্ট্রোল সিস্টেম বলে। এটি মাইক্রোসফট দ্বারা সংরক্ষিত।

গিট এর সাহায্যে আমাদের কোড করার সময় স্টেজে কোডের একটি র্ভাসন রেখে দিতে পারি, কোথাও Bug হলে আমরা আগের কোড পুনরায় ব্যাক পেতে পারি। এই অসাধারন কাজ টাই করে গিট।

গিট মূলত কাজ করে লোকাল মেশিনে। গিট এর মাধ্যমে আমরা রিপোজিটরি তৈরি করে লোকাল কম্পিউটারের সকল ফাইলের/ফোল্ডার এর উপর নজর রাখতে পারি ।

@eqvinox
eqvinox / h3c_comware_ssh_pubkeys.sh
Created August 30, 2022 17:38
Convert OpenSSH public key to H3C/HPE/3Com Comware config format
#!/bin/sh
KEYNAME="$1"
PUBKEYFILE="$2"
echo "public-key peer $KEYNAME"
echo "public-key-code begin"
< $PUBKEYFILE ssh-keygen -e -f /dev/stdin -m PKCS8 | openssl pkey -pubin -outform DER | hexdump -e '37/1 "%02X" "\n"'
echo "public-key-code end"
@josef-pkt
josef-pkt / beta_regression.ipynb
Last active December 14, 2024 13:57
Beta Regression in statsmodels
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NSWG
NSWG / VMware Workstation 16 Pro and Player keys
Last active December 14, 2024 13:58
VMware Workstation 16 Pro and Player keys
VMware Workstation Pro 16.x Serials
YA7RA-F6Y46-H889Z-LZMXZ-WF8UA
ZV7HR-4YX17-M80EP-JDMQG-PF0RF
UC3XK-8DD1J-089NP-MYPXT-QGU80
GV100-84W16-M85JP-WXZ7E-ZP2R6
YF5X2-8MW91-4888Y-DNWGC-W68TF
AY1XK-0NG5P-0855Y-K6ZXG-YK0T4
VMware Workstation Player 16.x Serials
@GeorgeClensy
GeorgeClensy / PrivateSpaceManager.kt
Created December 14, 2024 13:56
Private space manager, unlocks, locks or checks if private space is locked or not in android 15
import android.content.Context
import android.content.pm.LauncherApps
import android.os.Build
import android.os.UserManager
import androidx.annotation.RequiresApi
import androidx.core.content.ContextCompat.getSystemService
@RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
fun isPrivateSpace(context: Context): Boolean {
val launcherApps = context.getSystemService(Context.LAUNCHER_APPS_SERVICE) as LauncherApps
@hungneox
hungneox / WIN10.MD
Last active December 14, 2024 13:56
How Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal

Most new PCs don't come with DVD drives anymore. So it can be a pain to install Windows on a new computer.

Luckily, Microsoft makes a tool that you can use to install Windows from a USB storage drive (or "thumbdrive" as they are often called).

But what if you don't have a second PC for setting up that USB storage drive in the first place?

In this tutorial we'll show you how you can set this up from a Mac.

Step 1: Download the Windows 10 ISO file

You can download the ISO file straight from Windows. That's right - everything we're going to do here is 100% legal and sanctioned by Microsoft.

@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active December 14, 2024 13:56
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@soof-golan
soof-golan / Dockerfile
Last active December 14, 2024 13:56
Python + Poetry + Docker Example
FROM python:3.10 as python-base
# https://python-poetry.org/docs#ci-recommendations
ENV POETRY_VERSION=1.2.0
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache

generative AI Prompts: AWS Certified AI Practitioner

Prompt 1: Multiple-Choice Only

Base all questions on the https://d1.awsstatic.com/training-and-certification/docs-ai-practitioner/AWS-Certified-AI-Practitioner_Exam-Guide.pdf and derive from the attached content (Mapping of AI, ML, Deep Learning, and Related Concepts.pdf, practice-exam.pdf, terms.png). Create concise case study questions, each presented in a short paragraph outlining a realistic challenge. The questions should ask for the best option(s) based on specific criteria and require critical evaluation. Each case study will be followed by multiple-choice options. Please generate a mix of medium-complexity questions, blending AWS AI/ML services with general AI/ML concepts.

Question Format

  1. All questions should be multiple-choice and present 4 options labeled A, B, C, and D.
  2. Specify when two correct responses are required and only award full credit if both answers are correct.