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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJP6dPlVi2B9S5MmQBuhJ18/AG1xXylLWJJLI/OabafFLDYP/opvv1gjLNLk7J84vfQE+LIm7LGXkENb1H15RxAQb1IqLCUvrogFAdtVjyKTisaoQJIgtl2mxf4R3yK2Z05omrf5/njNO5b+oNz0rFxICm8rGw0ls3BvnvTcAwgyGSFJCZTpqJnC0k9mRA4vNYQlpnbPJaYDZfQKQuwzcZ2Le2rpRifOvcLtY2Xa4u4hka6+0jim1XgE+HSkYQqK/y6oIGGI0tisaimvJy19xmcEmfriyjrZkqIlxZorwFWVy4MPDkQuhE/ttzErzeJ7ExQLmwNtrPLJ+1GFR543Gt [email protected] |
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
// WHY THIS MONSTROSITY EXISTS: | |
// PropWare has an excellent HD44780 LCD driver written in C++. | |
// I wanted something that was simpler, without the dependencies, and in C. | |
// So I took the basic implementation from PropWare and threw this | |
// together. I removed 8-bit support (4-bit mode is usually all you need) and | |
// it assumes 16x2 (although that is easy to change - see HD44780_init()). | |
// This is actually 3 files, you can see the big separator below. | |
// First is the header, then the library C code, then a demo program. | |
// You can just copy and paste what you need right | |
// into SimpleIDE or other Propeller C build setup and it will |
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
package main | |
import ( | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"crypto/rand" | |
"crypto/sha256" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/asn1" |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
/* | |
// Ideas and much code from: |
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
// Example in Go of using the ident protocol to extract the username of the connecting user. | |
// The idea is to use this on corporate networks to identify users logged in to a Windows | |
// RDP machine by their ActiveDirectory username. | |
// NOTE: For Windows, this is a good ident server https://sourceforge.net/projects/retinascan/ | |
// that supports multiple users and all that good stuff. | |
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
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
package main | |
// http://play.golang.org/p/fVf7duRtdH | |
import "fmt" | |
import "unicode/utf16" | |
import "unicode/utf8" | |
import "bytes" | |
func main() { |
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
package main | |
import ( | |
"os" | |
"syscall" | |
"unsafe" | |
) | |
var ( | |
k32 = syscall.MustLoadDLL("kernel32.dll") |