Skip to content

Instantly share code, notes, and snippets.

View geemaple's full-sized avatar
🍀
Recovering

Felix geemaple

🍀
Recovering
View GitHub Profile
@geemaple
geemaple / nsmb.conf
Last active March 3, 2024 10:24 — 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/en-us/102064
# https://support.apple.com/en-us/101918
# https://support.apple.com/en-us/HT211927
# https://support.apple.com/en-us/HT208209
@geemaple
geemaple / guide.md
Created March 3, 2024 10:03 — forked from othyn/guide.md
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources

!#/bin/sh
brownie networks add Avalanche avax-avash host=http://127.0.0.1:9650/ext/bc/C/rpc chainid=43112 explorer=https://cchain.explorer.avax.network/
@geemaple
geemaple / recover.sh
Last active November 18, 2019 14:33
recover from git hard reset
# find history operations
git reflog show
# recover use head or hash
git reset HEAD@{1}
# find only commit
git fsck --lost-found | grep "dangling commit" | cut -d" " -f 3 | xargs -I "{}" git show "{}" >> result.txt
# find staging
git fsck --lost-found | grep "dangling blob" | cut -d" " -f 3 | xargs -I "{}" git show "{}" >> result.txt
@geemaple
geemaple / License.txt
Created August 10, 2016 16:28 — forked from devinrhode2/License.txt
Just some edits
The MIT License (MIT)
Copyright (c) 2013 Devin Rhode
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
var readConvertLinksToFootnotes=true;
var readStyle='style-novel';
var readSize='size-medium';
var readMargin='margin-wide';
var _readability_script=document.createElement('SCRIPT');
var _readability_css=document.createElement('LINK');
var _readability_print_css=document.createElement('LINK');
_readability_script.type='text/javascript';
_readability_script.src='http://rozpalona.asia/readable/readability.js';
@geemaple
geemaple / x
Created August 10, 2016 16:09 — forked from anonymous/x
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "readability",
icon: "http://lab.arc90.com/favicon.ico",
homepage: "http://lab.arc90.com/2009/03/readability.php",
author: { name: "noroom" },
description: "Tries to get rid of the garbage on a site and show the content in a more readable way.",
url: "javascript:(function(){readStyle='style-newspaper';readSize='size-large';readMargin='margin-medium';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability-0.1.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';document.getElementsByTagName('
@geemaple
geemaple / uninstall cocopods
Created May 28, 2016 15:28
uninstall cocopods
gem list --local | grep cocoapods | awk '{print $1}' | xargs sudo gem uninstall
@geemaple
geemaple / svn_files_rm.sh
Created January 14, 2016 03:23
remove all .svn directories
# find . -name .svn -exec ls {} \;
find . -name .svn -exec rm -rf {} \;