Skip to content

Instantly share code, notes, and snippets.

View melioratus's full-sized avatar
💭
Inside emacs

Brian Smith melioratus

💭
Inside emacs
View GitHub Profile
@wallyqs
wallyqs / issue-49.org
Last active March 30, 2018 21:37
Images with hyperlinks...

Referring to this issue: wallyqs/org-ruby#49

#+html: <img src="https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true&passingText=master%20-%20OK" alt="Project Badge">

Project Badge

#+html: <a href="https://ci.appveyor.com/project/justinjk007/pentagonal-tiling"> <img src="https://ci.appveyor.com/api/projects/status/ldc8jtft09n5997e?svg=true" alt="Project Badge"> </a>
Project Badge
@Profpatsch
Profpatsch / summary.org
Last active October 19, 2023 11:53
Summary of the Talk “Literate DevOps With Emacs”
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active September 18, 2024 00:09
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@dpryden
dpryden / ClassLoaderLeakExample.java
Created October 20, 2014 00:01
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@marcwebbie
marcwebbie / compile_emacs.sh
Last active August 4, 2017 06:17
Compile emacs 24 on Red Hat 6 workstations
# install needed libraries
sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
# compile autoconf
cd /tmp
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
tar xjvf autoconf-2.68.tar.bz2
cd autoconf-2.68/
./configure && make && sudo make install
@eschulte
eschulte / curry-compose.el
Last active February 26, 2022 19:52
Implementation of curry, rcurry and compose in Emacs Lisp. Including some code to make Emacs display these functions in a compact and attractive manner.
;;; Commentary
;;
;; Allows for more compact anonymous functions. The following
;; examples demonstrate the usage.
;;
;; ;; partial application with `curry'
;; (mapcar (» #'+ 2) '(1 2 3 4)) ; => (3 4 5 6)
;;
;; ;; alternate order of arguments with `rcurry'
;; (mapcar (« #'- 1) '(1 2 3 4)) ; => (0 1 2 3)
@sergeimuller
sergeimuller / gist:2916721
Created June 12, 2012 10:10
Frequently Used CQ5 URLs
Assuming the base URL to be this (need to edit to fit yours):
http://cqauthor1.company.com:4502
SEARCH
Search UI:
/crx/explorer/ui/search.jsp?Path=&Query=
@jordansissel
jordansissel / caveats
Last active July 9, 2018 18:29
setcap to allow a program to listen on privileged ports
setcap grants root-like permissions, so there's additional constraints on the binary.
It ignores LD_PRELOAD and LD_LIBRARY_PATH environment variables, so if you used these, you'll have to find another way.
One option is to use the RPATH piece of the Dynamic section of an ELF binary.