Skip to content

Instantly share code, notes, and snippets.

@ThomasRohde
ThomasRohde / Explore model.ajs
Last active April 25, 2024 14:14
Visually explore the entire model #JArchi #Archimatetool #Archi
/*
Author: Thomas Klok Rohde
Description:
Explore the entire model
Dependencies:
- Vis Network: https://github.com/visjs/vis-network.
- Bootstrap CSS
- A modern webbrowser with support for the DIALOG element
History:
November 27, 2022 : Created
@numberoverzero
numberoverzero / _trace.py
Created August 3, 2017 16:35
add TRACE level to python logging
import logging
_trace_installed = False
def install_trace_logger():
global _trace_installed
if _trace_installed:
return
level = logging.TRACE = logging.DEBUG - 5
@fanievh
fanievh / Export Selected Folder to New Model.ajs
Last active April 25, 2024 14:13
Export Selected Folder in Source Model to New Target Model #jArchi
/*
* Export Selected Folder in Source Model to New Target Model
*
* https://gist.github.com/fanievh/4ec7d14247616846f3d16b5e22dc80a9
*
* This script copies a selected subset of a source model to a target model. The folder selected
* in the source model, will become the top level folder in the Views folder in the target model. Only
* elements, relationships, diagram objects, connections and images on any of the views in the selected
* folder in the source model, will be created in the target model.
*
@rakion99
rakion99 / Offlinenametouuid.cs
Last active April 25, 2024 14:12
Generate an offline minecraft UUID v3 based on the case sensitive player name, based on https://gist.github.com/games647/2b6a00a8fc21fd3b88375f03c9e2e603
private string GetOfflinePlayerUUID(string username)
{
//new GameProfile(UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8)), name));
byte[] rawresult = System.Security.Cryptography.MD5.Create().ComputeHash(Encoding.UTF8.GetBytes($"OfflinePlayer:{username}"));
//set the version to 3 -> Name based md5 hash
rawresult[6] = (byte)(rawresult[6] & 0x0f | 0x30);
//IETF variant
rawresult[8] = (byte)(rawresult[8] & 0x3f | 0x80);
//convert to string and remove any - if any
string finalresult = BitConverter.ToString(rawresult).Replace("-", "");
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Script Name: Quality Check - UX Relations
Script Description:
A jArchi script for use on Archi tool models.
Using a specific view called ConceptDefinition to represent a cut down version of the full ArchiMate model,
check all the model relationships to flag up any unexpected ones.
@SubhanRaj
SubhanRaj / Laravel-Mix-Live-Reload.md
Last active April 25, 2024 14:11
This gist provides the steps to enable live reload of a Laravel project using Laravel Mix and BrowserSync.

How to enable Live Reload of a Laravel Project Using Laravel Mix & BrowserSync

You can follow the steps below to enable live reload of a Laravel project using Laravel Mix and BrowserSync.

Important

You need to have Node.js installed on your machine to use Laravel Mix. If you don't have Node.js installed, you can download it from here.

Steps to enable live reload of a Laravel project using Laravel Mix and BrowserSync:

@Chigozie-Gerald
Chigozie-Gerald / numberToText.js
Created September 14, 2022 07:48
Script to get text in Lithuanian language from a number (Javascript)
// According to https://gist.github.com/tadas-subonis/6e23811db350a440cd47e2e5dd40e2cb
const numToText = (num) => {
const units = [
"",
"vienas",
"du",
"trys",
"keturi",
"penki",

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active April 25, 2024 14:08
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line