Skip to content

Instantly share code, notes, and snippets.

@amynbe
amynbe / conemu64-bat.reg
Created March 12, 2015 10:33
Make ConEmu open bat files on double click
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" /cmd \"%1\" %*"
@amynbe
amynbe / google-maps-route.xml
Last active August 29, 2015 14:17
Firefox Google maps search engine with directions
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Google Maps Route</os:ShortName>
<os:Description>Google Maps Route search</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167%2B3t%2B9f7vOec5%2FzOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP%2FwBr28AAgBw1S4kEsfh%2F4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv%2BCpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH%2BOD%2BQ5%2Bbk4eZm52zv9MWi%2FmvwbyI%2BIfHf%2FryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3%2FldM9sJoFoK0Hr5i3k4%2FEAenqFQyDwdHA
@amynbe
amynbe / python
Last active February 17, 2017 18:25
Cygwin usr bin python
if [ $# -eq 0 ]
then
py
else
py `cygpath -m -- $1` "${@:2}" ;
fi
@amynbe
amynbe / DownloadJarsWithMaven.txt
Created May 20, 2018 13:46
Download artifiact jar and dependencies with maven
Method 1: use https://jar-download.com/online-maven-download-tool.php
Method 2 (tried with Maven 3.5.2):
##############################################
a. Download jar itself
b. Download pom
c. Download dependencies
d. Optional: download sources
e. Optional: download dependencies sources
@amynbe
amynbe / Install.bash
Created December 17, 2018 08:34 — forked from blachniet/Install.bash
Install pip packages in an offline environment
# 1. On a internet-connected device, download the package and its dependencies to a directory
mkdir pip-es-curator
pip install --ignore-installed -d ./pip-es-curator elasticsearch-curator
# 2. Move the directory containing the packages to the offline device
# 3. On the offline device, install the package from the transferred directory
pip install --no-index --find-links ./pip-es-curator elasticsearch-curator
@amynbe
amynbe / wenv
Last active February 15, 2024 14:25
Cygwin shebang path converter
#!/bin/sh
# This allows you to run shebang-based scripts in Cygwin with tools that
# require Windows paths, like the Windows build of python or the kotlin
# interpreter.
# put this file in /usr/local/bin/ and use it as a shebang like this:
# #!/usr/local/bin/wenv myWindowsTool.exe
if [ $# -eq 1 ]