Skip to content

Instantly share code, notes, and snippets.

View panzhongxian's full-sized avatar

Zhongxian Pan panzhongxian

View GitHub Profile
@pcgeek86
pcgeek86 / install_go_pi.sh
Last active February 24, 2024 19:35 — forked from random-robbie/install_go_pi.sh
Install Go Lang on Raspberry Pi
cd $HOME
FileName='go1.13.4.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@sakamoto-poteko
sakamoto-poteko / openssl-verify-rsa-signature.c
Last active November 18, 2020 15:37
OpenSSL verify RSA signature, read RSA public key from X509 PEM certificate
#include <stdio.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
void verifyRSASignature(unsigned char *originalMessage, unsigned int om_length,
unsigned char *signature, unsigned siglen)
{
int result;
FILE *file;
@zapthedingbat
zapthedingbat / logeverything.js
Created August 19, 2014 12:22
Log every function call to the console
(function() {
var call = Function.prototype.call;
Function.prototype.call = function() {
console.log(this, arguments);
return call.apply(this, arguments);
};
}());