Skip to content

Instantly share code, notes, and snippets.

View JamoCA's full-sized avatar

James Moberg JamoCA

View GitHub Profile
@JamoCA
JamoCA / apple-att-iphone-merge-call-not-working.md
Last active October 20, 2023 23:56
Apple iPhone Call Merge and Call Hold Features Are Disabled. AT&T
View apple-att-iphone-merge-call-not-working.md

iPhone Call Merge and Call Hold Features Are Disabled

I encountered an odd issue while upgrading from an iPhone 12 to iPhone 15 Pro Max. I successfully transferred all data from my old iPhone 12 to the new iPhone 15 in order to set it up. I also fully wiped the iPhone 12 and traded it in to AT&T for the rebate. Both of this upgrade practices are fairly normal and is what I also did when I received the iPhone 12 year ago... however this time, "merge calls" and the ability to place a call on hold were both disabled in the user interface.

I found similar posts and they were either closed due to inactivity or had a simple cut-and-paste solution with no follow-up regarding whether or not the issue was fixed.

@JamoCA
JamoCA / gist:c7cdeaf9842c6233fe8e55b0c37642d5
Last active October 12, 2023 18:08
Basic ColdFusion example to post an audio file to Deepgram's "listen" API to transcribe audio files. #cfml
View gist:c7cdeaf9842c6233fe8e55b0c37642d5
<!---
2023-10-12 Basic ColdFusion example to post an audio file to Deepgram's "listen" API to transcribe audio files
Gist: https://gist.github.com/JamoCA/c7cdeaf9842c6233fe8e55b0c37642d5
Adobe Community Post: https://community.adobe.com/t5/coldfusion-discussions/help-converting-curl-to-cfhttp/m-p/14152562
Deepgram documentation: https://developers.deepgram.com/docs/transcribing-pre-recorded-audio
My Twitter: https://twitter.com/gamesover
--->
<cfscript>
myApiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
@JamoCA
JamoCA / CheckSSLCertificate_udf_demo.cfm
Last active September 28, 2023 21:25
CheckSSLCertificate UDF - Using ColdFusion & CURL to connect to remote HOST to identify SSL data (start/end dates, subject, subjectAltName, issuer & status) #cfml
View CheckSSLCertificate_udf_demo.cfm
<!--- checkSSLCertificate UDF - I use ColdFusion & CURL to connect to remote HOST to identify SSL data (start/end dates, subject, subjectAltName, issuer & status) #cfml
GIST: https://gist.github.com/JamoCA/fa7449d1f1a8b920d901b9b14a773e96
BLOG: https://dev.to/gamesover/how-to-check-ssl-certificate-using-coldfusion-curlexe-2c92
TWITTER: https://twitter.com/gamesover/status/1707506769466216593
NOTE: This UDF requires CURL. https://curl.se/
--->
<cfscript>
struct function checkSSLCertificate(required string targetUrl, string userAgent="", string resolveIp="", string exePath="", boolean debug=false) output=false hint="I use CURL to connect to remote HOST to identify SSL data (start/end dates, subject, subjectAltName, issuer & status)" {
arguments.exePath = (len(arguments.exePath)) ? arguments.exePath : "C:\CURL\CURL.exe"; // set to default CURL exe path
@JamoCA
JamoCA / whitespace.cfc
Last active October 10, 2023 15:59
ColdFusion/CFML function that Identifies and performs trim functions on white space-related characters
View whitespace.cfc
component displayname="whitespace" output="false" hint="Identifies and performs trim functions on white space-related characters" {
/*
author: James Moberg <james@ssmedia.com>
date: 2019-01-07
Description: Removes all whitespace-related characters (ie, Zero-Width SPaces (ZWSPs)) from a string... not just characters below U+0020.
.NET Trim() really trims a string - also trimming non-breaking-spaces. This is not the case in Java.
http://www.henrikbrinch.dk/Blog/2013/02/28/java-net-string-gotchas-of-the-day/
https://stackoverflow.com/a/4731164/693068
https://stackoverflow.com/a/4307261/693068
@JamoCA
JamoCA / mousever-event-test.htm
Last active July 28, 2023 16:35
Mouseover event testing. Doesn't matter if using delegation or individual TR events, it misses some rows.
View mousever-event-test.htm
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<!--
Date: 2023-07-28
Twitter: https://twitter.com/gamesover/status/1684964842418176000
GIST: https://gist.github.com/JamoCA/2ceb233bd4219fae92a69c5bd2fc86f8
-->
<script>
function highlightRow(elem, color="pink"){
@JamoCA
JamoCA / createIsoString-udf.cfm
Last active July 28, 2023 17:10
createIsoString - ColdFusion/CFML UDF - Converts date object/string into a UTC, ISO8601, RFC 339, ATOM or W3C string to a timezone with offset and optional millisecond precision
View createIsoString-udf.cfm
/* createIsoString UDF by James Moberg / SunStar Media
2023-07-16
Gist: https://gist.github.com/JamoCA/3e825f773d3bbb45f5c36ee85793e10e
Blog: https://dev.to/gamesover/createisostring-a-coldfusion-user-defined-function-udf-to-replace-datetimeformatiso-2p15
Tweet: https://twitter.com/gamesover/status/1680711586946891776
*/
public string function createIsoString(string date="", string timezone="local", string truncatedTo="MILLIS", string format="utc", boolean throwOnError=true) output=false hint="Converts date object/string into a UTC, ISO8601, RFC 339, ATOM or W3C string to a timezone with offset and optional millisecond precision" {
if (!len(arguments.date) || arguments.date eq "now"){
arguments.date = now();
};
@JamoCA
JamoCA / QoQ_ColumnName_Spaces_Fail.cfm
Last active May 24, 2023 18:12
Short, Self Contained, Correct (Compilable), Example (SSCCE) of ColdFusion Bug CF-4212034 (cfml)
View QoQ_ColumnName_Spaces_Fail.cfm
<!--- 2023-05-24
Short, Self Contained, Correct (Compilable), Example (SSCCE) of ColdFusion Bug CF-4212034
https://tracker.adobe.com/#/view/CF-4212034 (Please upvote)
GIST: https://gist.github.com/JamoCA/19dd449408fbec923f7c21a173a0f0dc
REQUIRES: spreadsheet-cfml https://github.com/cfsimplicity/spreadsheet-cfml
--->
<cfscript>
savecontent variable="csv" {
@JamoCA
JamoCA / getSecondsDiff.cfm
Last active May 15, 2023 15:48
getSecondsDiff UDF: Returns timestamps difference in "decimal seconds" to include millisecond accuracy; returns -1 if invalid times #coldfusion #cfml
View getSecondsDiff.cfm
<cfscript>
/* 2023-05-15 getSecondsDiff()
Gist: https://gist.github.com/JamoCA/74b16f3a1594b585df79ea2c5800ecba
*/
public numeric function getSecondsDiff(required t1, required t2, string decimalPrecision="3") hint="Returns timestamps difference in decimal seconds; returns -1 if invalid times" {
if (!isdate(arguments.t1) || !isdate(arguments.t2) || arguments.t2 lte arguments.t1) {
return javacast("int", -1);
}
// writeoutput("<div><b>#datetimeformat(arguments.t1, "HH:nn:ss.lll")# - #datetimeformat(arguments.t2, "HH:nn:ss.lll")#</b></div>");
local.d = dateformat(arguments.t1);
@JamoCA
JamoCA / getPasswordBreachCount.cfm
Last active May 5, 2023 19:58
ColdFusion function to validate hashed password with HaveIBeenPwned API v2 to return numeric breach count. (cfml)
View getPasswordBreachCount.cfm
<!--- 20230505 Inspired by on https://github.com/JayIsPainting/CFML_HIBP but returns a numeric value (for use with APIs)
GIST: https://gist.github.com/JamoCA/328157ed2caf3c2887ef5cfc1e9d46e3
--->
<cffunction name="getPasswordBreachCount" returntype="numeric" output="no" access="public" hint="Checks supplied password against HaveIBeenPwnd Passwortd APIv2 and returns number of breachs.">
<cfargument name="pwd" type="string" required="true">
<cfset local.passwordHash = hash(arguments.pwd, "SHA")>
<cfset local.prefix = left(hash(arguments.pwd, "SHA"), 5)>
<cfset local.passMatch = right(local.passwordHash, len(local.passwordHash)-5)>
<cfhttp url="https://api.pwnedpasswords.com/range/#local.prefix#" method="get" useragent="CFML_PwnChk" result="local.cfhttp" getasbinary="never"></cfhttp>
@JamoCA
JamoCA / normalize-high-ascii-text.cfm
Created April 28, 2023 15:18
Sample ColdFusion on how to remove high ascii from strings
View normalize-high-ascii-text.cfm
<!--- 20230428 https://stackoverflow.com/questions/76120058/removing-unicode-invalid-characters-from-string
Try this at TryCF.com
--->
<cfoutput>
<cfset k = "E�l�e�c�t�r�o�n�i�c">
<div><b>original:</b> #k#</div>
<cfset k2 = rereplace(k, "[^\x20-\x7E]", "", "ALL")>
<div><b>rereplace:</b> #k2#</div>