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
❯ picocom -b 115200 /dev/ttyUSB0 | |
picocom v3.1 | |
port is : /dev/ttyUSB0 | |
flowcontrol : none | |
baudrate is : 115200 | |
parity is : none | |
databits are : 8 | |
stopbits are : 1 | |
escape is : C-a |
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
### Current Directory Structure (micropython submodule pruned) | |
❯ tree --gitignore | |
. | |
├── CMakeLists.txt | |
├── components | |
│ └── micropython | |
├── main | |
│ ├── CMakeLists.txt | |
│ ├── idf_component.yml | |
│ └── mp-test.c |
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
[bharrington@host10 media]$ pvcreate /dev/md0 | |
WARNING: Running as a non-root user. Functionality may be unavailable. | |
/run/lvm/lvmetad.socket: access failed: Permission denied | |
WARNING: Failed to connect to lvmetad. Falling back to device scanning. | |
/run/lock/lvm/P_orphans:aux: open failed: Permission denied | |
Can't get lock for orphan PVs. | |
[bharrington@host10 media]$ sudo pvcreate /dev/md0 | |
Physical volume "/dev/md0" successfully created. | |
[bharrington@host10 media]$ sudo pvcreate /dev/nvme0n1p2 | |
Physical volume "/dev/nvme0n1p2" successfully created. |
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 should work with Slic3r (https://github.com/slic3r/Slic3r) as | |
# well as it's derivatives: | |
# - https://github.com/supermerill/SuperSlicer | |
# - https://github.com/prusa3d/PrusaSlicer | |
# The author uses "SuperSlicer" due to it's advanced feature set, installing | |
# it at the path ~/.local/bin/slicer.sh | |
# | |
# CLI options relevant to configuration (derived via CLI with --help-fff): |
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
> Executing task: platformio check --environment STM32F103RE_btt < | |
Checking STM32F103RE_btt > cppcheck (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino) | |
------------------------------------------------------------------------------------------------------------------------------------- | |
Marlin/src/HAL/shared/backtrace/unwarm.cpp:56: [low:style] The function 'UnwInitState' is never used. [unusedFunction] | |
Marlin/src/HAL/shared/backtrace/unwarm.cpp:160: [low:style] The function 'UnwMemReadRegister' is never used. [unusedFunction] | |
Marlin/src/HAL/shared/backtrace/unwarm.cpp:141: [low:style] The function 'UnwMemWriteRegister' is never used. [unusedFunction] | |
Marlin/src/HAL/shared/backtrace/unwarm.cpp:91: [low:style] The function 'UnwReportRetAddr' is never used. [unusedFunction] | |
Marlin/src/HAL/shared/backtrace/unwarm_arm.cpp:45: [low:style] The function 'UnwStartArm' is never used. [unusedFunction] | |
Marlin/src/HAL/shared/backtrace/unwarm_thumb.cpp:32: [low:style] The function 'UnwStartThumb' is |
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
--- CNCxPRO src/WebUI/BTConfig.h | |
+++ Grbl_Esp32 src/WebUI/BTConfig.h | |
@@ -24,7 +24,7 @@ | |
#endif | |
//defaults values | |
-const char* const DEFAULT_BT_NAME = "CNC_xPRO_V5"; | |
+const char* const DEFAULT_BT_NAME = "btgrblesp"; | |
#include <BluetoothSerial.h> |
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 python | |
"""CopyOCPAMI.py - A utility to copy OpenShift Amazon Machine Images | |
Copyright (C) 2020 Brian 'redbeard' Harrington | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU Affero General Public License as | |
published by the Free Software Foundation, either version 3 of the | |
License, or (at your option) any later version. |
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
import dbus | |
class MediaPlayer: | |
"""Recieves state from a MediaPlayer using dbus.""" | |
player_properties = False | |
def __init__(self, player_name): | |
# Get an instance of the dbus session bus, and retrieve | |
# a proxy object for accessing the MediaPlayer |
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 | |
# Bourne Again Shell example of translation services using the AWS Translate | |
# service. Requires the AWS CLI tool and JQ to be present in the path. | |
# | |
# Directions, edit "langlist.txt" to include the desired languages from the | |
# following site: https://docs.aws.amazon.com/translate/latest/dg/what-is.html | |
# | |
# Next: Edit the "--text" option to include your text to be translated and | |
# the JQ filter to format the output. In the example below we are translating | |
# a string for use in translating the description of an application for use in |
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 scratch | |
ADD ghbn /ghbn | |
CMD ["/ghbn", "example.com"] |
NewerOlder