Skip to content

Instantly share code, notes, and snippets.

View jesusoterogomez's full-sized avatar
🚤
shipping

Jesús Otero jesusoterogomez

🚤
shipping
View GitHub Profile
@wkliwk
wkliwk / btt.sh
Last active March 24, 2025 22:10
BTT reset trial time
# BetterTouchTool reset trial time
# ** All preference will reset
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist"
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
echo "Done"
echo "remove ~/Library/Application\ Support/BetterTouchTool/"
rm -rf ~/Library/Application\ Support/BetterTouchTool/
echo "Done"
@peteryates
peteryates / guide.md
Last active March 6, 2025 19:18
How to stop adverts appearing on your Samsung TV

I'm getting adverts in my TV's UI, help!

Samsung's otherwise excellent 2016 range of UHD TVs received an update that added advertisements to the UI. This has been complained about at great length on Samsung's forums and repeatedly, Samsung have refused to add an option to remove them.

The ads interrupt the clean UI of the TV and are invasive. Here's an example of how they look:

one two

This guide was originally posted on Samsung's TV forums but unfortunately, that site is a super-slow and barely accessible unusable mess.

@troyfontaine
troyfontaine / 1-setup.md
Last active April 28, 2025 20:43
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@jesusoterogomez
jesusoterogomez / .eslintrc
Last active November 5, 2015 09:52
ESLint Rules for ES6 + React.js
//
// ESLint Rules
// Based on Airbnb's Style Guide - https://github.com/airbnb/javascript
//
// with added ES6 and JSX Rules for React.js
//
// requires 'eslint' and 'eslint-plugin-react' npm packages
//
{
@jesusoterogomez
jesusoterogomez / percentagewidth.scss
Created August 18, 2015 08:31
Equal percentage width elements in one row using SASS
/*
Counts elements and applies percentage width to
fit them in one row.
##################################################
# i.e: 4 elements = 25% width; #
# note: Many elements create long CSS output #
##################################################
*/
@beechnut
beechnut / backtick-surround.js
Last active December 6, 2021 06:11
Surround with backticks in Sublime Text 3
// Copy the following into Preferences > Key Bindings -- User
// Thanks to:
// http://sublimetext.userecho.com/topic/86166-backtick-quoting-selected-text-does-not-work-like-single-quotes-and-double-quotes/
[
// Auto-pair backticks
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`$0`"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },