Skip to content

Instantly share code, notes, and snippets.

View karlgrz's full-sized avatar

Karl Grzeszczak karlgrz

View GitHub Profile
@karlgrz
karlgrz / bluetooth_toggle.sh
Created May 5, 2017 14:58
After all these years, finally scripted up something to help with bluetooth connect / disconnect
#!/bin/bash
mac_addr="XX:XX:XX:XX:XX:XX" # your bluetooth headset MAC address goes here, pactl list to get it
sink_addr="${mac_addr//\:/_}"
bluez_card="bluez_card.${sink_addr}"
bluez_sink="bluez_sink.${sink_addr}"
if bluetoothctl <<< "info $mac_addr" | grep -qi "Connected: no"; then
echo "connecting ${bluez_card}..."
bluetoothctl <<< "connect $mac_addr"
sleep 5s

Keybase proof

I hereby claim:

  • I am karlgrz on github.
  • I am karlgrz (https://keybase.io/karlgrz) on keybase.
  • I have a public key whose fingerprint is 5558 F70D AEEF 1072 909F 811F 1A14 4227 D1E7 F29F

To claim this, I am signing this object:

@karlgrz
karlgrz / Package Control.sublime-settings
Last active August 29, 2015 13:59
Preferences.sublime-settings
{
"installed_packages":
[
"AlignTab",
"All Autocomplete",
"Dockerfile Syntax Highlighting",
"Git",
"Shell Turtlestein",
"SideBarEnhancements",
"TrailingSpaces",
@karlgrz
karlgrz / archives.html
Created November 25, 2013 20:13
Output from pelican archives
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>karlgrz Archive </title>
<meta name="author" content="karlgrz">
<link href="/atom.xml" type="application/atom+xml" rel="alternate"
@karlgrz
karlgrz / log_file
Created November 11, 2013 14:33
RethinkDB log_file, Ubuntu 13.10
2013-11-07T10:52:40.033520551 0.010421s info: Creating directory /var/lib/rethinkdb/instance1/data
2013-11-07T10:52:40.033754421 0.010655s info: Creating a default database for your convenience. (This is because you ran 'rethinkdb' without 'create', 'serve', or '--join', and the directory '/var/lib/rethinkdb/instance1/data' did not already exist.)
2013-11-07T10:52:40.033811877 0.010712s info: Running rethinkdb 1.10.1-0ubuntu1~saucy (GCC 4.8.1)...
2013-11-07T10:52:40.038002980 0.014904s info: Running on Linux 3.11.0-12-generic x86_64
2013-11-07T10:52:40.038045420 0.014946s info: Loading data from directory /var/lib/rethinkdb/instance1/data
2013-11-07T10:52:40.101650789 0.078551s info: Listening for intracluster connections on port 29015
2013-11-07T10:52:40.102570606 0.079471s info: Listening for client driver connections on port 28015
2013-11-07T10:52:40.102706820 0.079607s info: Listening for administrative HTTP connections on port 8080
2013-11-07T10:52:40.102826722 0.079727s info: Listening on addresses: 127
@karlgrz
karlgrz / octopress.sls
Created November 5, 2013 21:00
Octopress state
include:
- ruby
- rvm
jekyll:
gem.installed:
- ruby: 1.9.3@mygemset
- user: services
- require:
- rvm: ruby-1.9.3
@karlgrz
karlgrz / gist:6909627
Created October 9, 2013 22:29
RethinkDB Python pip install error log v.1.10 - ubuntu 13.04 VM
------------------------------------------------------------
/usr/local/bin/pip run on Wed Oct 9 16:58:30 2013
Downloading/unpacking rethinkdb
Running setup.py egg_info for package rethinkdb
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
warnings.warn(msg)
@karlgrz
karlgrz / PoeticSpam.txt
Created June 7, 2013 17:37
Spam comment from my blog...poetic.
Was some to tiredly return to own small room, soon started tidying up thing, thoughted of that small guy at the moment incredibly and still just the hospital is foolish, his heart has no since of a burst of piercing....
@karlgrz
karlgrz / RepairNET45.log
Last active December 18, 2015 01:09
The log files from trying to repair and uninstall .NET Framework 4.5, respectively.
OS Version = 6.1.7601, SP = 1.0, Platform 2, Service Pack 1
OS Description = Windows 7 - x64 Ultimate Edition Service Pack 1
MSI = 5.0.7601.17807
Windows version = amd64_windowsfoundation_31bf3856ad364e35_6.1.7601.17514_none_615fdfe2a739474c.manifest
Windows servicing = 6.1.7601.17592
CommandLine = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SetupCache\\Setup.exe" /repair /x86 /x64
TimeZone = Central Daylight Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Repairing
@karlgrz
karlgrz / steps.txt
Created November 2, 2012 06:58
Steps to reproduce echonest remix problems with Ubuntu 12.10, Python 2.7, VirtualBox on Windows 7 Host
-Windows 7 64-bit Ultimate host, Virtualbox version 4.24
- Ubuntu Desktop 12.10 64-bit from ubuntu.com 7:30PM 2012-11-02
- installed following (I realize some of these have nothing to do with running these libraries, but I wanted to include anything in case something sticks out to you guys)
- hg
- git
- dropbox
- keepass
- chromium
- vsftpd
- build-essential