Skip to content

Instantly share code, notes, and snippets.

View relaxnow's full-sized avatar

Boy Baukema relaxnow

View GitHub Profile
<?php
if (!isset($argv[1])) {
die('Usage: deduplicate.php "Dropbox/Camera Uploads/2014"' . PHP_EOL);
}
$path = $argv[1];
if (!is_dir($path)) {
die("$path is not a dir!" . PHP_EOL);
}
#!/bin/sh
getConnection ()
{
curl -v -k -u engine:engineblock -H "Content-Type: application/json" -X GET https://serviceregistry.demo.openconext.org/janus/app_dev.php/api/connections/15.json
}
jqModify ()
{
# jq 'def key_contains: .key | contains(":sn") | not ; def filter_key(f): f | to_entries | map(select(key_contains)) | from_entries ; .arpAttributes = filter_key(.arpAttributes)'
#!/bin/bash
while [ true ];
do
say "I am stupid"
SLEEPTIME=`jot -r 1 1 10`
sleep $SLEEPTIME
done
#!/bin/sh
echo "Hello World!"
if (val < 0 || val > 19) {
System.out.println("please read the instructions again");
System.exit(0);
}
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
)