Skip to content

Instantly share code, notes, and snippets.

View iliaselmatani's full-sized avatar

IeM iliaselmatani

View GitHub Profile
@iliaselmatani
iliaselmatani / reclaimWindows10.ps1
Created July 23, 2020 13:14 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@iliaselmatani
iliaselmatani / PVE-host-backup.md
Created May 19, 2020 18:41 — forked from mrpeardotnet/PVE-host-backup.md
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup
### Keybase proof
I hereby claim:
* I am iliaselmatani on github.
* I am iliaselmatani (https://keybase.io/iliaselmatani) on keybase.
* I have a public key ASBf3tiM2D93YlQV0IZr-_vi7CpDHkOrgWPgUd_a5-hReAo
To claim this, I am signing this object:
@iliaselmatani
iliaselmatani / mirror-port.sh
Created December 23, 2017 18:36 — forked from lonelymtn/mirror-port.sh
Mirror traffic between two interfaces using Linux's traffic controll subsystem (tc)
#!/usr/bin/env bash
# Time-stamp: <2014-07-31 13:31:43 (ryanc)>
#
# Description: Mirror traffic between two interfaces using Linux's
# traffic control subsystem (tc)
trap cleanup EXIT
CLEANUP=1
SRC_IFACE=$1
@iliaselmatani
iliaselmatani / upgrade2DebianStretch.sh
Created May 26, 2017 16:50
GNU/Linux upgrade from Jessie to Raspbian Stretch
#!/bin/bash
#Let APT know that it's not being run interactively
DEBIAN_FRONTEND=noninteractive
#Update and upgrade
apt-get update
apt-get upgrade -y --force-yes -qq
apt-get dist-upgrade -y --force-yes -qq
#!/bin/sh
openssl enc -d -aes-192-ecb \
-in "$1" -out "$2" \
-K 346a23652a46392b4d73257c67317e352e3372482177652c