Skip to content

Instantly share code, notes, and snippets.

# kinematics
loadrt trivkins
# trajectory planner
loadrt tp
# motion controller, get name and thread periods from ini file
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES kins=trivkins tp=tp
loadrt picnc
addf picnc.read servo-thread
addf motion-command-handler servo-thread
@flyingoctopus
flyingoctopus / 0_README.md
Created April 30, 2025 11:20 — forked from renoirb/0_README.md
Extracting transactions from RBC Personal Online Banking OMNI

RBC Royal Bank Online Banking doesn't allow extracting CSV of transactions

This does. Just run this when you’ve selected the filter criteria you want, then paste this in developer tool. It'll transform the transaction button with "Download CSV".

A date range and you want those transactions as CSV, with transaction number and only amounts, no formatting: so you can use your spreadsheet to manage that data.

Furthermore, RBC’s OMNI Team; What would be even cooler is if when we filter the transactions with criterias. When we click to view an item, like a Cheque image, when we click "Back" on the browser, we don’t lose the search we had. Like it currently does. That would be easily possible if the URL kept the filter criterias. This changes browser history, and allows to use the Back button *for free*. But the FrontEnd code doesn’t do that. And that Gist’s content isn't covering this problem — But I might tackle that one too some day.

@flyingoctopus
flyingoctopus / gist:e36f6239b78f85977dc58467881b294a
Last active November 6, 2024 01:47
privateGPT on apple silicon
# pull project
git clone https://github.com/imartinez/privateGPT && cd privateGPT
# install make and miniconda, follow the miniconda enironment setup steps
brew install make miniconda
# get Python 3.11 and poetry in a isolated conda environment
conda create privategpt python=3.11 && conda use privategpt && pip install poetry
# installing my chosen dependencies
@flyingoctopus
flyingoctopus / brew-list.sh
Created October 21, 2024 09:54 — forked from eguven/brew-list.sh
List all packages installed using Homebrew and their sizes
# this original one uses values returned from 'brew info'
brew list --formula | xargs -n1 -P8 -I {} \
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \
sort -h -r -k2 - | column -t
# faster alternative using 'du'
du -sch $(brew --cellar)/*/* | sed "s|$(brew --cellar)/\([^/]*\)/.*|\1|" | sort -k1h
@flyingoctopus
flyingoctopus / glddnsupdater.sh
Created October 14, 2024 07:01 — forked from BigNerd95/glddnsupdater.sh
GL.iNet ddns update script [will associate your wan IP to puXXXXX.gl-inet.com where XXXXX are the latest 5 bytes of the mac address]
#!/bin/sh
# OpenWRT support libs
. /lib/functions.sh
. /lib/functions/network.sh
. /usr/share/libubox/jshn.sh
ip_regex="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
ddns=
code=
@flyingoctopus
flyingoctopus / git-aliases.zshrc
Last active November 1, 2024 16:46
some git niceties for your shell environment
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
# more fun
alias gd='git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r'
alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
alias gcb='git copy-branch-name'
alias gb='git branch'
package main
import (
"fmt"
"log"
"math/rand"
"regexp"
"strconv"
"strings"
"time"

Keybase proof

I hereby claim:

  • I am flyingoctopus on github.
  • I am vincentpants (https://keybase.io/vincentpants) on keybase.
  • I have a public key ASA8aG1NR8zSYb3Y-Xn3SxIa8HxZoKwwCZcAS2HkpGAp1wo

To claim this, I am signing this object:

@flyingoctopus
flyingoctopus / of.zsh
Created December 15, 2015 07:51 — forked from brandonpittman/of.zsh
A simple shell function to create tasks in OmniFocus
#!/bin/zsh
# If you use #'s for defer and start dates, you'll need to escape the #'s or
# quote the whole string.
function of () {
if [[ $# -eq 0 ]]; then
open -a "OmniFocus"
else
osascript <<EOT
@flyingoctopus
flyingoctopus / notes.md
Created September 10, 2015 18:10
Light Up Bowen Murray Meetings Notes

= Light Up Bowen Parade Walking Route = == Villiage Square ==