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
use hal::delay::Delay; | |
use hal::gpio::*; | |
use hal::peripherals::Peripherals; | |
fn main() -> anyhow::Result<()> { | |
hal::sys::link_patches(); | |
let delay = Delay::new_default(); | |
let peripherals = Peripherals::take()?; |
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
use async_executor::Executor; | |
//use async_executor::LocalExecutor; | |
//use edge_executor::Executor; | |
use futures_lite::future; | |
use hal::{gpio::*, peripherals::Peripherals, prelude::*, task::*, timer::*}; | |
use std::thread; | |
use std::time; | |
fn main() -> anyhow::Result<()> { | |
hal::sys::link_patches(); |
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
#![no_std] | |
#![no_main] | |
#![feature(type_alias_impl_trait)] | |
use embassy_executor::Spawner; | |
use embassy_time::{Duration, Timer}; | |
use embedded_hal_async::digital::Wait; | |
use esp_backtrace as _; | |
use hal::{ | |
clock::ClockControl, |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
POST /auth/oauth/token HTTP/2 | |
Host: zinfandel-api.centrastage.net | |
Content-Type: application/x-www-form-urlencoded | |
Authorization: Basic cHVibGljLWNsaWVudDpwdWJsaWM= | |
Content-Length: ### | |
grant_type=password&username=APIIDKEY&password=APISECRETKEY |
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 bash | |
# Noah Bliss - 2021.09.29 | |
if [ -f /etc/os-release ]; then source /etc/os-release; else echo "os-release missing or not Linux" && exit 1; fi | |
tgzfile="IMAGE_HX_AGENT_LINUX_32.30.16.tgz" | |
debfile="xagt_32.30.16-1.ubuntu16_amd64.deb" | |
rpmfile="xagt-32.30.16-1.el7.x86_64.rpm" | |
mkdir hxagent |
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 julia | |
# Noah Bliss - 2020-1-6 | |
using HTTP | |
using JSON | |
using JSONWebTokens | |
using Dates | |
using SHA | |
using Base64 | |
# These will stay the same for your tenant. See below for more vars you need to fill. |
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
# ~/.zshrc file for zsh interactive shells. | |
# see /usr/share/doc/zsh/examples/zshrc for examples | |
setopt autocd # change directory just by typing its name | |
#setopt correct # auto correct mistakes | |
setopt interactivecomments # allow comments in interactive mode | |
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’ | |
setopt nonomatch # hide error message if there is no match for the pattern | |
setopt notify # report the status of background jobs immediately | |
setopt numericglobsort # sort filenames numerically when it makes sense |
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
# Auto attach existing tmux session, if none exist, start one. | |
#if command -v tmux >/dev/null && ! [ $TERM == "screen" ]; then tmux a || tmux; fi | |
# Tell us if tmux is running or not, does _not_ auto attach. | |
if if command -v tmux >/dev/null && tmux ls &>/dev/null && ! [ "$TERM" == "screen" ]; then echo -e "------\n A TMUX session exists! Attach with \`tmux a\`\n------\n"; fi |
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
sed -nE "s#.*($1).*#\1#p" "$2" |
NewerOlder