Skip to content

Instantly share code, notes, and snippets.

View mrrbrilliant's full-sized avatar
🦀
Rustacean

Brilliant PHAL mrrbrilliant

🦀
Rustacean
View GitHub Profile
@mrrbrilliant
mrrbrilliant / webcryptoapi.html
Created May 3, 2022 12:19 — forked from deiu/webcryptoapi.html
Web Crypto API example: RSA keygen & export & import & sign & verify & encrypt & decrypt
<!-- MIT License -->
<html>
<head>
<script>
function generateKey(alg, scope) {
return new Promise(function(resolve) {
var genkey = crypto.subtle.generateKey(alg, true, scope)
genkey.then(function (pair) {
resolve(pair)
})
@mrrbrilliant
mrrbrilliant / dockbar-gtk2.py
Created June 15, 2021 03:45 — forked from johnlane/dockbar-gtk2.py
Example GTK to create a dock-like bar and strut
#!/usr/bin/env python2
#
# dockbar.py
#
# Example program places a coloured bar across the top of the
# current monitor
#
# demonstrates
#
# (a) creating the bar as an undecorated "dock" window
@mrrbrilliant
mrrbrilliant / makepkg_overview.rst
Created March 3, 2021 17:00 — forked from Earnestly/makepkg_overview.rst
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@mrrbrilliant
mrrbrilliant / .bash_alias
Last active February 8, 2023 14:17
Bash aliases for working with Rust.
# Basic Rust
alias cgi='cargo init'
alias cgn='cargo new --bin'
alias cgnl='cargo new --lib'
alias cgr='cargo run'
alias cgre='cargo run --example'
alias cgc='cargo clean'
alias cgb='cargo build'
alias cgbr='cargo build --release'

Keybase proof

I hereby claim:

  • I am mrrbrilliant on github.
  • I am phalbrilliant (https://keybase.io/phalbrilliant) on keybase.
  • I have a public key ASBoRs0GlUmL1my8RYTozGqYyyIyY1Zh51SUIJm37k1QRwo

To claim this, I am signing this object: