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
on run argv | |
-- How to execute: | |
-- osascript iTerm2-Multi-SSH.scpt development.mycluster htop | |
-- accepts two arguments: | |
-- 1. common part of the server names. eg. development.mycluster | |
-- 2. the command to execute once logged into the servers | |
set findhostnames to "less ~/.ssh/config | sed -n \"s|^Host \\(" & item 1 of argv & ".*\\)|\\1|gp\" | sed \"s/,$//g\"" | |
set serverList to paragraphs of (do shell script findhostnames) |
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
# find a sheet and show its content | |
sheetf() { | |
SHEET_NAME=$(sheet | fzf) | |
sheet $SHEET_NAME | |
} | |
#find a sheet and copy it's contents onto the clipboard | |
sheetfc() { | |
SHEET_NAME=$(sheet | fzf) | |
sheet $SHEET_NAME | pbcopy |
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
//load all relevant meetings with their attendees | |
meetings | |
.leftJoin(attendeeLinks).on { case (meeting, attendeeLink) => | |
meeting.id === attendeeLink.meetingId | |
} | |
.leftJoin(users).on { case ((meeting, attendeeLink), user) => | |
attendeeLink.userId === user.id | |
} | |
.where { case ((meeting, attendeeLink), user) => | |
meeting.id in meetingIds |
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
object BlogPostModel { | |
case class BlogPost ( | |
id: Option[Long] = None, | |
title: String, | |
author_id: Long, | |
postedDate: LocalDate, | |
summary: String, | |
content: String, | |
published: Boolean) { |
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
" ----------- Vundle Package manager config -------- | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required |
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
<plugin> | |
<groupId>org.codehaus.gmaven</groupId> | |
<artifactId>groovy-maven-plugin</artifactId> | |
<version>2.0</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>execute</goal> | |
</goals> |
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
repositories { | |
add(new org.apache.ivy.plugins.resolver.URLResolver()) { | |
name = 'Apache' | |
addArtifactPattern 'http://apache.cu.be/incubator/flex/4.8.0-incubating/binaries/[module]-[revision]-incubating-bin.[ext]' | |
} | |
} | |
dependencies { | |
merged group: 'org.apache', name: 'apache-flex-sdk', version: '4.8.0', ext: 'zip' | |
} |