Skip to content

Instantly share code, notes, and snippets.

View roxberry's full-sized avatar
💭
coding

Mark Roxberry roxberry

💭
coding
View GitHub Profile

BSidesNYC

Keynote

Theme - Reboot Lance James, CEO Unit221B company (forensics, pen test, disruption)

AI as a worker process FOR attacks, reporting Disruptive Thinking - question, consider, perspective

@roxberry
roxberry / bluetooth_1.py
Last active November 16, 2022 15:36
MakerPi Files
from machine import Pin, UART
from time import sleep
import utime
import uos
# Baud rate setting for bluetooth modules
# AT+BAUD<number>
# 1 set to 1200bps
# 2 set to 2400bps
# 3 set to 4800bps
@roxberry
roxberry / tfs-on-macos.md
Created March 11, 2022 15:57
TFS on macOS

How To Get TFS Working on macOS, in Just Twenty Steps or Less!

I have decided to write this article/how-to guide in a sad and desperate attempt to spare others from (some of) the pain I endured over the last year and a half. Let's start at the beginning of this journey. At the time of joining a team working on an old consumer facing AngularJS application (that's another article for another day), I was a daily Sublime user and came from a Linux/macOS background using cross platform source control tools (either Mercurial or Git). Day one, I had been blessed with a wonderful MacBook Pro. Day Two, I found out the project was using TFS for source control and I would need to run Microsoft Visual Studio inside of Windows 10 to check any code in or out. After just a few hours of running my Parallels VM and trying to create some monster mash workflow between the tools I know and love in macOS for my daily front-end needs, I was fed up. Not only was I constantly paradigm switching on any number of things between th

@roxberry
roxberry / settings-2.json
Last active February 23, 2022 18:17
VS Code Settings
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.autoSave": "afterDelay",
"debug.toolBarLocation": "docked",
"git.autofetch": true,
"peacock.affectActivityBar": false,
"githubIssues.queries": [
{
"label": "My Issues",
@roxberry
roxberry / init.md
Last active February 23, 2022 17:20
Python Projects VS Code

Init notes for Python projects in VS Code

  1. venv on M1
    python3 -m venv .venv && source .venv/bin/activate && python -m pip install --upgrade pip
  2. Python extension v2022.0.1814523869 has issues with IDE, downgrade to v2021.11.1422169775 until fixed.
  3. Settings for Python in VS Code
        "python.insidersChannel": "off",

"python.defaultInterpreterPath": "/usr/bin/python3",

@roxberry
roxberry / gatsby-publish.yml
Created July 25, 2021 23:16
Gatsby Publish Workflow Config
name: Gatsby Publish
on:
push:
branches:
main
jobs:
build:
runs-on: ubuntu-latest
function setReferees() {
Logger.log("Starting function");
var ssID = "xxxxx";
var formID = "xxxxx";
var wsData = SpreadsheetApp.openById(ssID).getSheetByName("data");
var refData = wsData.getRange(2, 1, wsData.getMaxRows() - 1).getValues();
var form = FormApp.openById(formID);
this.exportCSV = function (data, reportTitle, showHeader) {
var fields = {
id: { header: "ID", index:0, show: true},
...
}
var arrData = typeof data != 'object' ? JSON.parse(data) : data;
var CSV = '';
CSV += reportTitle + '\r\n\n';
@roxberry
roxberry / Hadoop FS grep
Created April 30, 2013 16:10
Hadoop FS grep
hadoop fs -ls albumrelease-tracks/output/ | awk '{print $8}' | \
while read f
do
hadoop fs -cat $f | grep -q MT0002267152 && echo $f
done