Skip to content

Instantly share code, notes, and snippets.

@sinarf
sinarf / gist:1808410
Created February 12, 2012 13:16
Script sending docs to an amazon kindle, document to kindle format by amazon service.
#!/usr/bin/env groovy
@Grab(group='org.apache.commons', module='commons-email', version='1.2')
import org.apache.commons.mail.*
if (args.length < 3 ){
println "Missing parameters! Usage:"
println "SendToKindle <smtpServer> <from> <to>"
System.exit 1
}
@sinarf
sinarf / .gitignore
Created September 25, 2012 08:12
eclipse metadata gitignore file
# file to ignore if you want to use git to track your eclipse workspace metadata directory.
.mylyn/.taskListIndex/
*.log
.plugins/org.eclipse.m2e.core/nexus/
*.swp
.mylyn/*
.plugins/org.eclipse.core.resources/.root/*.tree
.markers
.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
@sinarf
sinarf / gist:4379872
Created December 26, 2012 11:46
My Console2 configuration.
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="55" columns="200" buffer_rows="9999" buffer_columns="0" shell="C:\cygwin\bin\bash.exe" init_dir="C:\Users\mbl" start_hidden="0" save_size="0">
<colors>
<color id="0" r="7" g="54" b="66"/>
<color id="1" r="38" g="139" b="210"/>
<color id="2" r="133" g="153" b="0"/>
<color id="3" r="42" g="161" b="152"/>
<color id="4" r="220" g="50" b="47"/>
<color id="5" r="211" g="54" b="130"/>
/*
* Dependencies: Apache POI Library from http://poi.apache.org/
*/
package poi_excels;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"=""
"Segoe UI (TrueType)"=""
"Segoe UI Black (TrueType)"=""
"Segoe UI Black Italic (TrueType)"=""
"Segoe UI Bold (TrueType)"=""
"Segoe UI Bold Italic (TrueType)"=""
"Segoe UI Historic (TrueType)"=""
; maps the Escape key to the capslock key. vim rocks!
CAPSLOCK::ESC
return
# A cute script to update the proxy.pac
#
# WARNING: autoformat of this script might break the update system function.
#
#
# @author Michel Blavin
#
#
#
#$debug = $TRUE
; map ² key to Ctrl+Shift+m key sequense. Dropdown terminal of MobaXterm
SC029::Send ^+
#!/usr/bin/env python
#
# @author Michel Blavin
# Basic Taskwarrior hook that sends a notification to# basic Taskwarrior that sends a notification on task add.
import sys
import json
import subprocess
import logging as log
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.blavin.utils.groovy</groupId>
<artifactId>hellogroovy</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<jdk.version>1.8</jdk.version>