Skip to content

Instantly share code, notes, and snippets.

View bertold's full-sized avatar
☮️
testing, testing, testing

Bertold Kolics bertold

☮️
testing, testing, testing
View GitHub Profile
@bertold
bertold / blockstack.txt
Created June 21, 2019 23:35
Blockstack verification
Verifying my Blockstack ID is secured with the address 1LvicRVBzTxymWoL2LGQQvpro8bDqJS73r https://explorer.blockstack.org/address/1LvicRVBzTxymWoL2LGQQvpro8bDqJS73r
javascript:(function(){
function getJavaScript(url, success) {
var script = document.createElement('script');
script.src = url;
var head = document.getElementsByTagName('head')[0],
done = false;
script.onload = script.onreadystatechange = function(){
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
done = true;
@bertold
bertold / DeleteCompletedReminders.scpt
Last active September 4, 2018 14:29
Deleting completed items from Reminders app on macOS
--
-- This script will delete all completed items from the Reminders app
--
tell application "Reminders"
-- retrieve the list of Reminder containers
set reminderLists to container of reminders
-- examine each Reminder container
repeat with currentList in reminderLists
-- retrieve the list of completed tasks
@bertold
bertold / Client.java
Created January 24, 2017 23:53
Sample created by Doug Bulkley to demonstrate the UnboundID SCIM SDK interfacing with PingFed
// Test program that uses the SCIM V1.1 SDK to make a connection
// and perform some action against a server with a SCIM V1.1 interface.
// SSL configuration set to blindly trust. NOT valid for a production env.
import java.net.URI;
import java.util.Collection;
import javax.ws.rs.core.MediaType;
import com.unboundid.scim.data.Entry;
@bertold
bertold / PasswordChange.java
Last active October 13, 2023 09:29
Changing password using the UnboundID LDAP SDK
import com.unboundid.ldap.listener.InMemoryDirectoryServer;
import com.unboundid.ldap.listener.InMemoryDirectoryServerConfig;
import com.unboundid.ldap.listener.InMemoryListenerConfig;
import com.unboundid.ldap.sdk.*;
import com.unboundid.ldif.LDIFException;
/**
* Sample code to demonstrate password change.
* Error handling is not demonstrated here.
*/
Verifying that "bertold.id" is my Blockstack ID. https://onename.com/bertold