Skip to content

Instantly share code, notes, and snippets.

View ebetancourt's full-sized avatar
Working

Elliot Betancourt ebetancourt

Working
View GitHub Profile
@ebetancourt
ebetancourt / tmux-cheatsheet.markdown
Created June 27, 2018 13:22 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ebetancourt
ebetancourt / install-apache.sh
Created July 31, 2012 20:49
Set up apache on Mountain Lion
mkdir -p ~/Sites
mkdir -p ~/Sites/logs
mkdir -p ~/Sites/conf
mkdir -p ~/Sites/conf/vhosts
touch ~/Sites/conf/httpd-vhosts.conf
export USERDIR=`whoami`
cat >> ~/Sites/conf/httpd-vhosts.conf <<EOF
#
# Use name-based virtual hosting.
#
@ebetancourt
ebetancourt / drafts.js
Last active November 10, 2022 12:36 — forked from florido/drafts.js
Drafts Bookmarklet
javascript:(function(){
var w=window,
d=document,
pageSelectedTxt=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),
pageTitle=d.title,
pageUri=w.location.href,
tmplt="";
tmplt="["+pageTitle+"]("+pageUri+")\n\n";
if(pageSelectedTxt!="") {
pageSelectedTxt=">%20"+pageSelectedTxt;
@ebetancourt
ebetancourt / bookmarklets.txt
Created November 13, 2022 16:24 — forked from mrbusche/bookmarklets.txt
Bookmarklets
wrap any function in
javascript: (function () {
// javascript goes here
})();
minify and then create a bookmark with the URL as the minified JavaScript
// grayscale all images without an alt tag
const css = document.createElement("style");
@ebetancourt
ebetancourt / wp-disable-plugin-update.php
Last active March 29, 2024 13:03 — forked from rniswonger/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
<?php
// have to add that opening tag to get syntax highlighting... ¯\_(ツ)_/¯
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {