- Choose Java EE 8 Profile zip in https://openliberty.io/downloads/
- Download to ~/Downloads
This file contains hidden or 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
| #!/usr/bin/env python | |
| """Formats a CSV string from windows clipboard to JIRA Table markup | |
| (https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=tables) | |
| on windows clipboard. | |
| """ | |
| import csv | |
| def convert(csvfile, delimiter=',', quotechar='"'): | |
| r""" |
This file contains hidden or 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
| # lircrc file for squeezelite | |
| begin | |
| button = KEY_PLAYPAUSE | |
| repeat = 0 | |
| prog = squeezelite | |
| config = pause | |
| end |
This file contains hidden or 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
| @echo off | |
| Setlocal EnableDelayedExpansion | |
| set CYGDIR=C:\cygwin64 | |
| set CYGBINDIR=%CYGDIR%\bin | |
| set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin | |
| cd /d %CYGDIR%\home\%USERNAME% | |
| if [%1]==[] goto BLANK |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| choose_queue() | |
| { | |
| title=$1 | |
| queues=$(aws sqs list-queues --query 'QueueUrls' --output text|tr '\t' '\n') | |
| i=1 | |
| items="" | |
| items=$(echo -e "$queues"|sed -e 's#.*/##g' | while read p; do echo "$i $p" && i=$((i+1));done) | |
| TMPFILE=$(mktemp) |
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| if [ $# -lt 1 ]; then | |
| echo "Executes a ansible role on localhost" > /dev/stderr | |
| echo "Usage $(basename $0) ROLENAME [additional ansible-playbook options]" > /dev/stderr | |
| echo "Example: $(basename $0) baztian.keepass -K -b" > /dev/stderr | |
| exit 1 | |
| fi |
This file contains hidden or 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
| #!/bin/bash | |
| write_main_undo() { | |
| echo git checkout $main_branch >> "$UNDO_FILE" | |
| echo git reset --hard "${main_remote%%/*}" >> "$UNDO_FILE" | |
| echo "Undo instructions written to $UNDO_FILE" | |
| } | |
| if [ -z "$1" ] | |
| then |
This file contains hidden or 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
| ; xfce4-terminal GtkAccelMap rc-file -*- scheme -*- | |
| ; this file is an automated accelerator map dump | |
| ; | |
| (gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1") | |
| (gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3") | |
| ; (gtk_accel_path "<Actions>/terminal-window/file-menu" "") | |
| ; (gtk_accel_path "<Actions>/terminal-window/close-other-tabs" "") | |
| ; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f") | |
| ; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down") | |
| ; (gtk_accel_path "<Actions>/terminal-window/copy-html" "") |
This file contains hidden or 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
| #!/bin/sh | |
| # Source: https://stackoverflow.com/a/28776166/1960601 | |
| sourced=0 | |
| if [ -n "$ZSH_VERSION" ]; then | |
| case $ZSH_EVAL_CONTEXT in *:file) sourced=1;; esac | |
| elif [ -n "$KSH_VERSION" ]; then | |
| [ "$(cd -- "$(dirname -- "$0")" && pwd -P)/$(basename -- "$0")" != "$(cd -- "$(dirname -- "${.sh.file}")" && pwd -P)/$(basename -- "${.sh.file}")" ] && sourced=1 | |
| elif [ -n "$BASH_VERSION" ]; then | |
| (return 0 2>/dev/null) && sourced=1 |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import subprocess | |
| import sys | |
| import speech_recognition as sr | |
| def get_audio_text(language=None): | |
| language = language or "en-US" | |
| recognizer = sr.Recognizer() | |
| with sr.Microphone() as source: | |
| print("Say something:") |
OlderNewer