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 | |
| #https://github.com/alvr-org/ALVR/wiki/Building-From-Source | |
| cargo xtask prepare-deps --no-nvidia | |
| cargo xtask build-server --release | |
| export JAVA_HOME=/usr/lib/jvm/default/ | |
| export ANDROID_HOME=/opt/android-sdk/ | |
| export ANDROID_NDK_HOME=/opt/android-sdk/ndk/25.2.9519653/ |
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
| sudo archlinux-java set java-8-openjdk | |
| sudo ${ANDROID_HOME}/tools/bin/sdkmanager _whatever_ | |
| sudo archlinux-java set java-11-openjdk |
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 | |
| # discordencode - encodes a video file to under 8MiB for Discord | |
| #VF="scale=1280:-2" | |
| usage () { | |
| echo "Usage: [WEBM=1] [VCODEC=libx264] [ACODEC=aac] [VF=filter] [NOAUDIO=1] [VPRESET=x264-preset] $0 input output.mp4" | |
| } | |
| if [ -z "$1" ] | |
| then | |
| usage | |
| exit 1 |
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 | |
| env __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink $@ |
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
| // | |
| #pragma pattern_limit 0x20000 | |
| #pragma array_limit 0x20000 | |
| #include <std/mem.pat> | |
| #include <std/io.pat> | |
| #include <std/string.pat> | |
| #define MAX_NUM_LODS 8 |
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
| SDL_GAMECONTROLLERCONFIG="030000004c050000e60c000000016800,PS5 Controller but triggers and shoulders are swapped,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b4,guide:b5,start:b6,leftstick:b7,rightstick:b8,leftshoulder:a4,rightshoulder:a5,dpup:b11,dpdown:b12,dpleft:b13,dpright:b14,misc1:b16,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b9,righttrigger:b10," GDK_BACKEND=x11 MESA_NO_ERROR=1 pcsx2 |
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
| pkgname=fuck-you-tracker | |
| pkgver=69 | |
| pkgrel=666 | |
| epoch=420 | |
| pkgdesc='fixes tracker3-miners memory leak' | |
| arch=('any') | |
| provides=('tracker3-miners') | |
| conflicts=('tracker3-miners') |
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
| mogrify -format jpg *.png |
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
| export TIMETRIM="-ss 00:16 -to 00:24" | |
| export SIZE_X=696 | |
| export SIZE_Y=696 | |
| export POS_X=611 | |
| export POS_Y=65 | |
| export SCALEX=300 | |
| export SCLAEY=-1 | |
| export FPS=20 | |
| export FILTERS="[0:v]crop=$SIZE_X:$SIZE_Y:$POS_X:$POS_Y[vid];[vid]scale=$SCALEX:$SCLAEY:flags=lanczos[vid]" #"[0:v]crop=1103:621:444:242[vid]" |
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 | |
| # https://video.stackexchange.com/questions/24479/how-to-encode-for-youtube-with-ffmpeg | |
| ffmpeg -framerate 60 -i vidname_%04d.jpg -i vidname_.WAV -ss 00:00:10 -vf yadif,format=yuv422p -force_key_frames expr:gte\(t\,n_forced/2\) -c:v libx264 -b:v 60M -bf 2 -c:a aac -q:a 1 -ac 2 -ar 44100 -use_editlist 0 -movflags +faststart vidname.mp4 |