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 | |
# | |
# it's a script that is supposed to remove ankama craziness from linux dofus version | |
# by downloading it's own wine and dxvk. | |
# adobe air uses direct 11 on windows 8+ and dofus uses adobe air | |
# | |
FILE_PATH=$(realpath $0) | |
DIR_PATH=$(dirname ${FILE_PATH}) |
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
# pulseaudio latency | |
watch -n 1 "pactl list sink-inputs | grep Latency" | |
# how to use ar | |
mkdir openjdk | |
for deb in jdk8-debs/*.deb ; do ar p ${deb} data.tar.xz | unxz | tar x -C openjdk; done | |
# ghost script convert to pdf |
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
# turn off hibenation | |
powercfg -h off | |
# turn on scripts | |
Get-ExecutionPolicy -List | |
Set-ExecutionPolicy -Scope CurrentUser Unrestricted | |
Set-ExecutionPolicy Unrestricted | |
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
# instructions supported by everything from this century (bulldozer(Steamroller)+, Sandy Bridge+) | |
# these good ones are not included -mxsavec -mxsaves -mavx2 | |
# these may slow down -ftree-vectorize -ftree-slp-vectorize | |
FLAGS_TEMP="-mtune=generic -O2 -g -pipe -fstack-protector-strong -fno-plt -frecord-gcc-switches -D_FORTIFY_SOURCE=2 -msse -msse2 -mssse3 -msse3 -msse4.1 -msse4.2 -mfpmath=sse -msse2avx -mavx -maes -mbmi -mbmi2 -mxsave -mxsaveopt -msahf -mprfchw -mcx16" | |
# | |
# these instructions are for everything usable | |
FLAGS_TEMP="-mtune=generic -O2 -g -pipe -fstack-protector-strong -fno-plt -frecord-gcc-switches -D_FORTIFY_SOURCE=2 -msse -msse2 -mssse3 -msse3 -msse4.1 -msse4.2 -mfpmath=sse -msse2avx -mavx -mavx2 -maes -mbmi -mbmi2 -mxsave -mxsavec -mxsaveopt -mxsaves -msahf -mprfchw -mcx16" | |
# | |
# the same but with some legacy flags | |
FLAGS_TEMP="-mtune=generic -O2 -g -pipe -fstack-protector-strong -fno-plt -frecord-gcc-switches -D_FORTIFY_SOURCE=2 -msse -msse2 -mssse3 -msse3 -msse4.1 -msse4.2 -mfpmath=sse -msse2avx |
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/pulseaudio -nF | |
# Save it as ~/.config/pulse/default.pa and configure aec_args to your needs | |
# load system configuration | |
.include /etc/pulse/default.pa | |
# add user modules | |
# for source_master run pacmd list-sources | grep -Po '(?<=name: \<).*(?=\>)' | |
# for sink_master run pacmd list-sinks | grep -Po '(?<=name: \<).*(?=\>)' |
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
#!/bin/bash | |
set -e | |
#path to songs folder | |
songs=$(readlink -f "songs") | |
saveto=$(readlink -f "songs-osz") | |
echo "your files will be in $saveto" | |
#create a dir | |
mkdir -p "$saveto" |
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
1. Store in a repository | |
flatpak-builder --force-clean build-dir --repo=/path/to/local/repo your.application.Client.yml | |
2. Install from the repository | |
flatpak --user install localrepo your.application.Client | |
3. Install the repository | |
flatpak --user remote-add --no-gpg-verify local-repo /path/to/repo | |
4. Store in a folder |