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
Fresh install of Ubuntu. No DisplayLink driver installed. | |
Switched to Nvidia dirver 535.129.03 open from the x.org per https://support.system76.com/articles/upgrade-ubuntu, which says: | |
To add PPA deb https://ppa.launchpadcontent.net/system76-dev/stable/ubuntu/ jammy main | |
(more info at https://launchpad.net/~system76-dev/+archive/ubuntu/stable) | |
and to install the System76 Driver on an NVIDIA based system: | |
```sudo apt-get install -y system76-driver-nvidia``` | |
More info: https://launchpad.net/~system76-dev/+archive/ubuntu/stable | |
--- |
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
import org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.NodeState | |
import org.apache.jackrabbit.oak.spi.state.NodeBuilder | |
class LibsCleaner { | |
def session | |
def scanBundles(remove = false) { |
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
import java.util.concurrent.atomic.AtomicInteger | |
import org.apache.jackrabbit.oak.api.Type | |
import org.apache.jackrabbit.oak.plugins.segment.SegmentBlob | |
import org.apache.jackrabbit.oak.spi.state.NodeState | |
def countNodes(NodeState n, String path = "/", Integer flush = 1000000, Long warnAt = 1000, AtomicInteger count = new AtomicInteger(0), AtomicInteger binaries = new AtomicInteger(0), root = true) { | |
if(root) { | |
println "Counting nodes in tree ${path}" | |
} |
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
import org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.NodeStore | |
import org.apache.jackrabbit.oak.commons.PathUtils | |
def rmNode(def session, String path) { | |
println "Removing node ${path}" | |
NodeStore ns = session.store | |
def nb = ns.root.builder() |
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
import java.io.InputStream; | |
import java.util.concurrent.atomic.AtomicInteger | |
import org.apache.jackrabbit.oak.api.Type | |
import org.apache.jackrabbit.oak.plugins.segment.SegmentBlob | |
import org.apache.jackrabbit.oak.spi.state.NodeState | |
def countNodes(NodeState n, deep = false, String path = "/", Integer flush = 50000, AtomicInteger count = new AtomicInteger(0), AtomicInteger binaries = new AtomicInteger(0), root = true) { | |
if(root) { | |
println "Counting nodes in tree ${path}" | |
} |
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
(* | |
Script to Mark Item as Read and Move to folder "Archive" | |
For Microsoft Outlook 15 | |
*) | |
tell application "Microsoft Outlook" | |
activate | |
set msgSet to current messages | |
if msgSet = {} then | |
error "No Messages selected. Select at least one message." |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.wmd.filter.impl; | |
import com.day.cq.replication.ReplicationContentFilter; | |
import com.day.cq.wcm.api.NameConstants; |
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
+-----------------------+ | |
| /etc/rc.d/init.d/cq5 | | |
+-----------------------+ | |
#!/bin/bash | |
# | |
# cq5 Startup script for Adobe AEM/CQ5 | |
# | |
# chkconfig: 345 80 20 | |
# description: Startup script for Adobe AEM/CQ5 |
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
#!/bin/bash | |
# a script to make it easier for developers to start multiple CQ instances | |
# instructions here http://labs.sixdimensions.com/blog/2014-04-28/my-aem-dev-setup/ | |
# Default Settings | |
version=5.6.1 | |
root=~/dev/cq | |
publish= | |
debug="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
> I'm interested in finding a list of child pages of a node with a specific tag e.g. | |
> | |
> type=cq:Page | |
> path=/content/geometrixx/en/toolbar | |
> p.hits=full | |
> property=jcr:content/cq:tags | |
> property.operation=equals | |
> property.value=geometrixx-media:events/concerts | |
> | |
> However, the query does a deep search and returns a list of all the pages whose path starts with the aforesaid value. I do not want to do deep search. I'm interested in the immediate child nodes only. |
NewerOlder