Skip to content

Instantly share code, notes, and snippets.

View tiwiex's full-sized avatar

Taiwo Akinosho tiwiex

View GitHub Profile
@tiwiex
tiwiex / bash-to-zsh-hist.py
Created September 22, 2017 17:28 — 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
@tiwiex
tiwiex / create_swap.sh
Created June 11, 2021 07:47 — forked from garystafford/create_swap.sh
From my blog post, Scripting Linux Swap Space: Scripting Linux Swap Space
#!/bin/sh
# size of swapfile in megabytes
swapsize=512
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then
#!/bin/sh
# size of swapfile in megabytes
swapsize=4096
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then
@tiwiex
tiwiex / custom-ubuntu-20.04.sh
Created May 16, 2024 22:58 — forked from dmanning21h/custom-ubuntu-20.04.sh
Customization script for fresh install of Ubuntu 20.04
# Update System
sudo apt update && sudo apt upgrade -y
# Curl
sudo apt-get install wget gpg
sudo apt install apt-transport-https curl
# Clear Favorites
gsettings set org.gnome.shell favorite-apps "['']"