Skip to content

Instantly share code, notes, and snippets.

@fgblanch
fgblanch / compare.sh
Created February 18, 2024 17:13
AI Grant/ AI Feats Swift thinking script
#!/bin/bash
# Check for the correct number of arguments
if [ "$#" -ne 3 ]; then
echo "Usage: $0 directory inputFile1 inputFile2"
exit 1
fi
directory=$1
inputFile1=$2
@fgblanch
fgblanch / custom.cmdline
Created March 6, 2017 17:45 — forked from perpen/custom.cmdline
Docker on Chromebook Pixel 2015 LS
cros_secure
console=
loglevel=7
init=/sbin/init
oops=panic
panic=-1
root=PARTUUID=%U/PARTNROFF=1
rootwait
rw
dm_verity.error_behavior=3
@fgblanch
fgblanch / docker-from-chromeos.sh
Created March 6, 2017 17:37 — forked from perpen/docker-from-chromeos.sh
Script for running docker in Chrome OS
#!/bin/sh
## Requires custom kernel to be installed in Chrome OS
## Copies files from my archlinux chroot into a temp folder and runs docker from there.
## Running this on boot of Chrome OS so my version of the docker daemon is upgraded by
## pacman in the chroot.
set -e
chroot=/usr/local/chroots/arch
run=/usr/local/tmp/docker
@fgblanch
fgblanch / S3ObjectIteration.java
Created July 19, 2013 12:10
Iterating through objects in a s3 folder
AmazonS3 s3 = new AmazonS3Client(new PropertiesCredentials(MyClass.class.getResourceAsStream("AwsCredentials.properties")));
String s3Key = "folder1/folder2";
String bucketName = Constantes.S3_BUCKET;
String key = s3Key +"/input_chopped/";
ObjectListing current = s3.listObjects(new ListObjectsRequest()
.withBucketName(bucketName)