Skip to content

Instantly share code, notes, and snippets.

@juanibrex
juanibrex / Pencil Project Hotkeys
Last active April 29, 2025 17:17
Pencil Project Shortcuts
# Pencil Project Shortcuts
## General Shortcuts
+ New Document: Ctrl + n
+ Open: Ctrl + o
+ Save: Ctrl + s
+ Save as: Ctrl + Shift + s
+ Export: Ctrl + Shift + e
+ Print: Ctrl + p
@lee2sman
lee2sman / bash_cheatsheet.md
Last active January 10, 2025 06:31
bash scripting cheatsheet

Bash scripting cheatsheet

  • by Lee2sman
  • Updated 2017-09-18

Bash shebang

  • #!/usr/bin/env bash for portability, or less good, #!/bin/bash

Commenting

@FrikkieSnyman
FrikkieSnyman / readme.md
Last active April 16, 2025 10:35
GrapesJS - attributes, classes, and scripts

GrapesJS - attributes, classes, and scripts

Attributes

In order to add custom attributes to an HTML element that is generated by GrapesJS, one can simply make use of traits. For example, if you wish to produce an HTML element which contains the tag data-noout, a trait with the name data-noout can be added to a custom component.

    var domComps = editor.DomComponents;
    var dType = domComps.getType('default');
 var dModel = dType.model;
@senorihl
senorihl / README.md
Last active November 24, 2023 09:43
Clean and rebuild local staging branches

Bash script to clean & rebuild local staging branches

Installation

wget https://gist.githubusercontent.com/senorihl/637430191235b5362a27a8c785f9623c/raw/03c206bb0c8cecaff50325dfd170d913d1d97f6e/clean-staging-branch.sh -O $HOME/.clean-staging-branch.sh
chmod a+x $HOME/.clean-staging-branch.sh
git config --global alias.clean-staging '!bash $HOME/.clean-staging-branch.sh'