This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
Template = namedtuple( | |
"Template", | |
("prologue", "system", "user", "assistant", "epilogue", "flags"), | |
defaults=((),), | |
) | |
templates = { | |
"Airoboros-v1.2": Template( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube audio compressor | |
// @namespace https://eaguru.guru/ | |
// @version 0.5.2 | |
// @description Adds an audio compressor option to YouTube videos. Now with over-engineering! Based on code by Vivelin and Wareya. | |
// @author notwa | |
// @match https://*.youtube.com/* | |
// @updateURL https://gist.github.com/notwa/9b8466b0c2ca48d756afcd02a5e43739/raw/YouTube%2520audio%2520compressor.user.js | |
// @run-at document-idle | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG ACES_CONTAINER_COMMIT=7a4e21e142fe46ac300ce047e614e8dbafa873cf | |
ARG RAWTOACES_COMMIT=8a868b0aa03ecf56d167fb9e725807a282118ce9 | |
ARG CERES=ceres-solver-1.14.0 | |
ARG CERES_SHA256=4744005fc3b902fed886ea418df70690caa8e2ff6b5a90f3dd88a3d291ef8e8e | |
ARG CERES_CMAKE="-DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF" | |
FROM ubuntu:bionic AS builder | |
RUN rm -f /etc/apt/apt.conf.d/docker-clean && apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if false; then | |
: | |
elif [ "$name" = "apprentice" ]; then # from apprentice | |
# Apprentice by romainl | |
ForegroundColour '#BCBCBC' | |
BackgroundColour '#262626' | |
CursorColour '#FFFFFF' | |
Black '#262626' | |
Red '#5F8787' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# run this shell script with one of these shells: | |
# zsh, bash, dash, or (busybox) ash. | |
set -e | |
# false # this exits the shell immediately. | |
# false || false # this exits as well. | |
false && true # wait, what? | |
! true # huh? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
ffmpeg -i mpv-shot%4d.png -filter_complex "\ | |
select=between(n\,20\,39),setpts=PTS-STARTPTS,\ | |
crop=1920:768:0:100,\ | |
scale=600:-1,\ | |
split=2[palette_in][gif];\ | |
[palette_in]palettegen[palette_out];\ | |
[gif]fifo[gif_fifo];\ | |
[gif_fifo][palette_out]paletteuse\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/c10/macros/Macros.h | |
+++ b/c10/macros/Macros.h | |
@@ -287,12 +287,12 @@ | |
defined(__HIP_ARCH__) || defined(__HIP__) | |
__host__ __device__ | |
#endif // __CUDA_ARCH__ | |
- void | |
+ _Noreturn void | |
__assert_fail( | |
const char* assertion, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance Force | |
#IfWinActive ahk_exe Phasmophobia.exe | |
Return | |
; 1 = D.O.T.S Projector | |
; 2 = EMF Reader | |
; 3 = Flashlight | |
; 4 = Ghost Writing Book | |
; 5 = Spirit Box | |
; 6 = UV Light |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ash | |
echo2() { | |
local IFS=" " | |
printf "%s\n" "$*" >&2 | |
} | |
note() { | |
local IFS=" " | |
printf "\033[1m%s\033[0m\n" "$*" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this code generated the text at https://wiki.cloudmodding.com/mm/File_List/U_1.0 | |
from struct import unpack | |
# you'll probably want to change these: | |
filenames_filepath = "fn M US10.txt" | |
dmadata_filepath = "dump/mm-US10-d6133ace5afaa0882cf214cf88daba39e266c078/0002 V0001A500" | |
def readu32(f): | |
return unpack(">I", f.read(4))[0] |
NewerOlder