Skip to content

Instantly share code, notes, and snippets.

View nathanagez's full-sized avatar
🗳️
Building stuff

Nathan Agez nathanagez

🗳️
Building stuff
View GitHub Profile
@nathanagez
nathanagez / Robin.md
Last active February 7, 2024 13:28
Robin

@nathanagez
nathanagez / DashWidevineBuyDRM.html
Created January 19, 2023 12:29
Dash.js Widevine DRM - BuyDRM implementation
<!DOCTYPE html>
<html>
<head>
<title>KeyOS Test Player - Dash.js</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"></script>
</head>
<body>
<div style="font-size: 8px; font-family: Verdana;">
<video controls></video>
</div>
@nathanagez
nathanagez / ShakaPlayerAppleFairPlayBuyDRM.html
Created January 19, 2023 12:26
Shaka Player Apple Fairplay - BuyDRM implementation
<!DOCTYPE html>
<html>
<head>
<!-- Shaka Player compiled library: -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/shaka-player/4.3.3/shaka-player.compiled.debug.min.js"
integrity="sha512-wTnBx6lDjouPRTLQUxGz9Djs/+d5m2XsIbCyxZe7H2mVCImlKjx+PcuLisTDPQD5uSq+eNrdOtZtu08zrkHLMA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
@nathanagez
nathanagez / CloudFrontClientForMediaPackage.ts
Created November 15, 2022 14:28 — forked from nikaera/CloudFrontClientForMediaPackage.ts
CloudFront client for MediaPackage
import { CloudFront } from "aws-sdk";
import * as url from "url";
import { CreateDistributionWithTagsResult, GetDistributionResult, UpdateDistributionResult } from "aws-sdk/clients/cloudfront";
export class CloudFrontClient {
private cloudFront: CloudFront;
constructor() {
this.cloudFront = new CloudFront({
@nathanagez
nathanagez / SingleTableAppSync.md
Created February 8, 2022 12:49 — forked from dabit3/SingleTableAppSync.md
GraphQL Single Table Design with DynamoDB and AWS AppSync

GraphQL

GraphQL Schema

type Customer {
  id: ID!
  email: String!
}
# Amplify Auth config
REACT_APP_IDENTITY_POOL_ID=""
REACT_APP_REGION=""
REACT_APP_USER_POOL_ID=""
REACT_APP_USER_POOL_WEBCLIENT_ID=""
REACT_APP_API=""
@nathanagez
nathanagez / GIF-Screencast-OSX.md
Created May 1, 2020 22:40 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@nathanagez
nathanagez / 800ans-events.json
Last active March 4, 2020 13:01
800ans Events
{
"events": [
{
"startDate": "05/03/2020",
"endDate": "05/03/2020",
"title": "Jeudi de l'UM"
},
{
"startDate": "09/03/2020",
"endDate": "27/03/2020",
@nathanagez
nathanagez / blih.py
Created September 16, 2019 12:24
blih EPITECH
#!/usr/bin/env python3.7
import os
import sys
import getopt
import hmac
import hashlib
import urllib.request
import urllib.parse
import json