Skip to content

Instantly share code, notes, and snippets.

View keeeeeegan's full-sized avatar
🧢

Keegan Berry keeeeeegan

🧢
View GitHub Profile
@keeeeeegan
keeeeeegan / nsmb.conf
Last active September 28, 2024 16:16 — forked from jbfriedrich/nsmb.conf
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
@keeeeeegan
keeeeeegan / Twitter-remove-right-sidebar.userscript.js
Last active April 20, 2022 16:06
Removes the sidebar on twitter that includes "trending now" content on Twitter dot com
// Install with the Tampermonkey extension
// ==UserScript==
// @name Twitter remove right sidebar
// @version 0.1.2
// @namespace https://twitter.com
// @description Removes the sidebar on twitter that includes "trending now" content and "relevant people." Fuck em, ya know?
// @match https://twitter.com/
// @match https://twitter.com/*
// @match https://www.twitter.com/
// @match https://www.twitter.com/*
@keeeeeegan
keeeeeegan / reenable-uninstalled-adobe-fonts.js
Created December 15, 2021 01:30
Adobe fonts reenable uninstalled fonts
#run in console
document.querySelectorAll("span[ng-click='fontFamilyAccordionCtrl.reactivate(variation)'").forEach(element => element.click())
@keeeeeegan
keeeeeegan / instagram-stream.js
Created October 29, 2021 22:39
TamperMonkey Instagram Stream - Utilize Full Viewport
// ==UserScript==
// @name Instagram Stream - Utilize Full Viewport
// @namespace https://www.instagram.com
// @version 0.1
// @description When you watch a stream on instagram it's suuuper tiny by default. This increases the size to utilize as much space as possible for the window you're using.
// @match https://www.instagram.com/
// @match https://www.instagram.com/*
// @author You
// @grant none
// ==/UserScript==
@keeeeeegan
keeeeeegan / amazon-clear-saved-for-later.userscript.js
Last active June 23, 2021 20:54
Amazon brute force clear saved for later
// ==UserScript==
// @name Amazon brute force clear saved for later
// @namespace https://www.amazon.com/
// @version 0.1
// @description Make sure to disable this user script after your saved for later is empty, as this will keep attempting to delete saved for later items until you disable
// @author You
// @include http*://www.amazon.cn/*
// @include http*://www.amazon.in/*
// @include http*://www.amazon.co.jp/*
// @include http*://www.amazon.com.sg/*
@keeeeeegan
keeeeeegan / full-instagram-image.user.js
Created April 8, 2018 14:35
Open Full Instagram Image In New Window
// ==UserScript==
// @name Open Full Instagram Image In New Window
// @namespace https://www.instagram.com
// @version 0.1
// @description Will add an open in new window link
// @match https://www.instagram.com/
// @match https://www.instagram.com/*
// @author You
// @grant none
// ==/UserScript==
module Jekyll
class UCFBlockWrap < Liquid::Block
def initialize(tag_name, markup, tokens)
super
end
def render(context)
output = super
"<div>%s</div>" % [output]
@keeeeeegan
keeeeeegan / youtube-video-wordpress-shortcode.php
Created July 28, 2016 18:28
youtube-video-wordpress-shortcode.php
function sc_embed_youtube( $atts, $content='' ) {
$atts = shortcode_atts(
array(
'width' => '400',
'height' => '250',
'class' => null,
'style' => null
), $atts
);
// Adds necessary CSS for a background image when
// a higher-res version is needed for higher pixel density screens
@mixin background-2x($url: "transparent", $url-r: "transparent", $position: "0 0", $repeat: no-repeat, $width: 5px, $height: 5px) {
background-image: url($url);
background-repeat: $repeat;
background-position: $position;
@media screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
background-image: url($url-r);
background-size: $width $height;
@keeeeeegan
keeeeeegan / HTMLPrettify preferences
Last active August 29, 2015 14:18
Preferences.sublime-settings
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"],