Skip to content

Instantly share code, notes, and snippets.

View webdaemontx's full-sized avatar

Sean Hanford webdaemontx

View GitHub Profile
@webdaemontx
webdaemontx / gitflowrebasing.md
Created October 21, 2021 15:35 — forked from markreid/gitflowrebasing.md
git flow with rebasing
@webdaemontx
webdaemontx / Apple-Silicon-M1-Notes.md
Last active December 7, 2020 12:58
List of alternate commandline commands for installing and using Intel native apps on an M1 MacBookPro running Big Sur 11.0.1

Homebrew

To Rerun the Homebrew Installer with Rosetta 2

I received the following error when installing Homebrew on to a fresh install of Big Sur on an M1 MacBook Pro

Homebrew is not (yet) supported on ARM processors!
Rerun the Homebrew installer under Rosetta 2.
If you really know what you are doing and are prepared for a very broken experience you can use another installation option for installing on ARM:
  https://docs.brew.sh/Installation
@webdaemontx
webdaemontx / composer-notes.md
Last active September 8, 2021 07:48
Composer Notes and Answers to common issues I have encountered #composer #drupal

If you are getting an out of memory error when running composer update and you have already updated memory_limit = -1 in the loaded php.ini configuration, run php --ini to see if there are any other parsed .ini files that may override the -1

To Quickly install Composer in the current directory, and set a specific version, run the following script in your terminal

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c31c1e292ad7be5f49291169c0ac8f683499edddcfd4e42232982d0fd193004208a58ff6f353fde0012d35fdd72bc394') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --version=1.10.17
php -r "unlink('composer-setup.php');"
@webdaemontx
webdaemontx / .zshrc
Created March 10, 2020 17:17 — forked from dsouzajude/.zshrc
My .zshrc configuration with Zplugin manager
#
# Prerequisite installations for using this zsh configuration
#
# Following utilities must be installed on the system for this configuration to work
#
# fd https://github.com/sharkdp/fd
# fasd https://github.com/clvv/fasd/wiki/Installing-via-Package-Managers#mac-os-x
# fzf https://github.com/junegunn/fzf
# ripgrep https://github.com/BurntSushi/ripgrep

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding CMD-R during restart

Open your terminal in the recovery screen and type

csrutil disable
@webdaemontx
webdaemontx / .htaccess
Created January 5, 2020 06:55 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@webdaemontx
webdaemontx / phplinks.md
Created August 28, 2019 23:03
List of PHP functions, examples, and tutorials of interest