Skip to content

Instantly share code, notes, and snippets.

View default-work's full-sized avatar
🚩
work in progress

default-work

🚩
work in progress
View GitHub Profile
@default-work
default-work / readme.md
Last active November 15, 2021 21:34
Installation of tools for Apache Confluent Kafka and VSCode prerequisites on Apple M1

General installation instructions on Apple M1

Install SSH

1. Install Git, etc.

brew install git openssl zstd pkg-config

1. Setup user info globally

@default-work
default-work / lsiommu
Created July 31, 2021 10:23 — forked from flungo/lsiommu
List the devices and their IOMMU groups.
#!/bin/bash
for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;
antfu.icons-carbon
aslamanver.vsc-export
bierner.markdown-mermaid
bpruitt-goddard.mermaid-markdown-syntax-highlighting
christian-kohler.path-intellisense
codezombiech.gitignore
craigthomas.supersharp
Dart-Code.dart-code
Dart-Code.flutter
DavidAnson.vscode-markdownlint
import os
import json
import pytest
from http import HTTPStatus
from unittest.mock import patch, Mock
from flask import Response, url_for
from app.api.core.entities.employee import Employee, EmployeeJobAllocation
from app.api.core.entities.department import Department
from app.api.core.entities.facility import Facility
from test.api.oauth.oauth_required_test import MOCK_GOOD_TOKEN, MOCK_BAD_TOKEN, TOKEN_DATE_TIME, PUBLIC_KEYS
antfu.icons-carbon
aslamanver.vsc-export
bierner.markdown-mermaid
bpruitt-goddard.mermaid-markdown-syntax-highlighting
christian-kohler.path-intellisense
codezombiech.gitignore
craigthomas.supersharp
Dart-Code.dart-code
Dart-Code.flutter
DavidAnson.vscode-markdownlint
@default-work
default-work / KMS_office.cmd
Created June 23, 2020 12:42 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
@echo off
title Microsoft Office 2019 versions are supported!&cls&echo
============================================================================&echo
#Project: Activating Microsoft software products for FREE without software&echo
============================================================================&echo.&echo
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo
@default-work
default-work / make_iso.sh
Created June 12, 2020 16:10
Install macOS 10.15 Catalina on VMware
# Create a DMG Disk Image
hdiutil create -o /tmp/Catalina -size 8500m -volname Catalina -layout SPUD -fs HFS+J
# Mount it to your macOS
hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina
# Create macOS Catalina Installer
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina --nointeraction
# Unmount Catalina Disk
hdiutil detach /volumes/Install\ macOS\ Catalina
@default-work
default-work / windows10activation
Last active June 23, 2020 12:52
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
NEW Windows 10 Pro key: B8PRC-NPMMP-DMQR3-R8JQQ-WQKTT
https://vk.com/kluchi_dlya_kaspesky_windows10
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
@default-work
default-work / sha1.js
Created September 21, 2019 14:14 — forked from romeoh/sha1.js
sha1.js
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1a Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
/*
@default-work
default-work / caesar-cipher-1.markdown
Last active August 18, 2019 14:34
Caesar Cipher + 1