Skip to content

Commit

Permalink
dump some scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom committed Oct 13, 2022
1 parent ed5f20e commit 1cb338f
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 12 deletions.
Empty file modified einstein
100644 → 100755
Empty file.
Empty file modified einstein-setup.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion lineage4microg-build-surya-OFFICIAL.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker run \
sudo docker run \
-e "BRANCH_NAME=lineage-18.1" \
-e "DEVICE_LIST=surya" \
-e "SIGN_BUILDS=true" \
Expand Down
15 changes: 15 additions & 0 deletions lineage4microg-gmscompat-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


docker run \
-e "BRANCH_NAME=lineage-19.1" \
-e "DEVICE_LIST=surya" \
-e "SIGN_BUILDS=true" \
-e "SIGNATURE_SPOOFING=restricted" \
-e "WITH_GMS=true" \
-v "/mnt/storage/lineageos4microg/lineage:/srv/src" \
-v "/mnt/storage/lineageos4microg/zips:/srv/zips" \
-v "/mnt/storage/lineageos4microg/logs:/srv/logs" \
-v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \
-v "/home/wizzdom/keys:/srv/keys" \
-v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \
lineageos4microg/docker-lineage-cicd
5 changes: 5 additions & 0 deletions lol-rpc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
export WINEFSYNC=1
export WINEESYNC=1
export WINEPREFIX=/mnt/storage/Games/league-of-legends
/home/wizzdom/.local/share/lutris/runners/wine/lutris-ge-lol-7.0-4-x86_64/bin/wine /opt/wine-discord-ipc-bridge/winediscordipcbridge.exe
2 changes: 1 addition & 1 deletion nvidia-oc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sudo nvidia-xconfig --cool-bits=28

# Raise GPU's TDP (power) limit to max:
sudo nvidia-smi -pl 75
sudo nvidia-smi -pl 35

# Apply GPU clocks from /etc/nvoc.d/gpu0.conf :
nvoc --apply
8 changes: 8 additions & 0 deletions nvidia-oc-1050
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Enable Overclock and cooling options using coolbits:
sudo nvidia-xconfig --cool-bits=28

# Raise GPU's TDP (power) limit to max:
sudo nvidia-smi -pl 75

# Apply GPU clocks from /etc/nvoc.d/gpu0.conf :
nvoc --apply
7 changes: 7 additions & 0 deletions start-otd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

TABLET_NAME="Wacom"

xinput list | grep $TABLET_NAME | sed &%^^%&something | xinput disable -

systemctl --user start opentabletdriver
11 changes: 1 addition & 10 deletions start-virtual-cam.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
#!/bin/sh
LABEL="Virtual Cam"
NOHUP=1
sudo modprobe v4l2loopback video_nr=5 card_label="$LABEL" exclusive_caps=1
if [ $NOHUP = 1 ];
then
nohup ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5 &
elif [ $NOHUP = 0 ]
then
ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5
else
echo "Error: incorrect NOHUP value"
fi
ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5
24 changes: 24 additions & 0 deletions windows-vm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

VMNAME=win10

echo "Starting virtual machine:" $VMNAME "..."
sudo virsh start $VMNAME
echo "Started."

echo "Starting Ccream audio device with IVSHMEM interface..."
scream -m /dev/shm/scream-ivshmem -t 10 &
echo "done."

sleep 2s

echo "Starting Looking Glass for graphical display"
looking-glass-client spice:alwaysShowCursor=yes

# echo "Shutting down Scream audio device..."
# killall scream
# echo "done."

# echo "Shutting down virtual machine:" $VMNAME "..."
# sudo virsh shutdown $VMNAME
# echo "done."

0 comments on commit 1cb338f

Please sign in to comment.