Skip to content

Instantly share code, notes, and snippets.

View bravecorvus's full-sized avatar
💭
磨穿鉄硯

Andrew Lee bravecorvus

💭
磨穿鉄硯
View GitHub Profile
@huyinghuan
huyinghuan / aes.go
Created September 5, 2018 00:49 — forked from willshiao/aes.go
AES 256-CFB in Node.js and Golang
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/base64"
"fmt"
"io"
@rkuzsma
rkuzsma / gist:b9a0e342c56479f5e58d654b1341f01e
Last active May 18, 2024 15:40
Example Kubernetes yaml to pull a private DockerHub image
Step by step how to pull a private DockerHub hosted image in a Kubernetes YML.
export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/
export DOCKER_USER=Type your dockerhub username, same as when you `docker login`
export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login`
export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login`
kubectl create secret docker-registry myregistrykey \
--docker-server=$DOCKER_REGISTRY_SERVER \
--docker-username=$DOCKER_USER \
@henrik
henrik / _README.md
Created March 3, 2016 22:57
"Send on Facebook Messenger" command for Alfred.app.

Send on Messenger

Usage

Assumes you have node.js and npm.

Once, on install

Create a file ~/.facebook-auth containing your login email and password in the format me@example.com:my-password.

@oleq
oleq / _README.md
Last active September 7, 2024 13:11
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
 |