This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can also define how many recent versions you want to keep. To retain only one past version use: | |
# paccache -rk1 | |
Add the u switch to limit the action of paccache to uninstalled packages. For example to remove all cached versions of uninstalled packages, use the following: | |
# paccache -ruk0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset oZoneId = createObject( "java", "java.time.ZoneId")> | |
<cfset oInstant = createObject( "java", "java.time.Instant")> | |
<cfset oTextStyle = createObject( "java", "java.time.format.TextStyle")> | |
<cfset oLocale = createObject( "java", "java.util.Locale").init( getLocale() )> | |
<cfset qryTZ = queryNew( | |
"offset,zone,region,displayfull,displayfullstdo,displaynarrow,displaynarrowstdo,displayshort,displayshortstdo,displayfulloffset,displayshortoffset", | |
"Integer,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar" | |
)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
http://teratech.com/is-lucee-cfml-now-better-than-adobe-coldfusion/ | |
---> | |
<cfscript> | |
data={ | |
boolean:true, | |
stringTrue:'true', | |
stringYes:'yes', | |
number:5, | |
stringFive:'5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
/** | |
* URI encoding per RFC 3986, which has treats the following as unreserved: ALPHA / DIGIT / "-" / "." / "_" / "~" | |
* @text Text to encode | |
* @returns URI encoded text | |
*/ | |
public function encodeRFC3986(required string text) { | |
// Requires CF10+ | |
Local.encoded = encodeForURL(arguments.text); | |
// Reverse encoding of tilde "~" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
https://plus.google.com/+JustinCookie/posts/CSj9HVoRTcY | |
---> | |
<cfscript> | |
sFactory = CreateObject("java", "coldfusion.server.ServiceFactory"); | |
sFactory.mailSpoolService.stop()'; | |
sFactory.mailSpoolService.start(); | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
http://cflive.net/ | |
https://trycf.com/scratch-pad/gist/b53c961633fabec3634b7a68a88b700c | |
---> | |
<cfscript> | |
stAnswer = { | |
givenAnswer = "no" | |
}; | |
writeOutput(stAnswer.givenAnswer ?: "leeg"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"telemetry.enableTelemetry": false, | |
"telemetry.enableCrashReporter": false, | |
"editor.fontSize": 12, | |
"editor.fontLigatures": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.cursorStyle": "line", | |
"editor.rulers": [ | |
80, | |
120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset oJSOUP = CreateObject("java", "org.jsoup.Jsoup" )> | |
<cfset oJSOUPWL = CreateObject("java", "org.jsoup.safety.Whitelist" ).init()> | |
<cfdump var="#oJSOUP#" expand="false"> | |
<cfdump var="#oJSOUPWL#" expand="false"> | |
<cfdump var="#oJSOUPWL.relaxed()#" expand="false"> | |
<cfdump var="#oJsoup.clean('<a href="link.html"><img src="http://example.com/bild.gif"></a>', oJSOUPWL.relaxed().addAttributes("a", ["href", "class"] ).addAttributes("img", ["src", "class", "styles", "width", "height"] ).removeProtocols("a", "href", ["ftp", "http", "https", "mailto"]).removeProtocols("img", "src", ["http", "https"]) )#"> | |
<cfdump var="#oJsoup.clean('<a href="link.html"><img src="http://example.com/bild.gif"></a>', "http://example.com/", oJSOUPWL.relaxed().preserveRelativeLinks(true))#"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
̶𝕭̶̶ 𝖗̶̶ 𝖆̶̶ 𝖚̶̶ 𝖓̶̶ 𝖐̶̶ 𝖔̶̶ 𝖍̶̶ 𝖑̶̶ 𝖊̶ | |
http://qaz.wtf/u/convert.cgi?text=Braunkohle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CommandBox:stmelfposy> utils normalize-line-endings *.txt --type windows | |
Confirm normalizing line endings for 179 files : y | |
ERROR (3.9.2+00826) | |
variable [NEWCONTENT] doesn't exist | |
C:\Users\bddoeble\.CommandBox\cfml\system\modules_app\utils-commands\commands\utils\normalize-line-endings.cfc: line 95 | |
93: } | |
94: | |
95: if ( content != newContent ) { |