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
*= $4000 | |
!cpu 65c02 | |
!sl "globals.txt" | |
;----------- | |
reg_ORB = 0 ;Output Register B | |
reg_ORA = 1 ;Output Register A | |
reg_DDRB = 2 ;Data direction reg B | |
reg_DDRA = 3 ;Data direction reg A | |
reg_T1CL = 4 ;T1 low-order latches (low-order counter for read operations) |
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
; use with 8bitworkshop's VCS IDE | |
; http://8bitworkshop.com/?platform=vcs | |
processor 6502 | |
; Include files for Atari 2600 constants and handy macro routines | |
include "vcs.h" | |
include "macro.h" | |
org $f000 |
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
cd "\Program Files (x86)\Windows Kits\10\Tools\x64" | |
devcon disable IntelAudio*8086* | |
devcon enable IntelAudio*8086* |
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
<%@page session="false" contentType="text/html; charset=utf-8" | |
pageEncoding="UTF-8" import="java.lang.*,java.io.*"%><% | |
Process p = Runtime.getRuntime().exec("df",new String[]{"-h"}); | |
p.waitFor(); | |
%><h2>STDERR:</h2><pre><% | |
String line; | |
BufferedReader error = new BufferedReader(new InputStreamReader(p.getErrorStream())); | |
while((line = error.readLine()) != null){ | |
%><%=line%> | |
<% |
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
<%@page session="false" contentType="text/html; charset=utf-8" | |
import="java.util.*,java.net.*"%><% | |
List<NetworkInterface> ifaces = Collections.list(NetworkInterface.getNetworkInterfaces()); | |
for(NetworkInterface ifc : ifaces) { | |
if(ifc.isUp()) { | |
List<InetAddress> addrs = Collections.list(ifc.getInetAddresses()); | |
for(InetAddress addr : addrs) { | |
%> | |
<%=addr.getHostAddress()%><br> |
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
<%@include file="/libs/foundation/global.jsp"%> | |
<%@page session="false" contentType="text/html; charset=utf-8" pageEncoding="UTF-8" | |
import="com.adobe.acs.commons.workflow.synthetic.*, | |
com.adobe.acs.commons.fam.*, | |
com.adobe.acs.commons.functions.*, | |
org.apache.sling.api.resource.*, | |
java.util.*, | |
javax.jcr.*, | |
com.day.cq.search.*, | |
com.day.cq.dam.commons.util.DamUtil, |
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
<%@include file="/libs/foundation/global.jsp"%> | |
<%@page session="false" contentType="text/html; charset=utf-8" pageEncoding="UTF-8" | |
import="java.util.*, | |
com.adobe.acs.commons.fam.*, | |
com.adobe.acs.commons.functions.*, | |
com.adobe.granite.asset.api.*, | |
com.day.cq.replication.*, | |
org.apache.sling.api.resource.*, | |
javax.jcr.*"%><% | |
ActionManagerFactory amf = sling.getService(ActionManagerFactory.class); |
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
// Step 1: retrieve group list via http://AEMINSTANCE:4502/home/groups.xml and save as group.xml | |
// Step 2: modify this script (find/replace AEMINSTANCE:4502 with your AEM host/port, also USERNAME and PASSWORD) | |
// Stpe 3: run this script in the same directory as group.xml | |
// Step 4: make the output groups_retrieve.sh executable and run it | |
// Step 5: use the buildGroupMatrix.groovy script to render the spreadsheet | |
def groupXml = 'groups.xml' as File | |
def outScript = 'groups_retrieve.sh' as File | |
def allGroups = new XmlSlurper().parseText(groupXml.getText()) | |
pathBuilder = {node, 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 groovy.json.* | |
def slurper = new JsonSlurper() | |
slurper.setType(JsonParserType.INDEX_OVERLAY); | |
def groupDir = '.' as File | |
def output = 'matrix.txt' as File | |
def users = new TreeMap(); | |
def userGroups = new HashMap(); |
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 com.webcodepro.applecommander.storage.os.dos33.DosFormatDisk | |
import com.webcodepro.applecommander.storage.Disk | |
import com.webcodepro.applecommander.storage.physical.DosOrder | |
import com.webcodepro.applecommander.storage.physical.ByteArrayImageLayout | |
import java.io.File | |
def baseDir="/Users/blurry/Downloads/ac33" | |
def outDir="/Users/blurry/Downloads/ac33_extracted" | |
def sourceFolder = baseDir as File |