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
import importlib.metadata | |
import subprocess | |
import sys | |
def check_and_install(package_or_file, file=False): | |
if file: | |
with open(package_or_file, 'r') as file: | |
packages = file.readlines() | |
else: | |
packages = [package_or_file] |
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
def check_and_install(package): | |
try: | |
importlib.metadata.version(package) | |
print(f"Package {package} already installed ... ✅") | |
except importlib.metadata.PackageNotFoundError: | |
subprocess.check_call([sys.executable, '-m', 'pip', 'install', package]) | |
#use: | |
#check_and_install("langchain") |
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 | |
cd /tmp | |
wget https://gist.githubusercontent.com/rhoconlinux/36e7e64485ea76cecae8ef0b919b577f/raw/bcffec6b90faaad3ce4acf8d3e115aa65e75c815/marp.desktop | |
cp marp.desktop ~/.local/share/applications | |
chmod +x ~/.local/share/applications/marp.desktop |
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
[Desktop Entry] | |
Version=1.0 | |
Terminal=false | |
Type=Application | |
Name=Marp | |
Exec=/opt/Marp/marp | |
Icon=/opt/Marp/marp.png | |
NoDisplay=true | |
StartupWMClass=marp |
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
wget https://github.com/rhoconlinux/algunas-cosas-sueltas/raw/master/icon-fixes/Spark%20Alt_1024x1024x32.png -O icon.png ; sudo rm /opt/wavebox/icon.png ; sudo mv icon.png /opt/wavebox/ |
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
sudo systemctl stop apt-daily.timer | |
sudo killall -9 apt | |
sudo killall -9 apt-get | |
sudo systemctl start apt-daily.timer |
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 | |
############## Ver 4 | |
############## Fixes & Upgrade | |
#basic fixes for loki | |
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DialogsUseHeader': <0>, 'Gtk/ShellShowsAppMenu': <0>, 'Gtk/DecorationLayout': <'close:menu,maximize'>}" < "/dev/null" | |
sudo service apport stop ; | |
sudo sed -i 's/enabled=1/enabled=0/g' /etc/default/apport ; |
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 | |
############## Ver 3a | |
############## Fixes & Upgrade | |
#basic fixes for loki | |
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DialogsUseHeader': <0>, 'Gtk/ShellShowsAppMenu': <0>, 'Gtk/DecorationLayout': <'close:menu,maximize'>}" < "/dev/null" | |
sudo service apport stop ; | |
sudo sed -i 's/enabled=1/enabled=0/g' /etc/default/apport ; |
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 | |
sudo cd /tmp | |
wget https://gist.githubusercontent.com/rhoconlinux/68af9d6b4be8de97c284ff9dde303d4c/raw/cbf22486dfffffcce43d736c554846bf111682eb/nautilus%20csd%20fix%201604 -O nautilus.desktop | |
cat nautilus.desktop | |
sudo mv /usr/share/applications/nautilus.desktop /usr/share/applications/nautilus-nocsd.ddesktop | |
sudo mv nautilus.desktop /usr/share/applications/nautilus.desktop | |
cd | |
# |
NewerOlder