Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / emacs.desktop
Created April 25, 2024 02:50
Emacs desktop application launcher file
[Desktop Entry]
Name=Emacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient -a emacs -n \\"\\$@\\"; else exec emacs; fi" dummy %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
@jasonm23
jasonm23 / upgrade-or-install-emacs-mac-port-with-custom-icon-via-homebrew.sh
Last active March 25, 2024 16:08
Upgrade emacs-mac homebrew and move app to Applications and apply custom icon
#!/bin/bash
# Update brew and upgrade Emacs mac (tap railwaycat in-case it's not already)
brew tap railwaycat/emacsmacport
brew update
if [[ -d /usr/local/Cellar/emacs-mac ]]; then
brew upgrade emacs-mac
else
brew install emacs-mac
@jasonm23
jasonm23 / install emacs from source.sh
Last active March 11, 2024 08:22
Emacs v29 install from source on Ubuntu/Mint
sudo apt build-dep emacs
sudo apt install libgnutls28-dev \
libgtk-3-dev libwebkit2gtk-4.1-dev gnutls \
libgccjit0 libgccjit-10-dev libjansson4 libjansson-dev \
gnutls-bin libtree-sitter-dev gcc-10 imagemagick libmagick++-dev \
libwebp-dev webp libxft-dev libxft2
export CC=/usr/bin/gcc-10 && export CXX=/usr/bin/gcc-10 && ./autogen.sh && ./configure --with-native-compilation=aot && \
make -j$(proc) && /
@jasonm23
jasonm23 / recreate-efi.md
Created February 27, 2024 09:03
Recreate /boot/efi/EFI after accidentally deleting the EFI partition
@jasonm23
jasonm23 / xterm-256color.svg
Last active February 11, 2024 12:33
Xterm 256color mode color chart, organised into sections. (used on Wikipedia/xterm)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasonm23
jasonm23 / Alphabet Sentences.txt
Created October 20, 2018 05:28
Alphabet Sentences
Alphabet Sentences
Action Description
about Inkscape version, authors, license
action-list Print a list of actions and exit
clone Create a clone (a copy linked to the original) of selected object
clone-link Relink the selected clones to the object currently on the clipboard
clone-link-lpe Creates a new path, applies the Clone original LPE, and refers it to the selected path
clone-unlink Cut the selected clones' links to the originals, turning them into standalone objects
clone-unlink-recursively Unlink all clones in the selection, even if they are in groups.
com.inkscape.generate.generate-voronoi Voronoi Pattern
@jasonm23
jasonm23 / sparklist.rb
Created May 28, 2010 05:34
Spark project AS3 library list

Spark project AS3 library list

Graphics/Color (AS3)

Left truncate on long pathnames in an llvm-cov HTML report.

Usage: $0 report_root_path source_starts_at_dir

For example the absolute, root path to a file.

/Long/pathname/that/eventually/gets/to/Source/app/module/something.ext

Will left truncate with a leading elipsis:

@jasonm23
jasonm23 / emacs-cocoa-mac-keys.md
Created March 30, 2012 01:06
Mac specific Cocoa Emacs key bindings

Emacs Cocoa Mac/OS X specific key bindings

  • + & kill-this-buffer
  • + ' next-multiframe-window
  • + , customize
  • + - center-line
  • + ; ispell-next
  • + shift + : ispell
  • + shift + ? info
  • ⌘ + shift + C popup-color-panel