Skip to content

Instantly share code, notes, and snippets.

@kdwolski
kdwolski / show-hide-icons
Created April 9, 2012 03:05
Mac show/hide desktop icons via terminal alias command
# Show/Hide desktop icons via command line alias
# Add this to .bash_profile
# http://osxdaily.com/2009/09/23/hide-all-desktop-icons-in-mac-os-x/
alias hidedesk='defaults write com.apple.finder CreateDesktop -bool false; killall Finder;'
alias showdesk='defaults write com.apple.finder CreateDesktop -bool true; killall Finder;'
@kdwolski
kdwolski / wpcom-open-graph.php
Created June 22, 2012 17:00 — forked from mjangda/wpcom-open-graph.php
Add Open Graph tags to your WordPress site
<?php
/**
* Plugin Name: WP.com Open Graph Tags
* Description: Add Open Graph tags so that Facebook (and any other service that supports them) can crawl the site better and we provide a better sharing experience
* Author: Automattic
* License: GPLv2, baby!
*
* @link http://ogp.me/
* @link http://developers.facebook.com/docs/opengraph/
*/
@kdwolski
kdwolski / jira_todo.php
Created August 24, 2012 18:52
Add issues in Jira RSS feed to todo.txt file
#!/usr/bin/php -q
<?php
/**
* A simple PHP Cli script to append items from a
* Jira RSS feed to a todo.txt file.
*
* I use this to access my work Jira issue list and update
* my todo.txt which syncs via Dropbox to todo.txt Android app.
*
* @author Kevin D. Wolski
body{
background:url(http://lorempixel.com/1024/768/) no-repeat;
background-size:cover;
}
#container{
width:90%;
margin:-10px auto;
@kdwolski
kdwolski / queries.sql
Last active September 20, 2016 21:36
Handy Drupal SQL Queries
# Set status override on nodes in XML Sitemap when they have a noindex meta tag set
# For sites using XML Sitemap and Meta Tag modules
UPDATE xmlsitemap JOIN metatag ON ( metatag.entity_id = xmlsitemap.id)
SET xmlsitemap.status_override = 1
WHERE xmlsitemap.id = metatag.entity_id AND metatag.data LIKE '%noindex%'