Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Blake Niemyjski niemyjski

😀
View GitHub Profile
@wojteklu
wojteklu / clean_code.md
Last active Sep 23, 2021
Summary of 'Clean code' by Robert C. Martin
View clean_code.md

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Sep 23, 2021
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@bmhatfield
bmhatfield / .profile
Last active Sep 22, 2021
Automatic Git commit signing with GPG on OSX
View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@davidfowl
davidfowl / dotnetlayout.md
Last active Sep 22, 2021
.NET project structure
View dotnetlayout.md
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
  tests/
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active Sep 21, 2021 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac
View Python3 Virtualenv Setup.md

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
View essential-javascript-links.md
@filipw
filipw / CompiledPropertyAccessor.cs
Last active Sep 15, 2021
removed unnecessary classes
View CompiledPropertyAccessor.cs
using System;
using System.Linq.Expressions;
using System.Reflection;
using WebApi.Delta;
namespace Hst.Deals.API.Infrastructure
{
internal class CompiledPropertyAccessor<TEntityType> : PropertyAccessor<TEntityType> where TEntityType : class
{
private Action<TEntityType, object> _setter;
@brock
brock / nodereinstall.sh
Last active Sep 14, 2021
Complete Node Reinstall. I've moved this to a repo at http://git.io/node-reinstall
View nodereinstall.sh
#!/bin/bash
# node-reinstall
# credit: http://stackoverflow.com/a/11178106/2083544
## program version
VERSION="0.0.13"
## path prefix
PREFIX="${PREFIX:-/usr/local}"
View Marlin-2.0.4.3.patch
diff -Naur ./Marlin/Marlin/Configuration.h ./Marlin-patched/Marlin/Configuration.h
--- ./Marlin/Marlin/Configuration.h 2020-02-25 15:06:10.000000000 -0500
+++ ./Marlin-patched/Marlin/Configuration.h 2020-02-25 15:35:58.000000000 -0500
@@ -1,3 +1,7 @@
+// https://www.reddit.com/r/ender3/comments/e894j7/marlin_20x_guide_for_ender_3_using_skr_mini_e3_v12/
+// This is all the base stuff + manual mesh bed levelling, so that users who have a stock printer
+// and an SKR Mini E3 can use this patch
+
/**
* Marlin 3D Printer Firmware
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active Aug 13, 2021
Uninstall nodejs from OSX Yosemite
View gist:d75101d9bdf764c890ef
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*