Skip to content

Instantly share code, notes, and snippets.

@erikmd
erikmd / recap-magit-forge.org
Created August 13, 2023 13:40
Installation and use of magit+forge in GNU Emacs

Magit/Forge and GitHub

@jdtsmith
jdtsmith / toggle-debug-on-hidden-error.el
Last active May 29, 2024 18:44
Elisp: get stack trace for functions with suppressed errors (filter functions, post command hooks, etc.)
;;;; Power debugging
(defun my/reraise-error (func &rest args)
"Call function FUNC with ARGS and re-raise any error which occurs.
Useful for debugging post-command hooks and filter functions, which
normally have their errors suppressed."
(condition-case err
(apply func args)
((debug error) (signal (car err) (cdr err)))))
(defun toggle-debug-on-hidden-errors (func)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; BACK UP YOUR LOGSEQ DIR BEFORE RUNNING THIS!
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copyright (C) Aug 4 2022, William R. Burdick Jr.
;;
;; LICENSE
;; This code is dual-licensed with MIT and GPL licenses.
@bskiefer
bskiefer / README.md
Last active June 10, 2024 14:50
VSCodium Update Extensions from VS Marketplace

This script will gather the extensions currently installed for VSCodium and update them from marketplace.visualstudio.com automatically.

  • Packages defined under $SKIP are ignored.
  • Old extension folders are removed before the update is installed.

Why?

  • open-vsx.org doesn't get updated very quickly, if at all
  • it's "illegal" to use the VS Marketplace as the extension source in non-M$ products
@logseq-cldwalker
logseq-cldwalker / query-dsl-example-rules.txt
Last active May 15, 2024 17:23
Examples of rules that can be used from advanced query
$ node static/tests.js -r dsl |grep EXAMPLE: | grep -v -E 'and|or|not' | uniq
EXAMPLE: (property ?b :prop-a "val-a")
EXAMPLE: (property ?b :prop-b "val-b")
EXAMPLE: (property ?b :prop-c "page c")
EXAMPLE: (property ?b :prop-c "page b")
EXAMPLE: (property ?b :prop-c "page c")
EXAMPLE: (property ?b :prop-b "val-b")
EXAMPLE: (property ?b :prop-num 2000)
EXAMPLE: (property ?b :prop-linked-num 3000)

Logseq Plugin Setup Guide

[WIP] Logseq Plugin System is currently under Alpha Testing phase.

For Developers

In this short guide, it will walk you through the steps needed to set up your development environment for writing and running a hello world simple inside of Logseq Desktop Client. You know Logseq Plugin based on Web Technologies composed of JS & HTML & CSS, but neither are mandatory, you can develop plugins use any language which can be translated to javascript (Logseq made by Clojurescript!). We will use Typescript to demonstrate this sample. Because there is a type definition file to make development experience even better.

Install Node.js and NPM

@aslafy-z
aslafy-z / Jenkinsfile
Last active December 13, 2023 19:52 — forked from rufoa/Jenkinsfile
Jenkins [skip ci] implementation for multi-branch declarative pipeline
pipeline {
...
stages {
stage('Run CI?') {
steps {
script {
if (sh(script: "git log -1 --pretty=%B | grep -F -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 0) {
currentBuild.result = 'NOT_BUILT'
error 'Aborting because commit message contains [skip ci]'
@ElectricRCAircraftGuy
ElectricRCAircraftGuy / bookmarklets.md
Last active May 31, 2024 09:43
These are bookmarklets (ie: browser bookmarks with Javascript in them) to perform functions to help make your GitHub PR review life easier.
@umanghome
umanghome / publish.yml
Last active June 19, 2024 05:11
GitHub Action: Generate a build and push to another branch
# .github/workflows/publish.yml
name: Generate a build and push to another branch
on:
push:
branches:
- master # Remove this line if your primary branch is "main"
- main # Remove this line if your primary branch is "master"
jobs: