I hereby claim:
- I am cyberDrake on github.
- I am cyberdrake (https://keybase.io/cyberdrake) on keybase.
- I have a public key whose fingerprint is E95B 048D 7656 51E5 CECB 1914 A45A 7B6B A38A CCE1
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
use std::net::UdpSocket; | |
use std::env; | |
//use std::io::BufReader; | |
use std::fmt; | |
use std::default::Default; | |
fn get_octet(buf: &[u8]) -> u16 { | |
let mut res: u16; | |
res = match (buf[0] as char).to_digit(16) { |
//! DNS packet abstraction | |
use packet::Packet; | |
use pnet_macros::types::*; | |
/// Represents an UDP Packet | |
#[packet] | |
pub struct Dns { | |
id: u16be, |
# View registry settings | |
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | |
# Change registry settings | |
# Reverse mouse wheel scroll FlipFlopWheel = 1 | |
# Normal mouse wheel scroll FlipFlopWheel = 0 | |
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 } | |
# Restore default scroll direction | |
# Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 1 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 0 } |