Skip to content

Instantly share code, notes, and snippets.

View AmauryVanEspen's full-sized avatar

Amaury Van Espen AmauryVanEspen

View GitHub Profile
AmauryVanEspen / imath-pm-friends-only.php
Created May 2, 2023 13:12 — forked from imath/imath-pm-friends-only.php
I was writing my second BuddyPress tutorial for when i realized it could be helpful for a community admin to restrict private messages to friends only...
View imath-pm-friends-only.php
/*** beginning of the code to paste in your functions.php ***/
function imath_pm_button_only_if_friends( $button ) {
if( is_super_admin() )
return $button;
if( 'is_friend' != friends_check_friendship_status( bp_displayed_user_id(), bp_loggedin_user_id() ) )
return false;
AmauryVanEspen / gist:889d4ae201788b5b1c6b24d3b9015b7e
Created December 1, 2020 18:50
EURL Google Apps Script for Quickbooks
View gist:889d4ae201788b5b1c6b24d3b9015b7e
<h2>End-User License Agreement (EULA) of <span class="app_name">Google Apps Script for Quickbooks</span></h2>
<p>This End-User License Agreement ("EULA") is a legal agreement between you and <span class="company_name">Alterna R&amp;D</span>. Our EULA was created by <a href="">EULA Template</a> for <span class="app_name">Google Apps Script for Quickbooks</span>.</p></p>
<p>This EULA agreement governs your acquisition and use of our <span class="app_name">Google Apps Script for Quickbooks</span> software ("Software") directly from <span class="company_name">Alterna R&amp;D</span> or indirectly through a <span class="company_name">Alterna R&amp;D</span> authorized reseller or distributor (a "Reseller"). Our Privacy Policy was created by <a href="">the Privacy Policy Generator</a>.</p>
<p>Please read this EULA agreement carefully before completing the installation process and using the <span class="app_name">Google Apps Script for Quickbooks</sp
AmauryVanEspen / gas_qbo_oauth2.js
Created July 18, 2020 12:49 — forked from goelp/gas_qbo_oauth2.js
Google Apps Script OAuth2 script for QuickBooks integration with Google Sheets
View gas_qbo_oauth2.js
var CLIENT_ID = '...'; // Get from Quickbooks Developer Console
var CLIENT_SECRET = '...'; // Get from Quickbooks Developer Console
var BASE_AUTH_URL = '';
var TOKEN_URL = '';
var API_SCOPE = '';
var REDIRECT_URI = '...'; // Generate using the logRedirectUri() function mentioned at the end of this script
var RESPONSE_TYPE = 'code';
* Authorizes and makes a request to the Quickbooks API using OAuth 2.
View Z_Monitor_batch_jobs
*& Report Z_BC_JOB_PERF
REPORT z_bc_job_perf.
*Selection Screen Text Elements Declared :
*TEXT-005 - Batch job monitoring
View rename
@echo off
set filedate=%DATE%
set filedate=%filedate:~6,4%%filedate:~3,2%%filedate:~0,2%
setlocal enableextensions enabledelayedexpansion
for /r %%f in (*.txt) do (
set filename=%%~nxf
ren *.txt "%filedate%_NU_LCC-INTELKD-IAQ-OSINT-!filename: =-!"
AmauryVanEspen /
Last active August 15, 2018 23:51 — forked from gitaarik/
Git Submodules basic explanation

Git Submodules basic explanation

update from

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

AmauryVanEspen / drop-submenu.js
Created March 20, 2017 11:00
View drop-submenu.js
-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;
border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}