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
#Thanks to Sandeep Srinivasa | |
#Enhanced for MySQL and phpMyAdmin CSV imports | |
require 'rubygems' | |
require 'nokogiri' | |
require 'csv' | |
#check for input file | |
if (!ARGV[0].nil? && File.file?(ARGV[0])) | |
puts ARGV[0] | |
file = File.open(ARGV[0]) |
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
#Shrink Fedora, usefull when running from ram | |
#Tested on Fedora 33: | |
#before :/dev/mapp total 7.9GB available 1.6GB used 6.3GB 80% | |
#after :/dev/mapp total 7.9GB available 3.6GB used 4.2GB 53% | |
#save current working path | |
pushd | |
#Remove unneeded packages | |
sudo dnf remove -y libreoffice\* flatpak\* gnome-boxes | |
#Remove all languages except the one you need. | |
cd /usr/share/locale; sudo rm -r `ls|grep -v en_US$`; |