Skip to content

Instantly share code, notes, and snippets.

@marcel-dempers
marcel-dempers / devilspie-vscode-transparency.sh
Created September 22, 2019 09:49
How to make VSCode transparent in Linux
#!/bin/bash
sudo apt-get install -y devilspie
mkdir -p ~/.devilspie
echo '
(if (contains (window_class) "Code")
(begin
(spawn_async (str "xprop -id " (window_xid) " -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 "))
(spawn_async (str "xprop -id " (window_xid) " -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xD8000000"))
@tripflex
tripflex / functions.php
Last active July 24, 2017 23:13
Set custom map icon for featured listings in Listify WordPress theme (for WP Job Manager)
<?php
add_filter( 'listify_listing_data', 'smyles_custom_featured_listing_map_icon', 50, 2 );
function smyles_custom_featured_listing_map_icon( $data, $post ){
// Make sure passed $post is WP_Post object
if( $post instanceof WP_Post ){
// If listing is featured listing, change icon
if( ! empty( $post->_featured ) ){
// Set the icon to use below (@see http://ionicons.com/)
<?php
function do_things_late() {
global $listify_job_manager;
$template = $listify_job_manager->template;
$childargs = '';
global $listify_navigation;
@strangerstudios
strangerstudios / pmpro_customizations.php
Last active May 6, 2021 09:00
Add a one-time-use 14 day trial to a monthly recurring membership level with Paid Memberships Pro. Place this file in wp-content/plugins/pmpro-customizations/pmpro-customizations.php on your site, then active the plugin through the WP dashboard.
<?php
/*
Plugin Name: PMPro Customizations
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for Paid Memberships Pro (14 day trial on level 1)
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/