Skip to content

Instantly share code, notes, and snippets.

View bayleedev's full-sized avatar
🍿

Baylee Schmeisser bayleedev

🍿
View GitHub Profile

Intro

Zazu is a fully extensible open source launcher. There are binaries that can be downloaded for Windows, Linux and Mac. I'm going to show you how to get started on a mac, but the steps are almost identical on other operating systems.

Download

To download Zazu, go to 'zazuapp.org' and click 'download', then select your operating system. Walk through the steps to install it on your computer, then launch the application for the first time. You'll soon be greeted with a notification telling you that your plugins have finished installing.

~/.gitconfig

[core]
  editor = nvim

~/.zshrc

Make symlinks to the correct directories:

Open Questions

  • Setup let's encrypt via a script
  • How do we have a consistent salt on the servers?

Types of servers

Servers need to be created in this order:

  • master database
@bayleedev
bayleedev / bind.js
Last active December 4, 2016 02:49
function list() {
return Array.prototype.slice.call(arguments);
}
function bind(thisArg, arg1) {
return function() {
return thisArg(...[arg1, ...arguments])
};
}
function testApiRecursive (data) {
console.log('calling it', data)
return Promise.resolve().then(() => {
if (Math.round(Math.random() * 10000) % 20 === 0) {
// true 1/20th of the time
return data
} else {
return new Promise((resolve) => {
setTimeout(resolve, 250) // wait 250ms to run again
}).then(testApiRecursive.bind(this, data))
@@ -6,6 +6,7 @@
use app\\tests\\factories\\ProvidersFactory;
use app\\extensions\\test\Factory;
use app\models\UrgentCareCities;
+use app\models\\cityspec\\Cities;
class BreadCrumbTest extends HelperTest {
@@ -284,6 +285,13 @@ public function testUrgentCareBreadCrumbsState() {
}
<?php
// Single command repl
class Repl {
public $file;
public $line;
public $vars;
> JSON.parse(fs.readFileSync('./results.dat'))
[ { title: 'FeatureFlag',
subtitle: 'https://featureflag.nr-ops.net/' },
{ title: 'FeatureFlag',
subtitle: 'https://staging-featureflag.newrelic.com/' },
{ title: 'Filterable Errors' },
{ title: 'Google Analytics' },
{ title: 'Thread Profile' },
{ title: 'Floorplan for 28' },
{ title: 'Floorplan for 29' },
#![allow(warnings)]
// Goal #1: Eliminate the borrow check error in the `remove` method.
// parallelization is anti-encapsulation
pub struct Map<K: Eq, V> {
elements: Vec<(K, V)>,
}
impl<K: Eq, V> Map<K, V> {
struct Foo<'a> {
x: &'a i32,
}
impl<'a> Foo<'a> {
fn x(&self) -> &'a i32 { self.x }
}
fn blah() -> i32 {
let y = &5; // this is the same as `let _y = 5; let y = &_y;`