This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +avalade is my blockchain ID. https://onename.com/avalade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun convert-hsbc-to-xero () | |
(interactive) | |
(let ((filename (buffer-file-name)) | |
(new-name (replace-regexp-in-string "\.csv$" "-XERO.csv" (buffer-file-name))) | |
(hsbc-header-start-regexp "^Date") | |
(invalid-rows-regexps '("^$" "Opening Balance" "Closing Balance")) | |
(header-row "*Date,*Amount,Payee,Description,Reference,Check Number\n") | |
(record-regexp "^\\([0-9/]+\\),\\([[:alpha:][:blank:][:digit:]-/]+\\),\\([0-9.]*\\),\\([0-9.]*\\),\\([0-9.]*\\).*$")) | |
(copy-file filename new-name) | |
(find-file new-name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am avalade on github. | |
* I am adv (https://keybase.io/adv) on keybase. | |
* I have a public key whose fingerprint is 434D 714D EA67 7CB2 F548 5B69 BAFD 0832 1ADA 14F4 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
#git-cache-meta -- simple file meta data caching and applying. | |
#Simpler than etckeeper, metastore, setgitperms, etc. | |
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694 | |
#modified by n1k | |
#for Mac OS X, install findutils using Homebrew | |
# - save all files metadata not only from other users | |
# - save numeric uid and gid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.collection.mutable.ListBuffer | |
import akka.actor.{Actor,ActorRef} | |
import akka.actor.Actor._ | |
import akka.routing.{ Listeners, Listen } | |
//Represents a domain event | |
trait Event | |
//A builder to create domain entities | |
trait EntityBuilder[Entity] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>ctag_gen</string> | |
<key>Program</key> | |
<string>/usr/local/bin/etags-gen</string> | |
<key>StartCalendar</key> | |
<integer>600</integer> <!-- Fire every 10 minutes --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Generate ctags files for my projects | |
/usr/local/bin/ctags -h ".scala" -R -e --exclude='*.js' -f ~/.tags/medsense ~adv/Documents/Software/medsense | |
/usr/local/bin/ctags -h ".java" -R -e --exclude='*.js' -f ~/.tags/snif-bss ~adv/Documents/Software/snif-bss | |
/usr/local/bin/ctags -h ".scala" -R -e --exclude='*.js' -f ~/.tags/liftweb ~adv/Documents/Software/liftweb | |
/usr/local/bin/ctags -h ".scala" -R -e --exclude='*.js' -f ~/.tags/dispatch ~adv/Documents/Software/sandbox/Databinder-Dispatch | |
/usr/local/bin/ctags -h ".scala" -R -e --exclude='*.js' -f ~/.tags/akka ~adv/Documents/Software/sandbox/akka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bootstrap.liftweb.Application._ | |
import org.apache.activemq.ActiveMQConnectionFactory | |
import org.apache.activemq.command.ActiveMQTopic | |
import com.gs.tag.TagDatas.{State} | |
import com.gs.base_station.Payloads.TagPing | |
import javax.jms.{BytesMessage, MessageProducer, Session, Destination} | |
val conn = ctx.getBean("jmsFactory").asInstanceOf[ActiveMQConnectionFactory].createConnection | |
conn.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
knife ec2 server create "role[base]" -i ami-2492ec76 -G default -x ubuntu -f c1.medium --region ap-southeast-1 -Z ap-southeast-1a -S <amazon_key_pair> |