Skip to content

Instantly share code, notes, and snippets.

View acarbonaro's full-sized avatar

Anthony Carbonaro acarbonaro

  • Freelance
  • New England
View GitHub Profile
@acarbonaro
acarbonaro / addEditCookie.js
Last active July 25, 2016 02:01
Add or edit a cookie using a simple bookmarklet. Highlight the code and drag it to your bookmarks bar, just remember to give it a name!
javascript:(function(){var cookieName = prompt("Enter Cookie Name", ""); var cookieValue = prompt("Enter Cookie Value", ""); document.cookie=cookieName+"="+cookieValue+";path=/"; location.reload(); })();
@acarbonaro
acarbonaro / autoform.socket.io.js
Last active October 24, 2016 05:14
Socket.IO Autoform
;"use strict";
/***
* Transform normal ol' HTML forms into magical socket-abusing creatures
* @param [forms] An array of HTML forms
* @param socket The socket to use
*/
function autoform (forms, socket) {
let formsLength = forms.length;
for (let i = 0; i < formsLength; i++) {
let form = forms[i];
@acarbonaro
acarbonaro / .tmux.conf
Last active January 23, 2020 19:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet
###
# A series of customizations to make tmux a bit more managable
#
# Remap prefix from Ctrl+B to Ctrl+A
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
@acarbonaro
acarbonaro / decategorize-steam.regex
Created December 15, 2017 04:43
Regex to remove all user-selected categories from Steam
\t{6}"tags"\n\t{6}{(\n\t{7}.+)+\n\t{6}}