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
| # 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 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
| # turn off hibenation | |
| powercfg -h off | |
| # turn on scripts | |
| Get-ExecutionPolicy -List | |
| Set-ExecutionPolicy -Scope CurrentUser Unrestricted | |
| Set-ExecutionPolicy Unrestricted | |
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
| # 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 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
| #!/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 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
| 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 |