Skip to content

Instantly share code, notes, and snippets.

View nickboldt's full-sized avatar

Nick Boldt nickboldt

View GitHub Profile
@nickboldt
nickboldt / git-new-branch.sh
Last active December 12, 2015 07:58
branching for stable milestone - create a new branch from master in both my fork and the origin
#!/bin/bash
usage ()
{
echo "Usage: $0 newbranchname"
echo "Example: $0 jbosstools-4.1.0.Alpha1"
exit 1;
}
if [[ $# -lt 1 ]]; then
@nickboldt
nickboldt / git-topic-purge.sh
Last active December 14, 2015 15:39
purge old topic branches
GITUSER=nickboldt
for d in `git branch -a`; do
# list only /remotes/GITUSER branches, then remove all but the jbosstools-* official ones
if [[ ! ${d%%*remotes/${GITUSER}/*} ]] && [[ ${d%%*remotes/${GITUSER}/jbosstools-*} ]]; then
echo "${d/remotes\/${GITUSER}\//} ..."
git push ${GITUSER} :${d/remotes\/${GITUSER}\//}
fi
done
@nickboldt
nickboldt / jbds-install.sh
Last active December 20, 2015 00:29
Commandline JBDS installer for linux, to skip all the clicking thru dialogs.
#!/bin/bash
usage ()
{
echo "Usage: $0 /path/to/jbdevstudio-product-universal-*.jar [/path/to/jre/bin/java]"
echo ""
echo "Usage: $0 /tmp/jbdevstudio-product-universal-8.0.0.GA-v20140720-0044-B420.jar"
echo "Usage: $0 /tmp/jbdevstudio-product-universal-8.0.0.GA-v20140720-0044-B420.jar /usr/bin/java"
echo ""
exit 1;
@nickboldt
nickboldt / install-tp-zip-to-m2.sh
Last active December 24, 2015 00:59
install a locally downloaded TP zip into your ~/.m2 folder for use w/ local builds
# quick way to get jbosstools or jbdevstudio unified target into your ~/.m2 folder without having to build it locally:
VERSION=4.31.0.Alpha2-SNAPSHOT
PROJECT=jbosstools
# get the zip + unpack it
cd /tmp/
wget http://download.jboss.org/${PROJECT}/targetplatforms/${PROJECT}target/${VERSION}/${PROJECT}target-${VERSION}.zip
unzip ${PROJECT}target-${VERSION}.zip -d ${PROJECT}target-${VERSION}
@nickboldt
nickboldt / rsync-server.sh
Created October 22, 2013 16:30
Using rsync over ssh, push all dirty files in local git repo to another server (or explicitly list which files to push)
#!/bin/bash
usage ()
{
echo "Usage 1: $0 -s user@server:/path/ path/to/rsync path2/to/rsync path3/to/rsync ..."
echo " $0 -s user@server:/path/to/devstudio/ updates/7.0/devstudio-directory.xml"
echo "Usage 2: $0 -s user@server:/path/to/jbosstools/ -dirty"
echo " -dirty flag will push all files listed with 'git status -s' to specified server"
exit 1;
@nickboldt
nickboldt / mp3
Last active December 31, 2015 03:58
for a new downloaded zip of mp3s: rename (remove spaces), move from temp download folder to ~/Music, backup onto another server, unpack zip, create m3u, and launch w/ vlc
#!/bin/bash
usage ()
{
echo "Usage: $0 \"/path/to/some zipfile.zip\""
echo ""
exit 1;
}
if [[ $# -lt 1 ]]; then usage; fi
@nickboldt
nickboldt / install-jbds-is.sh
Last active August 29, 2015 14:02
Headless install of JBDS IS into JBDS 7.x from Update Site zip
#!/bin/bash
# set working folder
WORKSPACE=/tmp
cd ${WORKSPACE}
# set path to JBoss Developer Studio install folder
JBDS=${HOME}/jbdevstudio7.1.1.GA/studio
# set path to JBDS IS update site zip
@nickboldt
nickboldt / gitco
Created November 18, 2014 22:53
git checkout from someone's topic branch, without having to first add the remote and fetch a list of latest branches; also works with pull requests by delegating to hub
#!/bin/bash
usage ()
{
echo "Usage: $0 <URL for topic branch or PR>"
echo "Example 1: $0 https://github.com/robstryker/jbosstools-server/tree/integration_tests"
echo "Example 2: $0 https://github.com/jbdevstudio/jbdevstudio-devdoc/pull/118"
exit 1;
}
@nickboldt
nickboldt / bluetoothctl.howto.adoc
Last active September 8, 2025 18:44
Fedora 20 - using bluetoothctl to connect to a bluetooth speaker or headset
  1. On Fedora 20, as root:

    yum install bluetoothctl
  2. Insert bluetooth adapter.

  3. At a termninal, run:

    bluetoothctl
@nickboldt
nickboldt / Inateck_BTA-BC4B6_Installation.adoc
Last active August 29, 2015 14:11
Inateck BTA-BC4B6 Installation

Drivers on website [1] are the same version as those on the CD (website last updated Oct 12 2014, CD received in Dec 2014): Broadcom BCM20702 Bluetooth 4.0 USB Device, driver version 12.0.0.8030.

Had to install twice - first time wasn’t prompted to reboot, so nothing worked. Upon reboot, device worked perfectly & connected easily.

HOWEVER, Windows uninstalled my Intel BT drivers, so when I wanted to switch back to my built-in bluetooth driver (Intel® PROSet/Wireless Software for Bluetooth® Technology) I had to reinstall that, which in turn disabled the Inateck device (Broadcom) in Device Manager > Bluetooth.