Skip to content

Instantly share code, notes, and snippets.

@cfont
cfont / cloudSettings
Last active June 23, 2020 19:40
Visual Studio Code Settings Sync Gist - OLD
{"lastUpload":"2020-06-23T18:46:54.118Z","extensionVersion":"v3.4.3"}
@cfont
cfont / add_apache_brew.md
Created March 31, 2017 16:04 — forked from vitorbritto/add_apache_brew.md
Install Apache with Homebrew

Install Apache with Homebrew

Installing Apache

# Start by stopping the built-in Apache, if it's running, and prevent it from starting on boot.
# This is one of very few times you'll need to use sudo:
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null

# We need to tap homebrew-dupes because "homebrew-apache/httpd22" relies on "homebrew-dupes/zlib"

and install Apache 2.2 with the event MPM, and we'll use Homebrew's OpenSSL library

@cfont
cfont / Homebrew.md
Created March 31, 2017 14:21 — forked from alanivey/Homebrew.md
Homebrew MAMP on OS X Mavericks
@cfont
cfont / README.md
Created March 3, 2017 23:14
Homebrew packages

Over the time the list of installed packages from Homebrew got longer and longer. Here are lists, separated by categories.

Standard stuff:

$ brew install \
aria2 \
colordiff \
curl \
dos2unix \
@cfont
cfont / dice.sh
Created March 26, 2016 04:09 — forked from saltednut/dice.sh
quick build script for Drupal distributions that ship with a build makefile
#!/usr/bin/env bash
# Usage: dice makefile docroot dbuser dbpass dbname sitename install-profile
drupal_install_clean_env() {
if [[ -r $2 ]]; then
sudo rm -r $2
cd ~/
fi
if [[ -r $1 ]]; then
drush make --working-copy --concurrency=5 $1 $2
@cfont
cfont / pre-commit.py
Created March 10, 2016 23:19 — forked from dandye/pre-commit.py
pre-commit hook to re-write the TravisCI Badge with the current branch. Save as `.git/hooks/pre-commit` (without the .py extension)
#!/usr/bin/python
"""
Referencing current branch in github readme.md[1]
This pre-commit hook[2] updates the README.md file's
Travis badge with the current branch
[1] http://stackoverflow.com/questions/18673694/referencing-current-branch-in-github-readme-md
[2] http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
[3] https://docs.travis-ci.com/user/status-images/
@cfont
cfont / delicious-bookmark
Last active August 29, 2015 14:27 — forked from ltrebing/delicious-bookmark
A Delicious bookmarklet that opens an old-style new tab (or window) instead of putting a fancy inline frame thing on the page.
javascript:(function(e,t){window.open(%22https://delicious.com/save?url=%22+encodeURIComponent(e.location.href)+%22&title=%22+encodeURIComponent(e.document.title)+%22&note=%22+encodeURIComponent(%22%22+e.getSelection()?e.getSelection():e.document.getSelection?e.document.getSelection():e.document.createRange().text)+%22&v=1.1%22,%22_blank%22);})(window)
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #