Skip to content

Instantly share code, notes, and snippets.

@mporcheron
mporcheron / remove-icloud-drive-downloaded-files.sh
Created October 15, 2022 12:21
Recursively remove iCloud Drive downloaded filed on macOS
find . -type f -not -name "*.icloud" -exec brctl evict {} \;
1 word \b(\w+)\s+\1\b
2 words \b(\w+)\s(\w+)\s+\1\s\2\b
3 words \b(\w+)\s(\w+)\s(\w+)\s+\1\s\2\s\3\b
#!/bin/bash
# SOME CODE FROM https://github.com/wikiwi/s3-bash4/tree/master/bin
# AND https://stackoverflow.com/questions/27658147/download-private-file-from-s3-using-bash
main() {
# help
if [ "${1}" = "-h" ]; then
printf "s3get: usage: s3get region host bucket/path access_key secret_key"
fi

Keybase proof

I hereby claim:

  • I am mporcheron on github.
  • I am mporcheron (https://keybase.io/mporcheron) on keybase.
  • I have a public key ASCpgONyx4vmd2jwtsAsUhS4VkdnnhiUKBpVsn6bdNTFqAo

To claim this, I am signing this object:

@mporcheron
mporcheron / SemaineCommunicator.java
Created May 1, 2013 09:50
The main method to look at here is the speak(String) method that generates the FML. Ignore commented code (this is something we still want to get to work but haven't figured it out yet). example-fml.xml is some example XML output from this class.
/*
* This file is part of the Swiss Cottage project at School of Computer Science,
* The University of Nottingham, UK.
*/
package uk.ac.nott.cs.swissCottage.io.semaine;
import javax.jms.JMSException;
import org.apache.log4j.Logger;
import org.w3c.dom.Document;