Skip to content

Instantly share code, notes, and snippets.

@nottux
nottux / gist:7a864489a7d2f039121648c532ce2fbf
Created October 3, 2019 09:04
Overwatch Highlight export, Metedata via MediaInfo: WEBM ULTRA 60FPS 4K 1X SUPER SAMPLING
General
Count : 332
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Inform : WebM: 206 MiB, 24 s 700 ms
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : VP8
@nottux
nottux / kdeconnectd
Last active October 9, 2019 11:50
kdeconnectd disabling auto-start but still being able to launch it manually solution
if [ "$1" = run ]
then echo "press Ctrl+C to stop"
a=$(mktemp -d)
sudo -E su -c "cp /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd $a;chmod -R 777 $a;su $USER -c $a/kdeconnectd&su $USER -c kdeconnect-indicator"
rm -rfv $a
fi
if [ "$1" = disable ]
then sudo chmod -x /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
fi
if [ "$1" = enable ]
@nottux
nottux / opencl-amd_aur_ubuntu.bash
Last active October 19, 2023 20:23
bash implementation of opencl-amd AUR package, Install opencl amdgpu amdgpu-pro opencl only. Supports ubuntu and others with standard prefix
#!/bin/bash
# DO NOT run the line 167 standalone. It will remove the necessary files besides the junk!
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h\|\-\-no\-deb\|\-\-no\-install\|\-\-no\-cleaning\|\-\-assume\-debian"
then :
else echo wrong entry\(ies\) !
help=yes
fi
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h" || [ "$help" = yes ]
@nottux
nottux / output_log__2019-12-04__19-31-22.txt
Created December 4, 2019 17:53
bug report for 7 days to die 18A, vulkan linux
Found path: /home/utku/took/happytosharemysteamapps/steamapps/common/7 Days To Die/7DaysToDie.x86_64
Mono path[0] = '/home/utku/took/happytosharemysteamapps/steamapps/common/7 Days To Die/7DaysToDie_Data/Managed'
Mono config path = '/home/utku/took/happytosharemysteamapps/steamapps/common/7 Days To Die/7DaysToDie_Data/MonoBleedingEdge/etc'
Preloaded 'ScreenSelector.so'
Preloaded 'libMagick.so'
Preloaded 'libMouseLib.so'
Preloaded 'libeac_server.so'
Preloaded 'libeasyanticheat.so'
Preloaded 'libgetrss.so'
Preloaded 'libsteam_api.so'
@nottux
nottux / boing
Created January 23, 2020 23:09
My boinc script that launches with two gpu's if argument passed
#! /bin/bash
b=/dev/shm/cc_config_boing.xml
echo -e '<!--\nThis is a minimal configuration file cc_config.xml of the BOINC core client.\nFor a complete list of all available options and logging flags and their\nmeaning see: https://boinc.berkeley.edu/wiki/client_configuration\n-->\n<cc_config>\n <log_flags>\n <task>1</task>\n <file_xfer>1</file_xfer>\n <sched_ops>1</sched_ops>\n </log_flags>\n <options>'>$b
if [ "$1" = "$a" ]
then echo ' <ignore_ati_dev>0</ignore_ati_dev>'>>$b
fi
echo -e ' <use_all_gpus>1</use_all_gpus>\n </options>\n</cc_config>\n'>>$b
cd /home/utku3/BOINC
boincmgr&boinc
@nottux
nottux / fred
Created January 23, 2020 23:19
script to grep .bash_history
if [ "$2" = "$a" ]
then grep $1 $HOME/.bash_history
else grep $1 /home/$2/.bash_history
fi
@nottux
nottux / A515-41G-T48Q.txt
Last active May 30, 2020 23:42
https://www.linux-on-laptops.com , ACER ASPIRE 5 A515-41G-T48Q
Acer Aspire 5 A515-41G-T48Q , BIOS : 1.09, Pop!_OS 19.10/19.04, Linux kernels newer than 5.3.0-050300rc1-generic (see https://bugzilla.kernel.org/show_bug.cgi?id=201077)
https://www.linux-on-laptops.com
##############PROBLEMATIC STUFF##################
Sleep sometimes work, sometimes it hangs while waking up. This happens on some kernel versions
Some kernel versions also broke things or render laptop useless, however as of 5.6 everything seems fine again
#################################################
##############WORKING STUFF######################
AMD RADEON RX 540 discrete gpu: Work as intended (Only powers on when a program is launched with DRI_PRIME=1, Power dpm state can be forced), may need thermal paste change
@nottux
nottux / gamemode.ini
Last active January 10, 2021 16:27
My gamemode.ini file
[general]
; The reaper thread will check every 5 seconds for exited clients and for config file changes
reaper_freq=5
; The desired governor is used when entering GameMode instead of "performance"
desiredgov=performance
; The default governer is used when leaving GameMode instead of restoring the original value
defaultgov=powersave
; GameMode can change the scheduler policy to SCHED_ISO on kernels which support it (currently
@nottux
nottux / powsav.sh
Last active March 22, 2021 16:01
That's how you save power
#!/bin/bash
if ls /tmp/fr_powsav.sh &>/dev/null
#credits to "Ric Klaren" @askubuntu.com https://askubuntu.com/a/1026527/928621
then HIDDEVICES=$(ls /sys/bus/usb/drivers/usbhid | grep -oE '^[0-9]+-[0-9\.]+' | sort -u)
for i in $HIDDEVICES; do
echo -n "Enabling " | cat - /sys/bus/usb/devices/$i/product
echo 'on' | sudo tee /sys/bus/usb/devices/$i/power/control >/dev/null
done
@nottux
nottux / what happened to mima touhou.txt
Created March 7, 2020 16:47
what happened to mima touhou.txt
based on https://twitter.com/KaliningradG/status/1235698723310710785?s=20
mima decided to be an FOSS advocate and since been found crying in a corner because zun has copyight on her and zun likes beer money woouhou 🍺
She found playing taisei sometimes but she is really broken you know :(
She wants to forgetten and recreated with no colleration to zun zun wouhou project.