This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Echoes export statements for all pkgconfig paths of homebrew packages. | |
# You can echo the output directly to a file and source that. | |
# | |
# Usage: | |
# homebrew_pkgconfig.sh > .homebrew_pkgconfig && source ~/.homebrew_pkgconfig | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* Lightroom rename export action | |
* | |
* !! Please read carefully. | |
* | |
* This script is meant to be used with Lightroom as an export action. I wrote this script because I always rename my | |
* files on import using a specific format. When exporting however I want to replace a portion of the filename with the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/wp-includes/pluggable.php 2017-03-10 16:06:34.000000000 +0100 | |
+++ b/wp-includes/pluggable.php 2017-05-05 21:44:15.000000000 +0200 | |
@@ -323,11 +323,8 @@ | |
if ( !isset( $from_email ) ) { | |
// Get the site domain and get rid of www. | |
- $sitename = strtolower( $_SERVER['SERVER_NAME'] ); | |
- if ( substr( $sitename, 0, 4 ) == 'www.' ) { | |
- $sitename = substr( $sitename, 4 ); | |
- } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cheat(rowindex) { | |
var patches = document.querySelectorAll('.drag_container div[id^=patch_'+rowindex+'_]'); | |
patches = Array.prototype.slice.call(patches); | |
patches.sort(function(a,b) { | |
var indexA = parseInt(a.id.substr(8)); | |
var indexB = parseInt(b.id.substr(8)); | |
if(indexA < indexB) { |