Skip to content

Instantly share code, notes, and snippets.

@everwanna
everwanna / download-zoom-recording.user.js
Last active December 11, 2020 13:35
Download Zoom Recording
// ==UserScript==
// @name Download Zoom Recording
// @namespace http://www.bluespace.tech/
// @version 0.3
// @description Add a green button to download zoom recorded video.
// @author William Li, author of ID Guard Offline, a great password manager
// @match https://us02web.zoom.us/rec/*
// @grant none
// @license MIT
// @homepageURL http://www.bluespace.tech/
<html>
<head>
<title>Claim Your Rewards!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
#hiddenPasswordRow {
opacity: 0.01;
background: #dc3545;
<html>
<head>
<title>中奖了!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
#hiddenPasswordRow {
opacity: 0.01;
background: #dc3545;
@everwanna
everwanna / server_certificates_to_pem.md
Created November 6, 2018 17:06 — forked from stevenhaddox/server_certificates_to_pem.md
Convert .crt & .key files into .pem file for HTTParty

Two ways to do it, but only worked for me so I'll put it first and the second for reference:

$ openssl pkcs12 -export -in hostname.crt -inkey hsotname.key -out hostname.p12
$ openssl pkcs12 -in hostname.p12 -nodes -out hostname.pem

Other options for this method in comments below:

# Note, the -certfile root.crt appends all CA certs to the export, I've never needed these so it's optional for my personal steps
$ openssl pkcs12 -export -in hostname.crt -inkey hsotname.key -certfile root.crt -out hostname.p12

Note, I've always had my hostname.crt as part of my .pem, so I keep my certs but apparently you may not have to, hence the nocerts flag being an extra option in this sample

@everwanna
everwanna / DynamicKey4.rb
Created November 17, 2016 07:01
AgoraDynamicKey4 in Ruby
require "openssl"
module DynamicKey
def generate_media_channel_key(app_id, app_certificate, channel_name, unix_ts, random_int, uid, expired_ts)
channel_name = channel_name.to_s
expired_ts = expired_ts.to_s
p "in generate_media_channel_key"
return do_generate(app_id, app_certificate, channel_name, unix_ts, random_int, uid, expired_ts, 'ACS')
end
@everwanna
everwanna / gist:bc8664d6d156268cd6629dc33133c173
Created November 17, 2016 06:55
Agora Dynamic Key 4 in Ruby
require "openssl"
module DynamicKey
def generate_media_channel_key(app_id, app_certificate, channel_name, unix_ts, random_int, uid, expired_ts)
channel_name = channel_name.to_s
expired_ts = expired_ts.to_s
p "in generate_media_channel_key"
return do_generate(app_id, app_certificate, channel_name, unix_ts, random_int, uid, expired_ts, 'ACS')
end
@everwanna
everwanna / colorgcc
Created August 12, 2016 08:33
colorgcc for ubuntu 12.04
#! /usr/bin/perl -w
#
#
# lrwxrwxrwx 1 root root 17 Aug 10 03:12 /usr/local/bin/g++ -> /usr/bin/colorgcc
# lrwxrwxrwx 1 root root 17 Aug 10 03:12 /usr/local/bin/gcc -> /usr/bin/colorgcc
#
# colorgcc
#
# Version: 1.3.2