Skip to content

Instantly share code, notes, and snippets.

View aomi's full-sized avatar
🇯🇵

Aomi aomi

🇯🇵
View GitHub Profile
@aomi
aomi / scan_ch_mirakc_docker.sh
Created January 22, 2024 08:19 — forked from uru2/scan_ch_mirakc_docker.sh
docker mirakcコンテナーを利用したmirakc用チャンネルスキャン
#!/bin/sh
# mirakc channel scan (using mirakc docker container image)
# by uru (https://twitter.com/uru_2)
#
# require:
# docker
# jq
set -eu
export LANG=C.UTF-8
@aomi
aomi / banner_poc.js
Last active March 8, 2022 07:10
A proof of concept going through how to query Banner
import axios from "axios";
const ROOT_URL = "https://banner.uvic.ca";
const BANNER_SSB_URL = `${ROOT_URL}/StudentRegistrationSsb/ssb`;
const BANNER_SSB_SEARCH_URL = `${BANNER_SSB_URL}/classSearch/`;
const BANNER_SSB_SEARCH_GET_SUBJECTS = `${BANNER_SSB_SEARCH_URL}/get_subject`;
const BANNER_SSD_SEARCH_RESULTS_URL = `${BANNER_SSB_URL}/searchResults/searchResults`;
const BANNER_SSB_GET_TERMS = `${BANNER_SSB_URL}/classSearch/getTerms`;
const getTerms = async (searchTerm, offset, max) => {
@aomi
aomi / notes.md
Last active December 26, 2020 02:46
Enabling Hardware Video Decode Acceleration on Firefox (Fedora 33 Workstation)

Enabling Hardware Video Decode Acceleration on Firefox (Fedora 33 Workstation)

Mostly for those who run into issues and for myself.

  • CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  • GPU0: Intel(R) HD Graphics 630
  • GPU1: NVIDIA GTX 1050
  • Firefox: 84.0 x86-64
  • Linux: Linux 5.9.15-200.fc33.x86_64 #1 SMP Wed Dec 16 19:14:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
sudo dnf install zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#/bin/bash
# fetch latest version detail from CAIDA code repository.
SC_VER=`curl https://www.caida.org/tools/measurement/scamper/code/ | sed -n -E 's/.*(href|src)="([^"]*).*/\2/p' | grep "scamper-cvs*" | sort -r | head -n1 | cut -f 1 -d '.'`
echo "install $SC_VER..."
echo "downloading scamper from CAIDA"
# for Debian based systems.
SC="https://www.caida.org/tools/measurement/scamper/code/$SC_VER.tar.gz"
@aomi
aomi / scamper-setcap.sh
Last active January 23, 2019 06:08
scamper Capabilities
setcap cap_net_raw,cap_sys_chroot,cap_setgid,cap_setuid+ep /usr/local/bin/scamper