Skip to content

Instantly share code, notes, and snippets.

View markdrzy's full-sized avatar

Mark Drzycimski markdrzy

View GitHub Profile
@markdrzy
markdrzy / dnsmasq OS X.md
Created October 29, 2021 21:24 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@markdrzy
markdrzy / delete-mysql.sh
Created June 7, 2017 20:26
For-real Removing MySQL from Ubuntu (14.04)
#!/bin/bash
sudo apt-get --purge remove mysql-server mysql-common mysql-client
# Save old config
sudo mv /etc/mysql /etc/mysql-old
# Save old data
sudo mv /var/lib/mysql /var/lib/mysql-old
@markdrzy
markdrzy / nginx_modsite
Created December 13, 2015 23:24
NGINX Modsite Script
#!/bin/bash
##
# File:
# nginx_modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory:
@markdrzy
markdrzy / my-first-gistlog.md
Created August 20, 2015 00:54
My First Gistlog

Well.

So here it is. Exciting.

<?php exit;
<!-- Basic output -->
<ul>
{exp:structure_output:nav depth="2"}
<li class="{if struct:first}first{/if} {if struct:last}last{/if} {if struct:here}here{/if} {if struct:parent_here}parent-here{/if}">
<a href="{struct:url}">{struct:title}</a>
{if struct:children:count}
<ul>
{struct:children}
</ul>
@markdrzy
markdrzy / logo.svg
Created March 27, 2014 01:55
SECRET
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am markdrzy on github.
  • I am mark_drzy (https://keybase.io/mark_drzy) on keybase.
  • I have a public key ASB-lU9CdMBcFo6tYn6dlWnnNluNoSebwuLnNcF9LHEnMgo

To claim this, I am signing this object:

@markdrzy
markdrzy / prime-varnish.sh
Created October 1, 2013 14:55
A dead-simple Varnish primer.
#!/bin/bash
cmd="sudo varnishadm -S /etc/varnish/secret"
protocol="http://"
host="domain.com"
pages="
/
/section-one/
/section-two/
/section-three/
@markdrzy
markdrzy / pre-commit
Created August 29, 2013 09:47
A pre-commit hook to auto-compile CSS for production with Compass.
#!/bin/bash
compass compile -c nimbus-local/config/compass-prod.rb --force httpdocs/assets/css
wait $!
git add httpdocs/assets/css/*.css
@markdrzy
markdrzy / .gitignore
Created November 15, 2012 14:25
A handy .gitignore to track empty directories--useful for cache directories.
# Exclude everything in this directory...
*
# ... except the .gitignore file.
!.gitignore