Skip to content

Instantly share code, notes, and snippets.

View itsdonnix's full-sized avatar

Don Alfons itsdonnix

View GitHub Profile
@itsdonnix
itsdonnix / bash-to-zsh-hist.py
Created October 29, 2024 02:43 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@itsdonnix
itsdonnix / ttf-ms-tahoma-installer.sh
Created May 8, 2023 06:03 — forked from maxwelleite/ttf-ms-tahoma-installer.sh
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"
@itsdonnix
itsdonnix / myscript
Created December 16, 2022 04:35 — forked from neatshell/myscript
simple bash template that handles mandatory and optional arguments
#!/bin/bash
script="myscript"
#Declare the number of mandatory args
margs=2
# Common functions - BEGIN
function example {
echo -e "example: $script -m0 VAL -m1 VAL -o1 -o2 VAL"
}