This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright 2023 Luke Frisken | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the “Software”), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function colorGradient(colors, fadeFraction) { | |
if (fadeFraction >= 1) { | |
return colors[colors.length - 1] | |
} else if (fadeFraction <= 0) { | |
return colors[0] | |
} | |
let fade = fadeFraction * (colors.length - 1); | |
let interval = Math.trunc(fade); | |
fade = fade - interval |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
import time | |
USERNAME = 'cusadmin' | |
PASSWORD = 'password' | |
driver = webdriver.Chrome() | |
driver.get('http://192.168.2.1/login.html#admin_devreboot/m/4/s/6') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -exu | |
dev=$1 | |
cd $(mktemp -d) | |
function umountboot { | |
umount boot || true | |
umount root || true | |
} | |
# RPi1/Zero (armv6h): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Scan with ./findPing360.py [current IP of the interface to scan] | |
""" | |
import socket | |
import time | |
import argparse | |
parser = argparse.ArgumentParser(description='Process some integers.') |
@sindresorhus posted this tweet today about a thing I remember writing about beforehand too (or at least have thought about it a lot): staleness
Controversial opinion: Stale issues in open source projects are fine. Auto-closing issues based on staleness is an annoyance to users and can drive potential contributors away. There must be a better way of handling issue overload.
@sindresorhus (https://twitter.com/sindresorhus/status/1082145283285250048)
Here's a couple of short thoughts I have on the issue of staleness after maintaining things like brackets and our own projects for years.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM base/archlinux:latest AS base | |
RUN pacman -Sy --noconfirm binutils perl python libxcb clang emscripten git make cmake qbs | |
ENV PATH="/usr/lib/emscripten:${PATH}" | |
FROM base AS repos-configured | |
COPY ./configure-qt5-repos.sh ./ | |
RUN ./configure-qt5-repos.sh | |
FROM repos-configured AS repos-built |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This folder provides simulation of the BlueROV2 using Gazebo for the dynamics and ArduPilot SITL for the communication and ground control. | |
Source: https://gist.github.com/patrickelectric/60a1d300e0afadf85066cc5d8e3d51ff | |
http://discuss.bluerobotics.com/t/ardusub-simulation-sitl/481/30 | |
------------------------------------------------------------------------------------------------------------------------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script allows you to chroot ("work on") | |
# the raspbian sd card as if it's the raspberry pi | |
# on your Ubuntu desktop/laptop | |
# just much faster and more convenient | |
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689 | |
# make sure you have issued |
NewerOlder