Skip to content

Instantly share code, notes, and snippets.

<?php
// Real Media Library Disable Auto Expands
if ( !function_exists( 'rml_custom_js' ) ) {
function rml_custom_js(){
$list = wp_rml_root_childs();
$idList = [];
foreach ($list as $listItem) {
$idList[$listItem->getId()] = false;
}
openssl pkcs12 -in MyCertificate.pfx -clcerts -nokeys -out MyCertificate.crt
openssl pkcs12 -in MyCertificate.pfx -nocerts -out MyCertificate-encrypted.key
openssl rsa -in MyCertificate-encrypted.key -out MyCertificate_unenc.key
openssl pkcs12 -export -out MyCertificate_np.pfx -inkey MyCertificate_unenc.key -in MyCertificate.crt -passout pass:
@ThemeSama
ThemeSama / readme.md
Created August 6, 2020 13:08 — forked from dayvsonlima/readme.md
Install Adobe Photoshop CS6 on Wine (Ubuntu, Elementary OS, Linux Mint)

Step 1. Install the Wine Team Ubuntu PPA

First start by installing Wine btw it's a utility to install windows apps in linux :

open the Terminal and :

   sudo add-apt-repository ppa:ubuntu-wine/ppa     
   sudo apt-get update && sudo apt-get upgrade
   sudo apt-get install wine1.7 winetricks
@ThemeSama
ThemeSama / clean-up-boot-partition-ubuntu.md
Created February 11, 2019 08:48 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@ThemeSama
ThemeSama / permalink.java
Created February 22, 2016 08:43
Permalik with Original Title
<?php
/**
* The template for displaying EDD Tag pages
*
* @since Slupy 1.0
*/
get_header();
// if download taxonomy archive, output information about the term
@ThemeSama
ThemeSama / portfolio-gallery.txt
Created July 3, 2015 00:24
Portfolio Gallery Example
@ThemeSama
ThemeSama / corporate.txt
Created April 29, 2015 05:55
Slupy Corporate Page
[vc_row disable_padding_columns="on" disable_container="on" parallax="off" parallax_speed="0.2" bg_video_loop="off" bg_color="#1b90b3"][vc_column width="1/1"][rev_slider alias="corporate"][/vc_column][/vc_row][vc_row bg_color="#f8f8f8" parallax="off" parallax_speed="0.2" space="space-40"][vc_column width="1/1"][ts_icon heading="Welcome to Slupy Multi-Purpose WordPress Theme" h_size="2" size="none" class="text-center"][vc_column_text el_class="text-center"]Quickly transform your designs into beautiful, fully interactive prototypes complete with
gestures transitions &amp; animations for web, iOS &amp; Android.[/vc_column_text][ts_gap size="10px" horizontal_gap="off"][/vc_column][/vc_row][vc_row space="space-40" parallax="off" parallax_speed="0.2"][vc_column width="1/1"][ts_icon heading="Our Process" h_size="3" size="none"][vc_row_inner][vc_column_inner width="1/3"][ts_media image_src="http://slupytheme.com/wp-content/uploads/2014/04/responsive.jpg" autoplay="off" muted="off" controls="on" class="aligncenter"][t
@ThemeSama
ThemeSama / add-theme-support.php
Last active December 19, 2017 17:28
add_theme_support for WordPress
<?php
/**
* Theme Support, Nav & Textdomain
*
* @since 1.0
* @author ThemeSama (@theme_sama)
*/
if( !function_exists( 'THEMEPREFIX_theme_support' ) ) {
function THEMEPREFIX_theme_support() {
//Site Title Tag