I hereby claim:
- I am feedsbrain on github.
- I am feedsbrain (https://keybase.io/feedsbrain) on keybase.
- I have a public key ASDS_h_DKOpIAhkLmWyZgs2ZpV60mtMPOCrHgKodxFRGnwo
To claim this, I am signing this object:
#r "Microsoft.WindowsAzure.Storage" | |
using Microsoft.WindowsAzure.Storage.Blob; | |
using System.Diagnostics; | |
using System.IO; | |
public static async Task Run(Stream myBlob, string name, Binder binder, TraceWriter log) | |
{ | |
log.Info($"Jordan C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes"); |
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<system.webServer> | |
<webSocket enabled="false" /> | |
<handlers> | |
<!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module --> | |
<add name="iisnode" path="server.js" verb="*" modules="iisnode" /> | |
</handlers> | |
<rewrite> | |
<rules> |
const express = require('express') | |
const path = require('path') | |
const fs = require('fs') | |
const app = express() | |
const staticRoot = path.resolve() // this is you app root | |
app.set('port', process.env.PORT || 3000) | |
app.use(express.static(staticRoot)) | |
app.use(function (req, res, next) { | |
// if the request is not html then move along |
#!/bin.bash | |
sudo apt install git dkms | |
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux | |
cd rtl8812AU_8821AU_linux | |
git checkout 4235b0e | |
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile | |
sed -i 's/CONFIG_PLATFORM_ARM_JET_NANO = n/CONFIG_PLATFORM_ARM_JET_NANO = y/g' Makefile | |
sed -i 's/install -m/install --force -m/g' Makefile.dkms | |
sudo make -f Makefile.dkms install |
#!/bin/bash | |
# Taken from: https://red-full-moon.com/make-hevc-qsv-env-first-half/ | |
# 環境の最新化 | |
sudo apt update | |
sudo apt dist-upgrade | |
# 必要パッケージのインストール | |
sudo apt install cmake make autoconf automake libtool g++ bison libpcre3-dev pkg-config libtool libdrm-dev xorg xorg-dev openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev libpciaccess-dev libfdk-aac-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev ocl-icd-opencl-dev pkg-config yasm libx11-xcb-dev libxcb-dri3-dev libxcb-present-dev libva-dev libmfx-dev intel-media-va-driver-non-free opencl-clhpp-headers | |
# libvaのインストール |
const cssLoaderConfig = require('@zeit/next-css/css-loader-config') | |
module.exports = (nextConfig = {}) => { | |
return Object.assign({}, nextConfig, { | |
webpack(config, options) { | |
if (!options.defaultLoaders) { | |
throw new Error( | |
'This plugin is not compatible with Next.js versions below 5.0.0 https://err.sh/next-plugins/upgrade' | |
) | |
} |
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
var img = new Image(); | |
img.onload = function () { | |
// set size proportional to image | |
canvas.height = canvas.width * (img.height / img.width); | |
// step 1 - resize to 50% |