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/env bash | |
# Require root to run | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit 0 | |
fi | |
# [PlayOnLinux] - disables protection against the usage of Ptrace | |
# https://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html |
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
WINEARCH=win64 WINEPREFIX=$HOME/.PlayOnLinux/wineprefix/Photoshop/ winetricks \ | |
atmlib flash \ | |
corefonts gdiplus \ | |
msxml3 msxml6 \ | |
mfc42 vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 \ | |
d3dx9 d3dcompiler_43 quartz \ | |
devenum \ | |
vsm=3 \ | |
fontsmooth=gray \ | |
ddr=opengl \ |
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
Install-Module VSSetup -Scope CurrentUser |
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
https://easylist-downloads.adblockplus.org/antiadblockfilters.txt | |
https://easylist-downloads.adblockplus.org/easyprivacy.txt | |
https://easylist-downloads.adblockplus.org/ruadlist+easylist.txt | |
https://easylist-downloads.adblockplus.org/easylistitaly.txt | |
https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt | |
https://gist.githubusercontent.com/salaros/76c61448763c8f5ddd8366dbd8a900af/raw/salaros-custom-filter.txt |
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
# Cleans up old logs messages from journal | |
sudo journalctl --vacuum-time=2d | |
# Remove APT package cache | |
sudo apt clean | |
# Remove current Linux user's cache | |
rm -rf $HOME/.cache/* |
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
pg_dump -Fc --no-owner --no-privileges --no-tablespaces --clean --schema public --dbname=postgresql://username1:password1@localhost/dbname1 > /tmp/dbname1.bak | |
pg_restore -Fc --dbname=postgresql://username2:password2@localhost/dbname2 /tmp/dbname1.bak | |
rm -rfv /tmp/dbname1.bak |
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 add-apt-repository ppa:elementary-os/daily | |
sudo apt install -qy io.elementary.sound-theme pantheon-files pantheon-terminal | |
# Disable sounds events | |
# gsettings set org.gnome.desktop.sound event-sounds false | |
gsettings set org.gnome.desktop.sound theme-name elementary | |
# Don't show icons on the desktop | |
# gsettings set org.gnome.desktop.background show-desktop-icons false |
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
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
cd "${SCRIPTPATH}" | |
sudo apt install libsdl2-2.0-0 libsdl2-2.0-0:i386 \ | |
libcurl3-gnutls libcurl3-gnutls:i386 \ | |
libxi-dev libxmu-dev | |
mkdir -pv QtLibs_bak && mv -v *Qt*.so* QtLibs_bak/ | |
LD_LIBRARY_PATH=$(pwd) ./mbw_config_linux |
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
git fsck | |
git repack -ad | |
git gc --prune=now | |
git gc --aggressive | |
git fsck |
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
/// <summary> | |
/// In absence of <see cref="T:Microsoft.Extensions.Localization"/> and <see cref="T:Microsoft.Extensions.DependencyInjection"/> | |
/// on .NET Framework < 4.6.1 this class provides an easy access to localized resources | |
/// </summary> | |
/// <seealso cref="IDisposable" /> | |
/// <inheritdoc /> | |
public class StringLocalizer : IDisposable | |
{ | |
protected ResourceManager resourceManager; |