This file contains hidden or 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
| # /bin/bash | |
| # **be warned:** this might not work as an actual bash script | |
| # set up docker | |
| curl -fsSL https://get.docker.com -o get-docker.sh | |
| sudo sh get-docker.sh | |
| # create and add your user to the "docker" group | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER |
This file contains hidden or 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
| version: '3.4' | |
| services: | |
| mc: | |
| image: itzg/minecraft-server | |
| environment: | |
| EULA: "true" | |
| TYPE: PAPER | |
| SEED: "-7381235180058670651" | |
| CONSOLE: "false" |
This file contains hidden or 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
| worker_processes auto; | |
| events { | |
| use epoll; | |
| } | |
| http { | |
| log_format main '$remote_addr $remote_user [$time_local] "$request" ' | |
| '$status "$http_referer" "$http_user_agent"'; |
This file contains hidden or 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
| [Adblock Plus 2.0] | |
| ! Title: Honey Smart Shopping - Most Trackers Removed | |
| ! Expires: 2 days (update frequency) | |
| ! Homepage: https://www.joinhoney.com/ | |
| !Honey | |
| @@||joinhoney.com*$document | |
| @@||joinhoney.com*$elemhide | |
| ! | |
| ! Cash Back Trackers | |
| @@||joinhoney.com^* |
This file contains hidden or 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
| [0m[1;37m .-/+oossssoo+\-. | |
| `:+ssssssssssssssssss+:` | |
| -+ssssssssssssssssssyyssss+- | |
| .ossssssssssssssssss[0m[1;31mdMMMNy[0m[1;37msssso. | |
| /sssssssssss[0m[1;31mhdmmNNmmyNMMMMh[0m[1;37mssssss\ | |
| +sssssssss[0m[1;31mhm[0m[1;37myd[0m[1;31mMMMMMMMNddddy[0m[1;37mssssssss+ | |
| /ssssssss[0m[1;31mhNMMM[0m[1;37myh[0m[1;31mhyyyyhmNMMMNh[0m[1;37mssssssss\ | |
| .ssssssss[0m[1;31mdMMMNh[0m[1;37mssssssssss[0m[1;31mhNMMMd[0m[1;37mssssssss. | |
| +ssss[0m[1;31mhhhyNMMNy[0m[1;37mssssssssssss[0m[1;31myNMMMy[0m[1;37msssssss+ | |
| oss[0m[1;31myNMMMNyMMh[0m[1;37mssssssssssssss[0m[1;31mhmmmh[0m[1;37mssssssso |
This file contains hidden or 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
| $content = Get-Content -Path "$env:APPDATA\sunshineres-resolution.txt"; | |
| $height = ($content | Select-String 'h:').ToString() -replace '\D+', ''; | |
| $width = ($content | Select-String 'w:').ToString() -replace '\D+', ''; | |
| $fps = ($content | Select-String 'f:').ToString() -replace '\D+', ''; | |
| # for debug | |
| echo "qres /x:$width /y:$height /r:$fps" | Out-File -FilePath "$env:APPDATA\sunshineres-latest-rev-dbg.txt"; | |
| qres /x:$width /y:$height /r:$fps |
This file contains hidden or 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
| #!/bin/bash | |
| # Variables | |
| BASE_URL="https://johnvansickle.com/ffmpeg/builds" | |
| # 'git' or 'release' | |
| FF_VERSION="git" | |
| # See John's website for supported arches: https://johnvansickle.com/ffmpeg/ | |
| FF_ARCH='amd64' | |
| DOWNLOAD_DIR="$HOME/ffmpeg" | |
| FFMPEG_ARCHIVE="ffmpeg-$FF_VERSION-$FF_ARCH-static.tar.xz" |
This file contains hidden or 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
| import clsx from "clsx"; | |
| import React, { CSSProperties, useEffect, useRef, useState } from "react"; | |
| interface ScrollingTextProps { | |
| /// Any other class names you need to put inside this component | |
| className?: string; | |
| /// The text (or component) to put inside. It should be inline. | |
| text?: React.ReactNode; | |
| /// Width on either side to fade in px, if the text wraps around | |
| fadeWidth?: number; |
This file contains hidden or 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
| import React, { | |
| memo, | |
| useEffect, | |
| useCallback, | |
| useRef, | |
| useState, | |
| CSSProperties, | |
| } from "react"; | |
| export interface AnimatedCounterProps { |
This file contains hidden or 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
| #!/bin/bash | |
| # Generate a CMAF streamable HLS/DASH manifest from any audio file. | |
| # You will need FFmpeg and Bento4 in your PATH. | |
| # Get binaries here: https://ffmpeg.org https://www.bento4.com/ | |
| # array of kbps to transcode to opus to mp4 | |
| # use below as a 'magic number' to use FLAC instead of Opus | |
| magic_number=1000 |