Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Upload it to the same directory as wp-config.php and run it vía web
*
* Original idea from http://www.sanjaybhowmick.com/how-to-convert-mysql-collation-from-utf8mb4-to-utf8/
*/
include_once 'wp-config.php';
$dbname = DB_NAME;
@TCattd
TCattd / .gitignore_global
Last active April 12, 2017 19:42
TCattd's .gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@TCattd
TCattd / ubuntu-post-install.sh
Last active May 3, 2017 20:47
Linux post install scripts
#!/bin/bash
# [email protected]
# Ubuntu GNOME 14.10 x64
# For Asus Zenbook Prime UX32VD w/nvidia optimus
# rev20141027
sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get install -f -y ppa-purge samba ssh symlinks zsync p7zip-full p7zip rar bzip2 git git-core git-gui gitk legit subversion php5 php5-cli php5-gd php5-dev php5-curl php5-json php5-mcrypt php-pear imagemagick inkscape filezilla vlc browser-plugin-vlc audacity dconf-tools gconf-editor rhythmbox banshee meld gparted screenkey shotwell midori epiphany-browser libreoffice-writer libreoffice-impress libreoffice-calc myspell-es chromium-browser synaptic gimp gimp-plugin-registry pinta ark keepassx gnome-disk-utility baobab usb-creator-gtk libavcodec-extra libdvdread4 openjdk-7-jre smplayer openvpn network-manager-openvpn libmono-db2-1.0-cil gnome-search-tool catfish python-pip evince-gtk unetbootin openshot pitivi winff gnome-tweak-tool alacarte menulibre libxss1 brasero bzr transmageddon soundconverter poedit dvdrip nautilus-open-ter
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php
*/
$args = array(
@TCattd
TCattd / lesstart.less
Last active December 24, 2015 02:49
LESStart
/*
[email protected]
http://lesscss.org/
LESStart
This content is released under the (http://opensource.org/licenses/MIT) MIT License.
*/
@charset "UTF-8";
@TCattd
TCattd / wordpress_elextracto.php
Last active February 26, 2021 14:13
WordPress function, el_extracto
/*
Copyright (c) 2012 Esteban Cuevas ([email protected])
Licensed under The MIT License (MIT) http://opensource.org/licenses/mit-license.php
*/
/*
* el_extracto();
* Muestra el extracto si existe. Si no, crea uno con las primeras X palabras del contenido.
*
* https://github.com/TCattd