Skip to content

Instantly share code, notes, and snippets.

View ismet55555's full-sized avatar
💥
This n' That

Ismet Handzic ismet55555

💥
This n' That
View GitHub Profile
@ismet55555
ismet55555 / lvm_snapshot_remote_backup.sh
Last active December 28, 2022 05:15
LVM Storage Remote Backup
#!/bin/bash
# =========================================================
# LVM Snapshot Remote Backup
# Ismet Handzic 2019
# =========================================================
#
# This script creates a LVM partition snapshot and sends
# it to a remote location via rsync
#
@ismet55555
ismet55555 / check_internet.sh
Created October 30, 2020 14:29
Script to Check Internet Connection
#!/bin/bash
##########################################
# Ismet Handzic (2019)
#
# You can add this script as an alias on your system
# - Add this script to directory "/home/<YOUR USERNAME>/.bashrc_scripts
# - In "/home/<YOUR USERNAME>/.bashrc", add:
# alias internet='/home/<YOUR USERNAME>/.bashrc_scripts/check_internet.sh'
# - Use in terminal:
@ismet55555
ismet55555 / ssh_config_example
Last active October 30, 2020 14:44
SSH Config Example
# =============================================
# SSH CONFIG
# =============================================
#
# The SSH config file is typically located in your home directory
# under
# <HOME DIRECTORY>/.ssh/config
#
# Make sure you give the "config" file appropriate permissions
# chmod 600 <HOME DIRECTORY>/.ssh/config
@ismet55555
ismet55555 / home_dir_compress_for_backup
Last active November 10, 2020 13:55
A command to compress the linux home directory
# This command compresses your home directory
sudo tar -cpf home_dir_backup.tar /home/$USER \
--exclude-caches-all \
--exclude-backups \
--exclude=home_dir_backup.tar \
--exclude=.cache \
--exclude=.config \
--exclude=.debug \
--exclude=.dbus \
@ismet55555
ismet55555 / crontab
Last active January 27, 2023 14:42
Cron Running Script and Logging
#############################################################################
#
# crontab can be edited using the following command:
# For root user: sudo crontab -e
# For current user: cronttab -e
# For specific user: sudo cronttab -e -u ismet
#
# To view all current crontab entries:
# For root user: sudo crontab -l
# For current user: cronttab -l
@ismet55555
ismet55555 / ssh_key_auto_distribute.sh
Last active October 23, 2022 03:35
SSH Key Automatic Distribution
#!/bin/bash
###############################################################################
# Automatic SSH Public Key Distributor Script
###############################################################################
#
# This script automates the distribution of your public SSH key
# Once the public SSH key is on the remote system, you don't have to
# use a manual password to enter that remote system.
#
@ismet55555
ismet55555 / Keyboard_Layout.md
Last active November 10, 2020 22:26
Keyboard Layout Designations

Keyboard Layout Designations

  • us USA
  • ad Andorra
  • af Afghanistan
  • ara Arabic
  • al Albania
  • am Armenia
  • az Azerbaijan
  • by Belarus
@ismet55555
ismet55555 / Locale_List.md
Last active November 10, 2020 22:24
Locale Designations

Locale Designations

  • af_NA: "Afrikaans (Namibia)",
  • af_ZA: "Afrikaans (South Africa)",
  • af: "Afrikaans",
  • ak_GH: "Akan (Ghana)",
  • ak: "Akan",
  • sq_AL: "Albanian (Albania)",
  • sq: "Albanian",
  • am_ET: "Amharic (Ethiopia)",
@ismet55555
ismet55555 / Timezones.md
Last active November 10, 2020 22:24
Timezone Designations

Timezone Designations

  • Africa/Abidjan
  • Africa/Accra
  • Africa/Addis_Ababa
  • Africa/Algiers
  • Africa/Asmara
  • Africa/Asmera
  • Africa/Bamako
  • Africa/Bangui
@ismet55555
ismet55555 / WiFi_Region_Codes.md
Created November 10, 2020 22:24
WiFi Region Codes

WiFi Region Codes

  • US United States
  • CA Canada
  • JP3 Japan
  • DE Germany
  • NL Netherlands
  • IT Italy
  • PT Portugal
  • LU Luxembourg