Skip to content

Instantly share code, notes, and snippets.

@MaerF0x0
MaerF0x0 / error
Created August 26, 2013 19:11
Error occurring after I modify the minimongo.js code.
mrt
Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
[[[[[ ~/programming/nodejs/charter-watch/app ]]]]]
@MaerF0x0
MaerF0x0 / gist:7242600
Created October 31, 2013 00:22
Meteor publish and approximate SQL
Meteor.publish(
'scores',
function() {
return Scores.find(
{score:{$gt:100}},
{
fields: {user:1,score:1},
sort:{score:-1},
limit:10,
skip:pageNumber*pageSize
@MaerF0x0
MaerF0x0 / consul.sh
Last active April 4, 2016 21:17 — forked from ianunruh/consul.sh
Install Consul on Ubuntu 14.04
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
export CONSUL_VER=0.6.4
export CONSUL_FILE=consul_$(CONSUL_VER)_linux_amd64.zip
#eg: https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip
@MaerF0x0
MaerF0x0 / openconnect.md
Created May 11, 2016 20:22 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

@MaerF0x0
MaerF0x0 / main.go
Last active May 30, 2018 02:03
Quick n dirty redigo pipeline
package main
import (
"fmt"
"log"
"os"
"time"
"github.com/garyburd/redigo/redis"
)
@MaerF0x0
MaerF0x0 / keybase.md
Created December 6, 2016 22:26
keybase.md

Keybase proof

I hereby claim:

  • I am maerf0x0 on github.
  • I am mikegraf (https://keybase.io/mikegraf) on keybase.
  • I have a public key ASC4WntHVSUdVwkA3vP9lffMGqNhIVMdw8k0Jn-iD36azAo

To claim this, I am signing this object:

@MaerF0x0
MaerF0x0 / SD.md
Last active April 17, 2024 18:19 — forked from Neilblaze/SD.md
Standard System Design Interview Approach Template
@MaerF0x0
MaerF0x0 / _gotestbranch.md
Created July 22, 2024 23:12 — forked from fisherevans/_gotestbranch.md
Test local golang changes

gotestbranch

This script tries to make it easy to test changes in a go project by:

  1. Identifying what packages have been changed within your current git branch
  2. Finding all the packages that depend on those packages
  3. Merging those two lists of packages together
  4. Runs go test on those packages

This makes it easy to ensure your changes have not broken any compile-time dependencies, and that all existing tests are passing.