This file contains hidden or 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 | |
bt_device_addr=$(pacmd list-cards | grep -i 'name:.*bluez_card' | sed -E 's/.*<?bluez_card\.([A-Z0-9_]+)>?/\1/') | |
device_mac=$(echo $bt_device_addr | sed 's/_/:/g') | |
a2dp_available=$(pacmd list-cards | grep -A30 bluez | grep "A2DP Sink" | sed -E 's/.* available: ([a-z]+)\)/\1/g') | |
if [[ "$a2dp_available" == "no" ]] || [[ "$a2dp_available" == "unknown" ]] | |
then | |
dbus-send --system --dest=org.bluez --print-reply /org/bluez/hci0/dev_$bt_device_addr org.bluez.Device1.Connect |
This file contains hidden or 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
*nat | |
:PREROUTING ACCEPT [0.0] | |
:INPUT ACCEPT [0.0] | |
:OUTPUT ACCEPT [0.0] | |
:POSTROUTING ACCEPT [0.0] | |
-A POSTROUTING -o enp1s0 -j MASQUERADE | |
# -A PREROUTING -p tcp -m tcp -i enp1s0 --dport 80 -j DNAT --to-destination 192.168.1.100:80 | |
COMMIT |
This file contains hidden or 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 pyterprise | |
import argparse | |
import pathlib | |
parser = argparse.ArgumentParser(description='Parse Arguments') | |
parser.add_argument('-n', '--hostname', | |
required=True, | |
type=str, | |
action='store', | |
help="FQDN for the TFE cluster") |
This file contains hidden or 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
{"error":{"code":"BadParameter","message":"Property has invalid value\r\n"}} |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am sjbodzo on github. | |
* I am crispy_ (https://keybase.io/crispy_) on keybase. | |
* I have a public key ASDlR6rHaJhIyXF7JXxGOK7pcTncLNPE5iHyeciS91FGPgo | |
To claim this, I am signing this object: |
This file contains hidden or 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
//: Wifi Encryption Scheme for generating a 128 bit WEP key | |
import UIKit | |
import Foundation | |
var psk = "meterking1" | |
// MD5 Implementation | |
/** Circular Shift implementation for 32 bit unsigned integers **/ | |
protocol CircularShiftable { |
This file contains hidden or 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
//: Wifi Encryption For 128 Bit WEP key generation using an MD5 hash | |
// Created by: Jess Bodzo | |
/** | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
This file contains hidden or 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
// Created by: Jess Bodzo | |
// The code below is a simple WEP key generator based off a given passphrase | |
import UIKit | |
import Foundation | |
var psk = "password" | |
let m = UInt(1 << 32) | |
let c = UInt(0x269ec3) | |
let a = UInt(0x343fd) |
This file contains hidden or 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
#include <SD.h> | |
File tweet_file; | |
int NUM_TWEETS = 800; | |
// Pin assignments for Arduino pins to control select lines. | |
// Note : Mux A takes lines coming from T/W into breadboard. | |
// Demux B takes line coming from Mux A and demuxes it. | |
// Demux C handles last two remaining lines not gotten by B. | |
This file contains hidden or 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 java.util.PriorityQueue; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
import java.util.List; | |
import java.io.*; | |
class Edge { | |
public Node dest_node; // Destination when you travel along this node | |
public int distance; // How far to get to destination node along this edge |
NewerOlder