Skip to content

Instantly share code, notes, and snippets.

View TFWol's full-sized avatar
😟

TFWol

😟
View GitHub Profile
@m0rtyn
m0rtyn / obsidian-fix-for-nested-code-blocks.md
Last active January 24, 2024 18:28
obsidian-fix-for-nested-code-blocks.css

Fix for codeblocks nested in list items in Obsidian app

Result: image

.HyperMD-codeblock {
  --code-background: #0003;
@x43x61x69
x43x61x69 / vnc_install.sh
Last active April 29, 2024 05:04
Steam Deck VNC Installation
#!/bin/bash
#
# Script for installing x11vnc on Steam Deck.
#
# Install:
#
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/x43x61x69/9a5a231a25426e8a2cc0f7c24cfdaed9/raw/vnc_install.sh?$RANDOM)"
#
# This will modify root filesystem so it will probably get
# overwrite on system updates but is totally ok executing
@CodeSigils
CodeSigils / ubuntu-remove-telemetry.sh
Last active May 24, 2024 00:23
Remove Ubuntu telemetry
#!/usr/bin/env bash
################ Description: ###################
# This script will disable all opt-out under
# Ubuntu 22.04 (Codename: Jammy Jellyfish).
# At first the telemetry domains will be resolved
# to the local host and second all telemetry services
# will be removed from the system.
# The following work has a system-wide effect not just
@ChristopherA
ChristopherA / Mermaid_on_Github_Examples.md
Last active May 17, 2024 07:09
Mermaid on Github Examples

Mermaid on Github Examples

All of these diagrams are dynamically rendered during html display by Github, the images generated from text inside the Github-Flavored Markdown. None are static images. Mermaid support was released for Github on 2022-02-14

Pros & Cons:

  • Pro: You don't need to care about the layout.
  • Con: You cannot control the layout.

Notes:

  • Not all the features of Mermaid (in particular symbols B-->C[fa:fa-ban forbidden], hyperlink and tooltips) are supported by Github.
@joex92
joex92 / LogFileDark.udl.xml
Last active June 29, 2023 15:08 — forked from mmdemirbas/LogFile.udl.xml
Custom log file syntax highlightings for Notepad++ by @foreachthing (Dark Theme) & @mmdemirbas (Light Theme)
<NotepadPlus>
<UserLang name="LogFile (Dark Theme)" ext="log">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">[(0])0</Keywords>
<Keywords name="Folder+"></Keywords>
@m33x
m33x / hass.js
Last active May 9, 2024 13:03
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@dnaprawa
dnaprawa / README.md
Last active January 2, 2024 11:41
Using Docker on remote Docker Host with docker context

Working on remote Docker Host using docker context

SSH keys on Windows

In order to use remote Docker host, as a prerequisite you need SSH enabled (required login using SSH keys).

Generate or find your public SSH key

Go to C:\Users\YOUR_USERNAME\.ssh and copy content of id_rsa.pub file

@dinh
dinh / openrefine-tips.md
Last active March 3, 2024 04:35
[Useful recipes for achieving some tasks in OpenRefine] #openrefine #datawrangling #data

Useful recipes for achieving certain tasks in OpenRefine

This page collects OpenRefine recipes, small workflows and code fragments that show you how to achieve specific things with OpenRefine.

String Manipulation

Here are some examples of possible types of common string manipulation operations that you might encounter and how they can be achieved with the GREL-Functions. See also GREL String Functions.

Extract out the first value in a multi-valued cell

@zmarkan
zmarkan / Bookmarklet - Compare GitHub commit with master branch.md
Last active June 3, 2023 13:17
Bookmarklet: Compare GitHub commit with Master

Usage

  1. Create a new bookmark in your bookmarks bar with the following contents:
javascript: (function(){
            let location = window.location.href;
            let validatorRegex = /https:\/\/github.com\/[a-z][a-zA-z0-9\-\_]+\/[a-z][a-zA-z0-9\-\_]+\/commit\/[a-f0-9]+/g;
            let match = location.match(validatorRegex);
            if(!match){
@ourway
ourway / lua_cheat_sheet.lua
Created November 19, 2018 02:15
Lua programming language cheat sheet
print("Hello World")
--[[
Multiline comment
]]
-- Variable names can't start with a number, but can contain letters, numbers
-- and underscores
-- Lua is dynamically typed based off of the data stored there