Skip to content

Instantly share code, notes, and snippets.

@gangstead
gangstead / forscan_wine.md
Last active Jan 27, 2022
Forscan on MacOS Montery with wine/wineskin
View forscan_wine.md

FORscan is windows only software. You want to run on a Mac. You can download a big windows VirtualBox image (20 GB), run Boot camp, or pay for something like Parallels ($80) or CrossOver ($60, built on Wine).

Instead you can pay with your time and try to get wine running. Problem: wine development for MacOS seems to have died with Catalina (10.15) dropped any support for 32 bit applications. Also every wine setup tutorial you find for a Mac is tightly coupled to the exact version of Mac/Wine/direction of the wind/ shoe size of the author on the day the tutorial was made and will not work for you. With that said here's what it took for me:

Wineskin

https://github.com/Gcenx/WineskinServer Follow the official instructions which use homebrew

brew install --no-quarantine gcenx/wine/unofficial-wineskin
@gangstead
gangstead / bash.sh
Created Nov 16, 2021
So you've committed to main, but your main is behind origin main and the push gets rejected...
View bash.sh
➜ git commit -am "my commit to main"
[main 10bc4d8] my commit to main
1 file changed, 11 deletions(-)
➜ git push
To github.com:myorg/myrepo.git
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'github.com:myorg/myrepo.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
@gangstead
gangstead / git_crashcourse.sh
Last active Feb 25, 2021
Minimal git commands
View git_crashcourse.sh
## Happy path
# Create a new branch to put your code on
git checkout -b my-new-branch
# Add all your changed files to a commit (will not start tracking new files)
git commit -am "description of my new changes"
# Push your new branch to github. Then go to github to make a PR
git push -u origin my-new-branch
@gangstead
gangstead / list-users.js
Created Jan 12, 2021
Node.js script to make report very similar to iam users home https://console.aws.amazon.com/iam/home
View list-users.js
// Print report very similar to iam users home https://console.aws.amazon.com/iam/home
// But output is in a more easily digestable format (hint: it goes in a spreadsheet)
// 0a. Make sure you have aws cli 2.0 installed and configured
// 0b. `npm install` there should be a package.json with this, but you need lodash, moment, bluebird
// 1. Usage: `node list-users.js`
const exec = require("child_process").exec;
const _ = require("lodash");
const B = require("bluebird");
const moment = require("moment");
@gangstead
gangstead / ScalaDays.md
Last active Aug 29, 2015
Scala Days Notes
View ScalaDays.md

Scala Days 2015

notes by Steven Gangstead

Monday March 16th

Key Note: Scala - where it came from, where it's going

Martin Odersky @odersky

  • Doesn't feel like talking about the announced topic
View elevatorsaga.js
{
init: function(elevators, floors) {
console.log('elev:' + elevators.length + ' flrs:'+floors.length);
elevators.forEach(function(elevator,index){
elevator.on("idle", function() {
console.log(index + " the devil's plaything");
var idleFloor = [0,0,0,0,0,7,0,0,0,0];
goToFloorSafe(elevator,idleFloor[index]);
elevator.goingUpIndicator(true);
elevator.goingDownIndicator(true);
@gangstead
gangstead / notes.md
Last active Sep 4, 2018
Typesafe webinar notes: Spray & Akka HTTP - Mathias Doenitz
View notes.md

Typesafe webinar notes: Spray & Akka HTTP

Presenter - Mathias Doenitz

Spary.io

  • embeddable http stack built on Akka actors
  • Just an HTTP integration layer, not for building full web apps
  • Server & client side
@gangstead
gangstead / README.md
Last active Aug 29, 2015
RankTank API
View README.md

ranktank

The back end of Rank Tank

Building

> npm install
@gangstead
gangstead / Day 1.md
Last active Dec 20, 2015
PNW Scala Nodes
View Day 1.md

Friday 11/14/14

notes by Steven Gangstead

Rapture Art of One-liner - Jon Pretty @propensive

rapture.io -collection of libraries for scala

jawn json parser. Quicker than Jackson, and I guess Jackson must normally be considered the quickest.

My thoughts: Awesome talk. Look into rapture, looks useful. Jon is smart.

@gangstead
gangstead / gist:01dd6c59e23f6db61be4
Last active Aug 29, 2015
flatMap Society 0.1 notes
View gist:01dd6c59e23f6db61be4

Limit is 30 minutes

flatMap society episode 0.1

  • intro
  • Andrew Rubalcaba (@han_cholo) and Steven Gangstead (@gangstead)
  • this is the half hour podcast about what's going on in tech for the DFW metroplex
  • will we ever reach 1 unlike Node.js

Today we're talking about a scala project we just finished up

  • seeing jobs opening up for Scala in dfw