Skip to content

Instantly share code, notes, and snippets.

View bdmorin's full-sized avatar
👁️‍🗨️
the horrors persist, but so do l

Brian bdmorin

👁️‍🗨️
the horrors persist, but so do l
View GitHub Profile
@bdmorin
bdmorin / Notes.md
Last active July 26, 2022 16:35
1password Teams/Business has a HUGE default problem. This is what I'm doing to remediate it.

todo

  • Setup some kind of automation so this can happen regularly.
  • Consider python or charm.sh to run everything
  • My async solution using parallel is ok, but async.io or something pythonic might be nice.
  • Go could handle this really well, so that's a consideration as well.
@bdmorin
bdmorin / crostini-bootstrap.sh
Last active July 12, 2022 17:30 — forked from dwallraff/bootstrap.sh
Crostini penguin bootstrap script -- curl -sL dwallraff.com/bootstrap | bash
#! /usr/bin/env bash
#-- Dave Wallraff
# -- bdmorin@gmail.com
### bootstrap crostini container
# curl -sL https://gist.githubusercontent.com/bdmorin/54e15b22a57eea69be8b880fa2569225/raw/6517ceb92a750597875c92ad35f227eb0a3747e1/crostini-bootstrap.sh | bash
# Do all this in ansible, duh
# wrap in a function for curl|bash
@bdmorin
bdmorin / sshfs vs rclone.v1.md
Created July 7, 2022 20:41
sshfs vs rclone

Mount SSHFS

> sshfs -o uid=1000,gid=1000 bdmorin@meltdown.local:/Volumes/horace/unsorted ./sshfs

Mount Rclone

> rclone config
Current remotes:

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- This file was created with the aha Ansi HTML Adapter. https://github.com/theZiz/aha -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" />
<title>stdin</title>
</head>
<body>
<pre>
@bdmorin
bdmorin / putio_blackhole_uploader.bash
Last active January 29, 2023 16:37
my blackhole solution for put.io & sonarr
#!/usr/bin/env bash
# authornote: i need to change all mentions of blackhole -> transferdir or something
# tested on macos, YMMV
# Gist: https://gist.github.com/bdmorin/d3c53e0f495f4947bf61fb55e1c85310
# Set ur putio oath token
OAUTH_TOKEN=$(cat ${HOME}/.putio_oauth)
@bdmorin
bdmorin / comcast injection.diff
Created November 29, 2018 18:05
Comcast forces PROXY connections for unencrypted traffic.
927,1514c927
< <script language="JavaScript" type="text/javascript">
< // Copyright (C) 2017 Comcast Cable Communications, LLC
< // Contact Us: http://customer.xfinity.com/contact-us/
< // Intended use of this message is to display critical and time sensitive notifications to customers.
< /*
< This program is free software; you can redistribute it and/or
< modify it under the terms of the GNU General Public License
< as published by the Free Software Foundation; either version 2
< of the License, or (at your option) any later version.
@bdmorin
bdmorin / jupyterwithoutdocker.sh
Created June 27, 2018 21:43
virtualenv for jupyter
#!/bin/bash
# Yes you can do this in ansible
jdir = "~/jupyterLocal"
mkdir -p ${jdir}
pip install virtualenv
pip install virtualenvwrapper
TMPFILE=$(mktemp)
@bdmorin
bdmorin / prometheus.yml
Created June 15, 2018 20:26 — forked from skreuzer/prometheus.yml
smokeping style metrics in prometheus
global:
evaluation_interval: 15s
rule_files:
- smokeping.rules
scrape_configs:
- job_name: 'blackbox_icmp'
metrics_path: /probe
params:
module: [icmp]
scrape_interval: 1s