Skip to content

Instantly share code, notes, and snippets.

View unfernandito's full-sized avatar
🏠
Working from home

Luis Fernando unfernandito

🏠
Working from home
  • @ank.app
  • Argentina
View GitHub Profile
@unfernandito
unfernandito / ecdsa.js
Created October 28, 2016 20:46
Code For Auth ECDSA
// Try API v2 Signature
if (version === 2) {
var hexkey = new Buffer(key, 'base64').toString('hex');
var hexsig = new Buffer(signature, 'base64').toString('hex');
var checkSign = new jscrypto.Signature({
'alg': 'SHA256withECDSA',
'prov': 'cryptojs/jsrsa'
});
checkSign.initVerifyByPublicKey({
'ecpubhex': hexkey,
#!/bin/bash
set -e
#### Hack RaspberryPi (Zero W bcm43430's) or (3B+ bcm43455c0's) driver for WiFi
##
is_pizero() {
grep -q "^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[9cC][0-9a-fA-F]$" /proc/cpuinfo
return $?
@unfernandito
unfernandito / kind-metrics-server.yaml
Created May 27, 2020 19:12 — forked from hjacobs/kind-metrics-server.yaml
Metrics Server API deployment manifests for Kubernetes kind
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system:aggregated-metrics-reader
labels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules:
- apiGroups: ["metrics.k8s.io"]