Skip to content

Instantly share code, notes, and snippets.

@quilime
quilime / ga-fest-talks-wordcount.txt
Last active May 19, 2023 20:16
Gray Area Festival Video Wordcount, generated from talks and presentation transcripts from 2015-2022
51793 the
47605 and
37958 of
31111 to
29723 that
28749 i
28566 a
24211 you
22136 it
20976 in
@quilime
quilime / ichat.md
Last active April 23, 2023 04:34
explore iChats on Mac OS

Accessing iChat's on MacOS

sqlite3 ~/Library/Messages/chat.db

notable tables:

  • attachment – metadata and storage location
  • chat – a collection of your messages (both direct and group)
@quilime
quilime / Expiration.sol
Created May 12, 2018 14:56
Simple License Expiration Example
pragma solidity ^ 0.4.4;
// *****************************************************************
// DEMO!! UNVETTED CODE! DO NOT DEPLOY!!!
// Please seek expert guidance and perform a solidity security audit
// before using it in financially important code.
// *****************************************************************
contract ArtLicenseExpiration {
const key = 'z){@UWzw*+TRt7Xu3c-(qL_.~MNCN3prv(!{'; // secret
const encode = function encode(key, data) {
return new Buffer(xorStrings(key, data), 'utf8').toString('base64');
}
const decode = function decode(key, data) {
data = new Buffer(data, 'base64').toString('utf8');
return xorStrings(key, data);
}

Keybase proof

I hereby claim:

  • I am quilime on github.
  • I am gld (https://keybase.io/gld) on keybase.
  • I have a public key whose fingerprint is 9044 71A8 B484 7E6D 9745 23DC 4D10 8263 BE57 EC8E

To claim this, I am signing this object:

sshfs -o reconnect -o volname=mount-name -o IdentityFile=~/.ssh/id_rsa user@remoteserver:/dir/to/mount /home/user/sshfs/mountpoint
@quilime
quilime / btsync init.d
Created November 29, 2015 21:55
init.d for btsync
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Should-Start: network-manager
# Should-Stop: network-manager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# StreamsList is a UTF-8 encoded .txt file that helps you specify alternate streams,
# xattrs and resource forks white list. It supports "?" and "*" wildcard symbols.
#
#
com.apple.FinderInfo
com.apple.metadata:_kMDItemUserTags
com.apple.metadata:kMDItemFinderComment
# .SyncIgnore is a UTF-8 encoded .txt file that helps you specify single files, paths and rules
# for ignoring during the synchronization job. It supports "?" and "*" wildcard symbols.
#
#
# OS generated files #
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes