Skip to content

Instantly share code, notes, and snippets.

View fovea1959's full-sized avatar
🤞
Herding FRC programmers

Doug Wegscheid fovea1959

🤞
Herding FRC programmers
View GitHub Profile
@fovea1959
fovea1959 / gist:bf3955e8ffa8102a7199d57e271713e6
Created January 16, 2025 23:46
How to add swap space to a roboRIO
https://drive.google.com/file/d/1ZngYEfeOD6j3B4q2BzujlfHS3lgqd1lS/view?usp=sharing
@fovea1959
fovea1959 / test_table.html
Last active September 7, 2020 14:46
test file for getting anchors out from behind Bootstrap 4 navbar.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

Receiving end:

netcat -l -p 7000 | tar xvf -

Sending end:

tar cf - . | pv -pterb -s 100G | netcat synology2 7000

@fovea1959
fovea1959 / md5sum-diff.py
Last active February 21, 2020 16:07
Utility to compare two md5sum files and give a view of changed/missing
#!/usr/bin/env python
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import argparse, logging, sys, os, difflib, traceback
class argparse_logging(argparse.ArgumentParser):
def error(self, message):
logging.error(message)
argparse.ArgumentParser.error(self, message)

Inkscape messes up the fonts so that Fritzing does not recognize them. Easy to fix. Go into .svg file by hand, and remove the "px" units from the ends of all the font sizes. They will probably be buried in a style= attribute. See http://forum.fritzing.org/t/text-in-svg-appears-wrong-in-fritzing/2059

Notes on graphics standards for Fritzing parts: http://fritzing.org/fritzings-graphic-standards/#schematic

Up to date instructions for Part Editor at http://blog.fritzing.org/2012/10/09/new-parts-editor-released/

When trying to select the correct SVG element when doing connectors, the documentation sez "Use Mouse Wheel". It was shift(?)-"Mouse Wheel" on my Ubuntu laptop.

[alias]
# https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs
dog = log --all --decorate --oneline --graph
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
orphank = !gitk --all --date-order ``git reflog | cut -c1-7``&
@fovea1959
fovea1959 / SSLPoke.java
Created June 4, 2018 20:44
Enhanced SSLPoke (Java test program)
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.security.InvalidKeyException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;
import java.security.cert.Certificate;
@fovea1959
fovea1959 / Building opencv 3.2 on a raspberry pi.md
Last active May 21, 2018 18:10
Building opencv 3.2 on a raspberry pi