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 | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros | |
# Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007. | |
# These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas. | |
# Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today. | |
# Dependencies: wget, fontforge and cabextract | |
# Note: Microsoft no longer provides the PowerPoint Viewer 2007 (v12.0.4518.1014) or any version anymore for download | |
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic |
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 | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Script to install the original Microsoft Tahoma Regular and MS Tahoma Bold (both version 2.60) on Ubuntu distros. | |
# Dependencies: wget and cabextract | |
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic | |
output_dir="/usr/share/fonts/truetype/msttcorefonts/" | |
tmp_dir="/tmp/ttf-ms-tahoma-installer" |
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 | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Script to install the latest Wine Tahoma Regular and Wine Tahoma Bold fonts on Ubuntu distros from the Wine Project. | |
# The Wine project includes the free and open-source fonts Wine Tahoma Regular and Wine Tahoma Bold released under LGPL | |
# designed to have identical metrics to the Microsoft Tahoma font. This was done because Tahoma is available by default | |
# on Windows, and many applications expect the font to be available. | |
# Dependencies: wget | |
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic | |
# Latest Update: 20/11/2020 |
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
@echo off | |
:: Author: Maxwel Leite | |
:: Website: http://needforbits.wordpress.com/ | |
:: Description: Batch script to download latest Win10-Initial-Setup-Script* | |
:: and execute using your own local profile Win10-Initial-Setup-Script-Execute.preset (change before execute). | |
:: * PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019 | |
:: (https://github.com/Win10debloater/Win10-Initial-Setup-Script) | |
:: | |
if not "%1"=="am_admin" call powershell -h | %WINDIR%\System32\find.exe /i "powershell" > nul && if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin > nul & exit) |
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 | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# Initial Author: Abdullah Diab (http://mpcabd.xyz/adding-a-timestamp-to-command-output-in-linux/) | |
# Description: Simple bash script to add a timestamp to command output in Linux | |
# This is just a quick solution to put a timestamp with each line of the output of some command in Linux. | |
while read x; do | |
# RFC-3339 format - for more accuracy and works with syslog | |
echo -n `date --rfc-3339=ns | sed 's/ /T/; s/\(\....\).*-/\1-/g'`; | |
echo -n " "; |
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
@echo off | |
:: Author: Maxwel Leite | |
:: Website: http://needforbits.wordpress.com/ | |
:: Description: Batch script to download latest Windows10Debloater* script | |
:: and execute for remove all bloatware from Windows 10 (only Debloat). | |
:: * Script to remove Windows 10 bloatware (https://github.com/Sycnex/Windows10Debloater) | |
:: | |
if not "%1"=="am_admin" call powershell -h | %WINDIR%\System32\find.exe /i "powershell" > nul && if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin > nul & exit) | |
setlocal |
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 | |
# Author: Maxwel Leite | |
# file-name: dropbox-repository-installer.sh | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Script to easily install a Dropbox Repository in Debian, Ubuntu and Linux Mint | |
# License: GPLv3 | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "You must be a root user!\nTry:\n\n sudo ./${0##*/} or sudo bash ${0##*/}" 2>&1 | |
exit |
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 | |
# file-name: mkv-substrip.sh | |
# Website: http://needforbits.tumblr.com/ | |
# https://gist.github.com/maxwelleite | |
# https://github.com/maxwelleite | |
# Author: Maxwel Leite | |
# License: GPLv3 | |
# Description: Remove all subtitle tracks (strip) from all MKV files in a specified folder or file, | |
# then put the new mkv file(s) in a previously-created sub-folder named "output". | |
# Param: "folder" (with a least one mkv file) or "file.mkv" (*relative paths also works*) |
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 | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# | |
# INSTALL: | |
# To activate/enable all extensions every time at startup: | |
# 1. Create a folder for your own scripts: | |
# mkdir ~/bin | |
# 2. Download a script file gnome-shell-enable-all-extensions.sh to "~/bin": | |
# 3. Setting up permissions for the script 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
#!/bin/bash | |
# file-name: kill-idle-vnc.sh | |
# Author: Maxwel Leite (http://needforbits.wordpress.com/) | |
# Initial Author: Sherman Adelson (https://gist.github.com/mnebuerquo) | |
# Description: Script to kill any idle vnc sessions (for disconnected xrdp sessions) | |
# SRC: http://serverfault.com/a/767361/33170 | |
displays=`ps aux | grep Xvnc | grep -v 'grep\|sed' | sed -r 's|.*(Xvnc :[0-9]*).*|\1|' | cut -d' ' -f 2` | |
limit=30 # in minutes |
NewerOlder