Skip to content

Instantly share code, notes, and snippets.

Brandon Weeks brandonweeks

View GitHub Profile
public class MainActivity extends AppCompatActivity {
static String TAG = "BLEScanner";
BluetoothAdapter mBluetoothAdapter;
BluetoothLeScanner mBluetoothLeScanner;
protected void onCreate(Bundle savedInstanceState) {

Keybase proof

I hereby claim:

  • I am brandonweeks on github.
  • I am weeks ( on keybase.
  • I have a public key ASBYG28PqcyXPFs_OKulWicuGPn6SmodwgC9r9FKM0sv3Ao

To claim this, I am signing this object:

View gist:3da99aea1a927fd55ebbbd5bb6045c89
Checking that it builds... OK
Checking for files that need gofmt... OK
Checking for files that need boilerplate... OK
Checking for problems with flag names... OK
Checking for API descriptions... OK
View motd.log
Last login: Wed Apr 27 00:58:43 2016 from
CoreOS alpha (1029.0.0)
Update Strategy: No Reboots
Failed Units: 23
View coreos_1029.0.0.log
- Logs begin at Wed 2016-04-27 00:49:55 UTC, end at Wed 2016-04-27 01:08:01 UTC. --
Apr 27 00:50:51 systemd[1]: Started Docker Application Container Engine.
Apr 27 00:50:51 dockerd[1085]: time="2016-04-27T00:50:51.546366410Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Apr 27 00:50:51 dockerd[1085]: time="2016-04-27T00:50:51.549673303Z" level=info msg="Firewalld running: false"
Apr 27 00:50:52 dockerd[1085]: time="2016-04-27T00:50:52.102048600Z" level=info msg="Loading containers: start."
Apr 27 00:50:52 dockerd[1085]: time="2016-04-27T00:50:52.102361268Z" level=info msg="Loading containers: done."
Apr 27 00:50:52 dockerd[1085]: time="2016-04-27T00:50:52.102568407Z" level=info msg="Daemon has completed initialization"
Apr 27 00:50:52 ip-10-0
View gist:8b6c512fb743813d3f001f10528bf53f
$ make release
+++ [0426 01:54:18] Verifying Prerequisites....
+++ [0426 01:54:18] No docker host is set. Checking options for setting one...
+++ [0426 01:54:18] docker-machine was found.
Host does not exist: "kube-dev"
+++ [0426 01:54:18] Creating a machine to build Kubernetes
Machine "kube-dev" is already running.
build/../build/ line 205: DOCKER_MACHINE_NAME: readonly variable
+++ [0426 01:55:21] A Docker host using docker-machine named 'kube-dev' is ready to go!
View puppet4.pp
if versioncmp($::puppetversion, '4.0') < 0 {
include ::puppet_agent
} else {
include ::puppet
View puppet-puppet.log
Notice: /Stage[main]/Puppet::Server::Config/File[/etc/puppetlabs/code/environments/common]/ensure: created
Notice: /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]: Unscheduling refresh on Service[puppet]
Info: Class[Puppet::Server::Config]: Scheduling refresh of Class[Puppet::Server::Service]
Info: Class[Puppet::Server::Service]: Scheduling refresh of Service[puppetserver]
Notice: /Stage[main]/Puppet::Server::Service/Service[puppetserver]: Triggered 'refresh' from 1 events
View web-routes.conf.erb
web-router-service: {
<%- if scope.function_versioncmp([@puppetversion, '4.0']) >= 0 -%>
# These two should not be modified because the Puppet 4.x agent expects them to
# be mounted at these specific paths
"": "/puppet-ca"
"": "/puppet"
"": ""
<%- else -%>
# These two should not be modified because the Puppet 3.x agent expects them to
# be mounted at "/"
url = '/users/%s/favorites' % client.get('/me').id
while url:
response = client.get(url, order='favorited_at', limit=PAGE_SIZE, linked_partitioning=True)
url = response.next_href if 'next_href' in response.keys() else None
db.tracks.insert_many([track.obj for track in response.collection])
You can’t perform that action at this time.