Skip to content

Instantly share code, notes, and snippets.

@rahulsom
rahulsom / jenkins.jelly
Last active April 3, 2019 20:13
Jelly Template for Jenkins.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- If you delete this tag, the sky will fall on your head -->
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ZURBemails</title>
<style data-inline="true">
@rahulsom
rahulsom / output.txt
Created November 14, 2013 06:53
Hapi & LigthHl7Lib Performance Benchmarks
Hapi: 2.604747 ms per cycle
LightHl7Lib: 0.00451332 ms per cycle
@rahulsom
rahulsom / AnonCcd.groovy
Created November 25, 2013 23:55
CDA Anonymizer
import groovy.xml.XmlUtil
import java.security.SecureRandom
import java.text.SimpleDateFormat
void anonymize(Reader reader, Writer writer) {
def xml = new XmlParser().parse(reader)
xml.recordTarget.patientRole.with { patientRole ->
patientRole.id.each {
@rahulsom
rahulsom / README.md
Last active January 24, 2020 18:17
Translate text to all languages

Run Translations with your Message.

groovy Translations.groovy "Welcome\!"

Then point your browser to http://localhost:8000/.

You get something like this: Image

@rahulsom
rahulsom / ACEDrawingView.podspec
Last active August 29, 2015 14:01
ACEDrawingView Rahul's fork
Pod::Spec.new do |s|
s.name = 'ACEDrawingView'
s.version = '1.3.0'
s.license = { :type => 'Apache 2.0 License', :file => 'LICENSE.txt' }
s.summary = 'An open source iOS component to create a drawing app.'
s.homepage = 'https://github.com/rahulsom/ACEDrawingView'
s.author = { 'Stefano Acerbetti' => 'acerbetti@gmail.com' }
s.source = { :git => 'https://github.com/rahulsom/ACEDrawingView.git' }
s.platform = :ios, '4.0'
s.source_files = 'ACEDrawingView/*.{h,m}'
@rahulsom
rahulsom / MXLCalendarManager.podspec
Last active August 29, 2015 14:02
MXLCalendarManager As Pod
Pod::Spec.new do |s|
s.name = 'MXLCalendarManager'
s.version = '1.0.0'
s.license = { :type => 'MIT License', :file => 'LICENSE.txt' }
s.summary = 'A set of classes used to parse and handle iCalendar (.ICS) files'
s.homepage = 'https://github.com/rahulsom/MXLCalendarManager'
s.author = { 'Kiran Panesar' => 'Kiran@MobileXLabs.com' }
s.source = { :git => 'https://github.com/rahulsom/MXLCalendarManager.git'}
s.platform = :ios, '4.0'
s.source_files = 'MXLCalendarManager/*.{h,m}'
@rahulsom
rahulsom / EBPhotoPages.podspec
Last active August 29, 2015 14:02
EBPhotoPages
Pod::Spec.new do |s|
s.name = 'EBPhotoPages'
s.version = "0.9.3"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = "A photo gallery for iOS with a modern feature set. Similar features as the Facebook photo browser."
s.homepage = 'https://github.com/bjong-nliven/EBPhotoPages'
s.author = "Eddy Borja"
s.source = { :git => 'https://github.com/bjong-nliven/EBPhotoPages.git' }
s.platform = :ios, '7.0'
s.source_files = 'EBPhotoPagesController/*.{h,m}'
@rahulsom
rahulsom / unjamf.sh
Last active February 11, 2023 08:35
UnJamf a machine
#!/bin/bash -e
USERNAME=$(whoami)
sudo /usr/sbin/jamf removeFramework
sudo dscl . -mcxdelete /Computers/localhost || echo "No /Computers/localhost"
sudo dscl . -mcxdelete /Users/${USERNAME}
sudo rm -rf /Users/${USERNAME}/Library/Preferences/com.apple.finder.plist
echo "..Done"
@rahulsom
rahulsom / JSONModel.podspec
Created September 5, 2014 15:48
Support for Extreme nesting and key mappers in JSONModel
Pod::Spec.new do |s|
s.name = "JSONModel"
s.version = "1.0.2"
s.summary = "Magical Data Modelling Framework for JSON. Create rapidly powerful, atomic and smart data model classes."
s.homepage = "http://www.jsonmodel.com"
s.license = { :type => 'MIT', :file => 'LICENSE_jsonmodel.txt' }
s.author = { "Marin Todorov" => "touch-code-magazine@underplot.com" }
s.source = { :git => "https://github.com/rahulsom/JSONModel.git" }
@rahulsom
rahulsom / keybase.md
Created September 30, 2014 04:02
keybase.md

Keybase proof

I hereby claim:

  • I am rahulsom on github.
  • I am rahulsom (https://keybase.io/rahulsom) on keybase.
  • I have a public key whose fingerprint is 901A 4B49 02BC AFF3 916D A7EF EF06 1F25 9237 B7B4

To claim this, I am signing this object: