Skip to content

Instantly share code, notes, and snippets.

@jfkhoury
jfkhoury / ubuntu.sh
Created September 8, 2021 17:47
ubuntu
#!/bin/bash
# Colors schemes for echo:
RD='\033[0;31m' # Red
GN='\033[0;32m' # Green
MG='\033[0;95m' # Magenta
NC='\033[0m' # No Color
ERROR_STRING="Installation error. Exiting"
CURRENT_PATH=$(pwd)
{
"requestId": "f68dbdc0-8f97-4874-b974-8749239ecceb",
"handle": [],
"errors": [
{
"msg": "Client request(https://usw2.demdex.net:443/event?d_orgid=53A16ACB5CC1D3760A495C99%40AdobeOrg&d_rtbd=json&d_mid=05453742989423429381328555304839868807&_atag.adobeIMS.profile.account_type=type1&_atag.adobeIMS.profile.address=null%2C+345+Park+Ave+null+null+null+null+null%2C+San+Jose%2C+USA.CA%2C+CA%2C+95110-2704%2C+US&_atag.adobeIMS.profile.utcOffset=null&_atag.adobeIMS.profile.preferred_languages=en&_atag.adobeIMS.profile.displayName=Benjamin+Bytheway&_atag.adobeIMS.profile.last_name=Bytheway&_atag.adobeIMS.profile.userId=B121168B4EE325B30A490D45%40AdobeID&_atag.adobeIMS.profile.projectedProductContext.prodCtx.tenant_id=https%3A%2F%2Ftechmarketing.campaign-demo.adobe.com&_atag.adobeIMS.profile.projectedProductContext.prodCtx.tenant_id=techmarketing&_atag.adobeIMS.profile.projectedProductContext.prodCtx.tenant_id=adobeintranet&_atag.adobeIMS.profile.projectedProductContext.prodCtx.tenant_id=cmdmtest&_atag.a
@jfkhoury
jfkhoury / disallow-new.js
Created September 1, 2016 13:03 — forked from mattdesl/disallow-new.js
avoiding new in classes
// Allows:
// funkyParser()
module.exports = function createFunkyParser(opt) {
return new FunkyParser(opt)
}
function FunkyParser(opt) {
// make params optional
opt = opt || {}
that.updateColor = function (newColor) {
color = newColor;
bridge.post_set_selection_color(colorValue(color));
rangeSelection.change_color(colorValue(color));
updateSelection();
publish("propertychanged", propertyChangedEvent("color"));
};
that.buttonLabel = ko.computed(function () {
if (that.isTermSelected()) {
return str("deleteEntireTerm");
}
if (idsToDelete().length > 0) {
return idsToDelete().length === 1 ? str("deleteCourse") : str("deleteCourses");
}
return str("deleteSelection");