Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Miguel Useche Skatox

🏠
Working from home
View GitHub Profile
@Skatox
Skatox / class-my-class.php
Created Aug 23, 2017
A WordPress plugin class
View class-my-class.php
<?php
/**
* Class description
*
* @package Plugin name
*/
/**
* Class My_Class
*
@Skatox
Skatox / upgrade.sh
Last active Mar 31, 2018 — forked from uggedal/upgrade.sh
Upgrade postgresql from 9.4 to 9.5 on Arch Linux
View upgrade.sh
systemctl stop postgresql && pacman -Syu --noconfirm && su - postgres -c 'mv /var/lib/postgres/data /var/lib/postgres/olddata' && su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'" && systemctl start postgresql.service && systemctl stop postgresql.service && pacman -S postgresql-old-upgrade --noconfirm && su - postgres -c 'pg_upgrade -d /var/lib/postgres/olddata/ -D /var/lib/postgres/data/ -b /opt/pgsql-9.4/bin/ -B /usr/bin/' && /var/lib/postgres/delete_old_cluster.sh && rm /var/lib/postgres/delete_old_cluster.sh && /var/lib/postgres/analyze_new_cluster.sh && systemctl start postgresql.service && pacman -Rs postgresql-old-upgrade --noconfirm
@Skatox
Skatox / wc-api-custom.php
Created Nov 16, 2015
Woocommerce API REST custom path
View wc-api-custom.php
<?php
/**
* Custom API REST path class
*
* @package MyPlugin
* @author Skatox
*/
class WC_API_Custom extends WC_API_Resource
{
You can’t perform that action at this time.