Skip to content

Instantly share code, notes, and snippets.

View kristinpeterson's full-sized avatar

Kristin Peterson kristinpeterson

View GitHub Profile
@mrchief
mrchief / LICENSE.md
Last active March 23, 2024 12:28
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)

MIT License

Copyright (c) [year] [fullname]

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:

@ncherro
ncherro / remove-zend_framework-hack.sh
Last active December 18, 2015 16:09
script to recursively removed $zend_framework hacks from php files
#!/bin/bash
# this recursively loops through all files ending in .php, then removes the
# zend framework hack code. tested on Ubuntu using sed v 4.2.1
#
# best to run this as root so there aren't any permissions issues
find . -type f -name "*.php" -print | xargs sed -i.hacked 's/^<?php $zend_framework="\\x63\\162\\x65.*?>//g'
# now remove the hacked files