Skip to content

Instantly share code, notes, and snippets.

@pudgereyem
pudgereyem / gist:8070996
Created December 21, 2013 15:43
SHELL: Viewing the Skype chat history
# Viewing the Skype chat history
# <http://superuser.com/questions/93682/viewing-the-full-skype-chat-history>
# As suggested by [daniel-beck](http://superuser.com/users/22317/daniel-beck)
# 1. Shut down Skype (Otherwise the db will be locked, I think)
# 2. Located your main.db file. It's normally stored under `/Users/username/Library/Application\ Support/Skype/yourskypeusername/main.db`
# 3. Run the following command to output the chat log, but replace "theOtherPersonsUserName".
sqlite3 main.db "SELECT author, from_dispname, datetime(timestamp, 'unixepoch') as date, body_xml FROM Messages where dialog_partner = 'theOtherPersonsUserName' ORDER BY timestamp;" > "theOtherPersonsUserName.log"
@pudgereyem
pudgereyem / advanced-custom-fields-database-setup.php
Last active January 1, 2016 12:29
PHP, WORDPRESS: Database setup for Advanced Custom Fields when having a "development" and a "production" environment.
<?php
/*
* Database setup for Advanced Custom Fields
*
* @description: Database setup for Advanced Custom Fields when having a
* "development" and a "production" environment.
* @created: 2013-12-27
*/
@pudgereyem
pudgereyem / gist:8148250
Created December 27, 2013 15:09
PHP, WORDPRESS: Register post type
<?php
/* Init post types */
add_action( 'init', 'wtf_post_resource_register' );
/*--------------------------------------------------------------------------------------
*
* wtf_post_resource_register
*
* @author Victor Meyer

Keybase proof

I hereby claim:

  • I am pudgereyem on github.
  • I am pudgereyem (https://keybase.io/pudgereyem) on keybase.
  • I have a public key ASAS2tMlcmOfinA4vbv12QG6aseGsJ0nbGlgy_3PoNQxowo

To claim this, I am signing this object:

@pudgereyem
pudgereyem / Gruntfile.js
Created February 6, 2014 20:58
GRUNT: My Grunt Setup
/*
TO DO
1) Reduce CSS duplication
- Ideally just a single build - global.scss turns into /build/global.css
- Can Autoprefixer output minified?
- If it can, is it as good as cssmin?
- Could Sass be used again to minify instead?
- If it can, is it as good as cssmin?
@pudgereyem
pudgereyem / GIT: Commands
Last active June 15, 2018 09:15
GIT: Useful commands
# If you regret all the changes you've done (in the HEAD)
# Sort of like a huge/massive CMD-Z (undo).
git reset --hard HEAD
### ---
# If you have commited changes, and then end up regretting that,
# because you want to add new changes to that very commit.
# First add files
git add .
@pudgereyem
pudgereyem / _hidden-scrollbar.sass
Created October 13, 2016 12:43
Hidden Scrollbar
/*
* Hidden scrollbar
*/
::-webkit-scrollbar
width: 0px
::-webkit-scrollbar-track-piece
background-color: transparent
-webkit-border-radius: 6px