Skip to content

Instantly share code, notes, and snippets.

View ivo-ivanov's full-sized avatar
🚀

Ivo Ivanov ivo-ivanov

🚀
View GitHub Profile
@ivo-ivanov
ivo-ivanov / custom-meta-query.php
Created June 3, 2021 13:08
Custom Meta Query in WP #wp #query
$args = array(
'post_type' => 'objekt',
'posts_per_page' => -1,
'no_found_rows' => true,
'suppress_filters' => false,
//Se the meta query
'meta_query' => array(
//comparison between the inner meta fields conditionals
'relation' => 'AND',
//meta field condition one
@ivo-ivanov
ivo-ivanov / post_install.sh
Created August 27, 2022 19:17 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y