This is an example of Go code calling to a C++ library with a C wrapper.
go build # this only ensures it compiles
import boto3 | |
import base64 | |
if __name__ == '__main__': | |
session = boto3.session.Session() | |
kms = session.client('kms') | |
encrypted_password = 'AQECAHjgTiiE7TYRGp5Irf8jQ3HzlaQaHGYgsUJDaavnHcFm0gAAAGswaQYJKoZIhvcNAQcGoFwwWgIBADBVBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDDwxVQuG0oVwpkU7nQIBEIAoVGk1/wpserb+GVUOzE7PiL/Nr9fTDFKZfpKpF0ip2ct4B2q0Wn6ZZw==' | |
binary_data = base64.b64decode(encrypted_password) |
#! /bin/bash | |
# This is for Mac OSX only. | |
# ============================================= | |
# explanation of arguments used with 'tcpdump': | |
# ============================================= | |
# -y IEEE802_11_RADIO => makes it capture __WIFI__ packets, turns resultant file | |
# into a dump which can be read by aircrack-ng, etc. | |
# | |
# -I => puts interface into monitor mode (required to capture packets) |
# `aws s3 sync` the cloudtrail files you want into a dir, then... | |
cat * | jq '.Records[] | select(.eventSource == "kms.amazonaws.com")' | jq '.userIdentity.arn' |
bash-4.3# cat /proc/1/cpuset | |
/docker/13f8c221656e202db979d1e607c9c902282d8719ab70715978dd04ee6069d61e | |
bash-4.3# DOCKER_CID=$(cat /proc/1/cpuset | cut -c9-) | |
bash-4.3# echo $DOCKER_CID | |
13f8c221656e202db979d1e607c9c902282d8719ab70715978dd04ee6069d61e |
("masternode-1", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:55 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-2", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-3", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-4", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-5", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:55 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-6", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-7", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 1 |
#! /usr/bin/env ruby | |
# | |
# gencert.rb | |
# ===================================================================== | |
# description: This script will accepts an FQDN as an argument | |
# and generates a Secure Sockets Layer (SSL) | |
# certificate request and a private key that corresponds | |
# to the request. It will not overwrite any existing | |
# files, so file <fqdn>.cnf , <fqdn>.csr , or <fqdn>.key | |
# exist, the program will print a message and exit. |
use std::sync::mpsc::{channel, Sender}; | |
pub struct PPU { | |
// data... | |
cycles: u8, | |
nmi_channel: Sender<bool>, | |
} | |
impl PPU { | |
pub fn new(chan: Sender<bool>) -> Self { |