Skip to content

Instantly share code, notes, and snippets.

@maxwelleite
maxwelleite / Win10-Initial-Setup-Script-Execute.cmd
Last active June 16, 2023 23:05
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).
@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)
@maxwelleite
maxwelleite / Windows10Debloater-Execute-only-Debloat.cmd
Last active January 22, 2021 16:28
Batch script to download latest Windows10Debloater script and execute for remove all bloatware from Windows 10 (only Debloat)
@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
@maxwelleite
maxwelleite / mkv-substrip.sh
Last active July 14, 2019 04:16
mkv-substrip.sh - Remove all subtitle tracks (strip) from all MKV files in a specified folder or file
#!/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*)
@maxwelleite
maxwelleite / latest-widevine.sh
Created April 4, 2018 19:37 — forked from neelshearer/latest-widevine.sh
Depending on architecture, either grabs last 32-bit Widevine from chromium or fetches Chrome and extracts out Widevine so that it can be used by Vivaldi. Also works with other Chromium-based browsers, see guide below.
#!/usr/bin/env bash
available () {
command -v $1 >/dev/null 2>&1
}
# Make sure we have wget or curl
if available wget; then
SILENT_DL="wget -qO-"
LOUD_DL="wget"
@maxwelleite
maxwelleite / greasemonkey-zorinos-start-page-field-focus.js
Created March 5, 2018 14:00
Zorin OS Start Page Field Focus - Simple Greasemonkey/Violentmonkey/TamperMonkey script to autofocus the field on "Zorin OS Start Page" (https://zorinos.com/start/)
// ==UserScript==
// @name Zorin OS Start Page Field Focus
// @description Simple Greasemonkey/Violentmonkey/TamperMonkey script to autofocus the field on "Zorin OS Start Page / Search Google"
// @namespace http://www.openjs.com/
// @include https://zorinos.com/start/
// @author Maxwel Leite
// @namespace https://gist.github.com/maxwelleite
// @encoding utf-8
// @version 1.0
// @updateURL
@maxwelleite
maxwelleite / update-hosts.sh
Created March 4, 2018 14:03 — forked from Eliastik/update-hosts.sh
A quick shell script that will automatically update a Linux HOSTS file to block domains (ads, malwares, ...). Support multiple hosts sources and initial host file.
#!/bin/bash
# Filename: update-hosts.sh
#
# Author: George Lesica <george@lesica.com>
# Enhanced by Eliastik ( eliastiksofts.com/contact )
#
# Description: Replaces the HOSTS file with hosts lists from Internet,
# creating a backup of the old file. Can be used as an update script.
#
@maxwelleite
maxwelleite / timestampit.sh
Last active August 2, 2022 08:12
timestampit - add a timestamp to command output in Linux
#!/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 " ";
@maxwelleite
maxwelleite / ffmpeg_installer
Created August 14, 2017 00:04 — forked from joglomedia/ffmpeg_installer
Simple Bash Script to Install FFMPEG + Required Libraries in Ubuntu 14.04
#!/bin/bash
# Bash Script to Install FFMPEG in Ubuntu 14.04
# Ref: http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
# Opsional: install exiftool: apt-get install libimage-exiftool-perl
#
# Author: Edi Septriyanto http://masedi.net <hi@masedi.net>
########################################################################
CURDIR=$(pwd)
@maxwelleite
maxwelleite / ttf-wine-tahoma-installer.sh
Last active October 16, 2023 13:15
Script to install the latest Wine Tahoma fonts on Ubuntu distros
#!/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
@maxwelleite
maxwelleite / ttf-ms-tahoma-installer.sh
Last active March 15, 2024 13:14
Script to install the original Microsoft Tahoma font on Ubuntu distros
#!/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"