Skip to content

Instantly share code, notes, and snippets.

View seanf's full-sized avatar

Sean Flanigan seanf

  • Brisbane, Australia
View GitHub Profile
@kdabir
kdabir / README.md
Last active August 29, 2015 13:56
This script pulls your starred repos on github and shows some interesting stats at the end. It was created as an example demonstrating how Gstorm is useful in scripts.

This script is created as an example to show how easy it is to use gstorm to crunch and consume data from rest apis.

Usage

Either download the script and run:

groovy ghstarred.groovy <your_github_id>

Or hotload it:

@imankulov
imankulov / android2po_plurals.py
Created December 17, 2012 14:54
Get gettext formatted plural forms from CLDR description using android2po (to do the main job) and opterator (for command line parsing)
#!/usr/bin/env python
"""
Requirements:
android2po
opterator
Sample:
$ python android2po_plurals.py pl
@md5
md5 / 00_README.md
Last active February 21, 2017 06:38
$ docker build -t java-utf8-test --no-cache  .
  nding build context to Docker daemon 47.62 kB
Sending build context to Docker daemon 
Step 0 : FROM java:8-jdk
 ---> 1fc1263652ea
Step 1 : ADD TestUtf8.java /src/
 ---> c5d7dabbce96
Removing intermediate container 21cc173682b4
Step 2 : WORKDIR /src
@silb
silb / NativeDomEvents.java
Created January 27, 2011 10:53
For registering Java runnables as event listeners on GWT DOM elements
/**
* For registering Java {@link Runnable runnables} as event listeners on GWT DOM elements.
* <p>
* This class allows for registering listeners for all DOM events including those not supported by GWT.
*/
public class NativeDomEvents {
public static native void addEventListener(Element element, String event, Runnable listener) /*-{
var eventListener = function() {
@payload
payload / prettyics.sh
Created May 31, 2013 21:01
pretty print a .ics calendar file
#!/bin/sh
perl -ne'/END:/ && $i--; print "\t" x $i . "$_\n"; /BEGIN:/ && $i++;'
@akiomik
akiomik / .gitattributes
Created December 19, 2013 15:30
gitattributes for scala
*.scala diff=scala
@NickWoodhams
NickWoodhams / close_deleted_file.py
Last active November 24, 2019 17:00
Close Deleted File - Sublime 3 Plugin
import sublime_plugin
import sublime
import time
import os
class MyEvents(sublime_plugin.EventListener):
def on_deactivated_async(self, view):
s = view.file_name()
if s:
@rafaeltuelho
rafaeltuelho / jboss-wildfly-trasactions-logging.md
Last active February 28, 2021 16:51
JBossAS 7/Wildfly 8/EAP 6 JPA, Transactions, JDBC tracing logging
  • JPA and JTA tarcing
<logger category="com.arjuna.ats.jta">
  <level name="TRACE"/>
</logger>
<logger category="org.jboss.as.jpa">
  <level name="DEBUG"/>
</logger>
@jessedearing
jessedearing / cleanup.sh
Created April 12, 2012 17:48 — forked from mdp/cleanup.sh
Git branch cleanup
#!/bin/bash
# This must be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches
git branch --merged master | grep -v 'master$' | xargs git branch -d
# Show remote fully merged branches
@kubadlo
kubadlo / import_eml.vbs
Created September 26, 2019 09:10
Import *.eml files into any Outlook folder
'===================================================================
'Description: VBS script to import eml-files.
'
'Comment: Before executing the vbs-file, make sure that Outlook is
' configured to open eml-files.
' Depending on the performance of your computer, you may
' need to increase the Wscript.Sleep value to give Outlook
' more time to open the eml-file.
' Make sure you have enabled "visible" file extensions in explorer.exe
'