Skip to content

Instantly share code, notes, and snippets.

View andrewc12's full-sized avatar

Andrew Innes andrewc12

  • Perth, Australia
View GitHub Profile
#include <cstddef>
#include <cstdint>
#include <functional>
#include <iostream>
int main(int argc, char* argv[]) {
uint32_t b1 = 4842;
int32_t b2 = 466668424;
size_t haash;
// Hash each member and combine them
namespace std
{
// Needed to use ESM::FormId as a key in std::unordered_map
template <>
struct hash<ESM::FormId>
{
size_t operator()(const ESM::FormId& formId) const
{
// Hash each member and combine them
{
"_name_or_path": "openai/whisper-tiny",
"activation_dropout": 0.0,
"activation_function": "gelu",
"apply_spec_augment": false,
"architectures": [
"WhisperForConditionalGeneration"
],
"attention_dropout": 0.0,
"begin_suppress_tokens": null,
@andrewc12
andrewc12 / run.py
Last active November 14, 2024 23:28
pip install virtualenv

python -m venv andrew_whisper

andrew_whisper\Scripts\activate
pip install transformers datasets tensorboard soundfile librosa
#!/usr/bin/python
# CreateFile share mode
from winfstest import *
name = uniqname()
with expect_task("CreateFile %s GENERIC_WRITE FILE_SHARE_READ 0 CREATE_ALWAYS FILE_ATTRIBUTE_NORMAL 0" % name, 0):
expect("CreateFile %s GENERIC_READ FILE_SHARE_READ 0 OPEN_EXISTING 0 0" % name, "ERROR_SHARING_VIOLATION")
test5
2024-09-13 03:54:28,115 - tests.tests - DEBUG - Path: D:\a\openzfs\openzfs
2024-09-13 03:54:28,615 - tests.tests - DEBUG - Physical devices: {'\\\\.\\PHYSICALDRIVE1': 'Virtual HD ATA Device', '\\\\.\\PHYSICALDRIVE0': 'Virtual HD ATA Device'}
2024-09-13 03:54:35,895 - tests.tests - INFO - ============================================================
2024-09-13 03:54:35,895 - tests.tests - INFO - Running test: create zpool backed by single file
2024-09-13 03:54:36,520 - tests.tests - INFO - Drive letters after test01 pool create: {'test01': WindowsPath('E:/')}
zunmount(test01,E:/) running
zunmount(test01,E:/) returns 0
2024-09-13 03:54:36,582 - tests.tests - INFO - ============================================================
2024-09-13 03:54:36,582 - tests.tests - INFO - Running test: create zpool backed by two files
@andrewc12
andrewc12 / latex_hide_figure.tex
Created December 24, 2020 08:12 — forked from asalt/latex_hide_figure.tex
How to hide whole sections in a latex document.
%http://tex.stackexchange.com/questions/77920/comment-package-excludecomment-gives-error
\documentclass[12pt]{article}
\usepackage{todonotes} % \missingfigure
\usepackage{comment} % to exclude whole sections when I want to
\newif\ifshow % toggle true or false based on if want to hide section
%\showtrue % show the sections
\showfalse % hide the sections
\ifshow
@andrewc12
andrewc12 / build.sh
Created October 21, 2020 02:28 — forked from superboum/LICENCE.txt
Install Debian with Debootstrap + Grub EFI
#!/bin/bash
set -e # Exit on error
DEVICE=$1
[ -z "${DEVICE}" ] && echo "Usage $0 /dev/sdX" && exit 1
udevadm info -n ${DEVICE} -q property
echo "Selected device is ${DEVICE}"
read -p "[Press enter to continue or CTRL+C to stop]"
@andrewc12
andrewc12 / .gntrc
Created May 9, 2018 10:23 — forked from kabturek/.gntrc
finch config for irssi layout ~/.gntrc
[general]
shadow = 0
# There is experimental mouse support
mouse = 0
# To use some custom window-manager
wm = /usr/lib/gnt/irssi.so
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.