python3 setup.py build
Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so
| // https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/crypto/ssh" | |
| ) | |
| const privateKey = `content of id_rsa` |
| # install dependencies | |
| sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm | |
| # clone cpuminer | |
| git clone https://github.com/pooler/cpuminer.git | |
| # compile | |
| cd cpuminer | |
| ./autogen.sh | |
| ./configure CFLAGS="-O3" |
| /* | |
| * Genarate rsa keys. | |
| */ | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" |
Our goal here is to have one USB stick to rule them all. Objectives:
The last bullet is subject to interpretation, but I'm defining functional as:
| http://s3.amazonaws.com/bucket/key (for a bucket created in the US East (N. Virginia) region) | |
| https://s3.amazonaws.com/bucket/key | |
| http://s3-region.amazonaws.com/bucket/key | |
| https://s3-region.amazonaws.com/bucket/key | |
| http://s3.region.amazonaws.com/bucket/key | |
| https://s3.region.amazonaws.com/bucket/key | |
| http://s3.dualstack.region.amazonaws.com/bucket/key (for requests using IPv4 or IPv6) |
| package main | |
| import ( | |
| "archive/zip" | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" |
| #!/usr/bin/env xdg-open | |
| [Desktop Entry] | |
| Type=Application | |
| Name=Jira | |
| GenericName=Issue tracker | |
| Exec=sh -c "xterm -class Jira -name jira -title Jira -e jira.sh" | |
| StartupWMClass=jira | |
| Icon=jira.png | |
| Terminal=false | |
| Categories=Office;;Network |