Skip to content

Instantly share code, notes, and snippets.

View christianchristensen's full-sized avatar

Chris Christensen christianchristensen

View GitHub Profile

Consensus

A fundamental problem in distributed computing is to achieve overall system reliability in the presence of a number of faulty processes. This often requires processes to agree on some data value that is needed during computation. Examples of applications of consensus include whether to commit a transaction to a database, agreeing on the identity of a leader, state machine replication, and atomic broadcasts. wiki

Keybase proof

I hereby claim:

  • I am christianchristensen on github.
  • I am chrischris (https://keybase.io/chrischris) on keybase.
  • I have a public key whose fingerprint is 8C90 2017 EE74 C670 9706 1E0B 39B0 C148 DF44 1D6F

To claim this, I am signing this object:

Self updater

Goal: An app that is able to exist with configuration for package management systems and also be configured to run with a self-update routine so that it can run stand-alone and able to receive updates.

Refs

iPhone Backup info

The backup sqlite db file is located ~/Library/Application Support/MobileSync/Backup/<phone ID> and is named 3d0d7e5fb2ce288813306e4d4636395e047a3d28.

It's name is an SHA1 hash of the full path of the file on the phone, plus its Domain.

$ printf 'HomeDomain-Library/SMS/sms.db' | openssl sha1

# crontab
0 * * * * jenkins /var/lib/jenkins/threadkillscm.sh >> /tmp/jenkins-threadkillscm.log

# cat /var/lib/jenkins/threadkillscm.sh 
java -jar /var/lib/jenkins/jenkins-cli.jar -s http://myserver:8080/ groovy /var/lib/jenkins/threadkillscm.groovy