Skip to content

Instantly share code, notes, and snippets.

View mpobrien's full-sized avatar
🏄‍♂️
hi please

mpobrien

🏄‍♂️
hi please
View GitHub Profile
#!/bin/sh
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a
set -e
PWD=`pwd`
DD=$PWD/downloads/ # Download Directory
function download {
@mpobrien
mpobrien / nts_all.m3u
Created February 16, 2025 23:04
playlist of NTS radio stations
#EXTM3U
#EXTINF:0,4 to the Floor
https://stream-mixtape-geo.ntslive.net/mixtape5
#EXTM3U
#EXTINF:0,Expansions
https://stream-mixtape-geo.ntslive.net/mixtape3
#EXTM3U
#EXTINF:0,Feelings
https://stream-mixtape-geo.ntslive.net/mixtape27
#EXTM3U
@mpobrien
mpobrien / starship.toml
Created December 12, 2024 21:55
starship config
format = """
$battery\
$username\
$hostname\
$directory\
$git_branch\
$git_state\
$git_status\
$cmd_duration\
$line_break\
const Realm = require('realm');
const uuid = require('uuid').v4;
const process = require('process');
const argv = process.argv.slice(2);
const STITCH_APP_ID = 'foo2-tqxot';
Realm.Sync.setLogLevel('all');
// Uncomment these instead to hit ROS
/*
import fileinput
import re
goroutine_hdr = re.compile('^goroutine (\d+) \[([\w\s,]+)\]:$')
funccall_params = re.compile('(.*)\([^\)]*\)$')
def main():
goroutines = []
currentgoroutine = None
void memLimitTest() {
Isolate::CreateParams create_params;
v8::ResourceConstraints constraints;
constraints.set_max_old_space_size(100);
create_params.constraints = constraints;
create_params.array_buffer_allocator =
v8::ArrayBuffer::Allocator::NewDefaultAllocator();
Isolate *isolate = Isolate::New(create_params);
{
Isolate::Scope isolate_scope(isolate);
#!/bin/bash
set -u
DOC_DIR=godoc
PKG=github.com/10gen/baas
# Run a godoc server which we will scrape. Clobber the GOPATH to include
# only our dependencies.s
godoc -http=localhost:6060 &
DOC_PID=$!
package main
import (
"crypto/tls"
"log"
)
type OpCode int32
const MsgHeaderLen = 16
@mpobrien
mpobrien / helloworld.yml
Created September 23, 2016 13:34
evergreen hello world
tasks:
- name: compile
commands:
- command: git.get_project
params:
directory: src
- command: shell.exec
params:
script: |
echo "hello world!"
$(document).ready(function() {
var fps = 30;
var fpsInterval = 1000 / fps;
var tokens = $('.bricks').text().split(/\s/g)
var out = $(".out")
$.each(tokens, function(i, v) {
var newNode = $('<span class="word"></span>').text(v);
out.append(newNode);
})