Skip to content

Instantly share code, notes, and snippets.

@amk221
amk221 / placeholder.css
Last active March 29, 2024 06:19
Prosemirror placeholder plugin approach
.ProseMirror[data-placeholder]::before {
color: global.$placeholder-colour;
position: absolute;
content: attr(data-placeholder);
pointer-events: none;
}
@OrionReed
OrionReed / DOM3D.js
Last active March 29, 2024 06:16
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯

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:

@brucebentley
brucebentley / iOS Shortcuts Catalog.md
Last active March 29, 2024 06:11
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!

#EXTM3U
####################################### CANAIS ###########################################
#EXTINF:-1 tvg-id="TV ARAPUAN" tvg-logo="https://upload.wikimedia.org/wikipedia/pt/0/0a/Logomarca_TV_Arapuan.png" pltv-subgroup="TV ABERTA",TV ARAPUAN
https://5b7f3c45ab7c2.streamlock.net/arapuan/ngrp:arapuan_all/chunklist_w93381811_b3715072.m3u8
#EXTINF:-1 tvg-id="TV GLOBO" tvg-logo="https://upload.wikimedia.org/wikipedia/pt/9/9e/Logotipo_da_TV_Globo.png" pltv-subgroup="TV ABERTA",TV GLOBO
https://live-as-11-11.video.globo.com/j/eyJhbGciOiJSUzUxMiIsImtpZCI6IjEiLCJ0eXAiOiJKV1QifQ.eyJjb3VudHJ5X2NvZGUiOiJCUiIsImRvbWFpbiI6ImxpdmUtYXMtMTEtMTEudmlkZW8uZ2xvYm8uY29tIiwiZXhwIjoxNzExNjYzMTk0LCJpYXQiOjE3MTE1NzY3OTQsImlzcyI6InBsYXliYWNrLWFwaS1wcm9kLWdjcCIsIm93bmVyIjoiYWRmYThhNmYtYzY3Mi00N2FiLWIzYjItODE2ZjkwMjE4YzFhIiwicGF0aCI6Ii9udS9mKGR2cj0xMjAsaT0yKS9nbG9iby1zcDEvcGxheWxpc3QubTN1OCJ9.zVSdnGXDrsKOgzNiAx0ZfXeB18gFTMW115rolb1hFCD-xYSdw8oQCI62Q2DXeD6OL10Jla19wGPpQFnp5_hr6W2i8amy-QLAZ1HVIB6xFkmyrReWjbfngmhRUBPKkADDrOmx6CkL
@BretFisher
BretFisher / docker-for-mac.md
Last active March 29, 2024 06:08
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@SinghChinmayy
SinghChinmayy / HowToDeleteAllCloudflareRecors.md
Created March 29, 2024 06:00 — forked from iRajatDas/HowToDeleteAllCloudflareRecors.md
Cloudflare delete all DNS records. Just go to cloudflare dns zones, open your browers developer console and paste this javascript code.

image

Real developers are not used to clicking, it's allways easier to write a script to do it for you.
@ranabhat
ranabhat / do_get_git_public_repo_name.py
Last active March 29, 2024 06:08
Simple example on how to use web APIs in Python3.
import requests # importing libraries for working with HTTP requests
import json
api_url_base = 'https://api.github.com/' # string that starts off every URL in the GitHub API
#response = requests.get(api_url_base)
#print(response.headers)
headers = {'Content-Type': 'application/json',
'Accept': 'application/vnd.github.v3+json'
}