Skip to content

Instantly share code, notes, and snippets.

use serde::Deserialize;
use restson::{Error, RestClient, RestPath};
// use std::collections::HashMap;
extern crate log;
extern crate pretty_env_logger;
fn main() {
pretty_env_logger::init();
$ tcpdump not host madhax.net and port 22 -vvvv
dropped privs to tcpdump
tcpdump: listening on enp0s7, link-type EN10MB (Ethernet), capture size 262144 bytes
11:51:26.890400 IP (tos 0x20, ttl 53, id 7288, offset 0, flags [none], proto TCP (6), length 60)
134.223.116.151.22171 > neocortex.ssh: Flags [S], cksum 0xde0d (correct), seq 1399727246, win 5840, options [mss 1200,sackOK,TS val 3557422059 ecr 0,nop,wscale 7], length 0
11:51:26.890549 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 48)
neocortex.ssh > 134.223.116.151.22171: Flags [S.], cksum 0xfbf9 (correct), seq 2915884031, ack 1399727247, win 29200, options [mss 1460,nop,wscale 7], length 0
11:51:26.936392 IP (tos 0x20, ttl 53, id 26178, offset 0, flags [none], proto TCP (6), length 40)
134.223.116.151.22171 > neocortex.ssh: Flags [.], cksum 0x99a7 (correct), seq 1, ack 1, win 46, length 0
11:51:26.952684 IP (tos 0x0, ttl 64, id 52626, offset 0, flags [DF], proto TCP (6), length 71)
function [prod] = datnew(q1,q2)
prod = q1*[ q2(4) -q2(3) q2(2) -q2(1);
q2(3) q2(4) -q2(1) -q2(2);
-q2(2) q2(1) q2(4) -q2(3);
q2(1) q2(2) q2(3) q2(4) ]
return
@Salient
Salient / gist:3a581bcd82e0da53d745
Created March 17, 2015 14:30
I don't get the outer loop...why?
while (boot_state==0)
{
while ((!(Serial_Available())) && (boot_state == 0)) // wait for data
{
_delay_ms(0.001);
boot_timer++;
if (boot_timer > boot_timeout)
{
boot_state = 1; // (after ++ -> boot_state=2 bootloader timeout, jump to main 0x00000 )
}

Keybase proof

I hereby claim:

  • I am salient on github.
  • I am vanquish (https://keybase.io/vanquish) on keybase.
  • I have a public key whose fingerprint is 0BC8 86EB 5289 7DF5 6C55 641F 7EBD 4D05 428E AAF4

To claim this, I am signing this object: