Skip to content

Instantly share code, notes, and snippets.

@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 / .gitignore
Last active July 21, 2022 13:17
Protocol Buffers as a format for FHIR data
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
@rahulsom
rahulsom / README.md
Created June 3, 2015 14:55
Confluence Calendar for Dashing

Confluence Calendar for Dashing

This is designed to pull out .ics representations of your calendar from confluence and render upcoming events.

@rahulsom
rahulsom / json2gclass.groovy
Last active February 9, 2022 00:08
Convert JSON to Groovy Class
import groovy.json.JsonSlurper
import groovy.transform.Field
def json = new JsonSlurper().parse(System.in)
if (!(json instanceof Map)) {
System.err.println "Input was not json"
System.exit 1
}
@rahulsom
rahulsom / setup.sh
Last active November 4, 2021 20:25
Setup new mac
#!/bin/bash
set -e
# Install OhYourDotfiles
cd $HOME
git clone https://github.com/DanielThomas/oh-your-dotfiles.git .oh-your-dotfiles
ln -s ~/.oh-your-dotfiles/oh-your.zshrc ~/.zshrc
@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 / 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 / fs.css
Created February 12, 2016 23:21
CSS theme for Jenkins Delivery Pipeline to play well with Neo
body {
font-family: sans-serif;
background: #000000;
color: #fefefe;
font-size: 14px;
}
div.pipeline-loading-icon {
content: url("dark-load.gif");
}
@rahulsom
rahulsom / Directions.groovy
Created May 26, 2011 03:55
Demo to use Groovy, Grape, and Google Maps API to go from coast to coast
@groovy.lang.Grapes([
@groovy.lang.Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.5.0-RC2')
])
import groovyx.net.http.*
def http = new HTTPBuilder('https://maps.googleapis.com/maps/api/directions/')
http.get(path: 'json',
query: [
@rahulsom
rahulsom / .gitignore
Last active April 5, 2018 21:49
Shorter Pretty Printed JSON
.idea
out/
.idea_modules/
*.iml