Skip to content

Instantly share code, notes, and snippets.

@vestjoe
Last active August 16, 2018 23:19
Show Gist options
  • Save vestjoe/3002fa9e1e72a89a3c62197539d9d26a to your computer and use it in GitHub Desktop.
Save vestjoe/3002fa9e1e72a89a3c62197539d9d26a to your computer and use it in GitHub Desktop.

Colors

println("\c0 \\c0 = White");
println("\c1 \\c1 = Inverted Highlighted Text"); # You can't see on dark backgrounds
println("\c2 \\c2 = Dark Blue");
println("\c3 \\c3 = Green");
println("\c4 \\c4 = Pink");
println("\c5 \\c5 = Red");
println("\c6 \\c6 = Purple");
println("\c7 \\c7 = Dark Yellow");
println("\c8 \\c8 = Yellow");
println("\c9 \\c9 = Light Green");
println("\cA \\cA = Light Cyan");
println("\cB \\cB = Cyan");
println("\cC \\cC = Dark Cyan");
println("\cD \\cD = Light Purple");
println("\cE \\cE = Gray");
println("\cF \\cF = Light Gray");

Is SMB Beacon

if (beacon_info($1,"pbid")) {
    blog($1, "SMB");
} else {
    blog($1, "Not SMB");
}
foreach $beacon (beacons()) {
    if (($beacon["pbid"]) > 0) { 
        # This is an SMB beacon
    } else {
        # This is not an SMB beacon
    }
}
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment