Skip to content

Instantly share code, notes, and snippets.

@tblaschke
tblaschke / nas_poweroff.sh
Created October 6, 2023 21:55
FreeNas Poweroff
#!/usr/local/bin/bash
#
# Author: SIFTU
# Version: 1.4
# Modfied for FreeNAS by Thomas Blaschke
#
# Usage: nas_powerdown <sleep_packets>
#
# This is scheduled in CRON. Schedule it to run at regular intervals i.e. 15,30,60 mins
# It compares the RX and TX packets from the previous run
@ankit1057
ankit1057 / installPhp.sh
Created July 4, 2023 01:21
Install Lampp on termux
#!/bin/bash
# Update packages
apt update
apt upgrade -y
# Install Apache and PHP
apt install php-apache -y
# Install MySQL
@Aldaviva
Aldaviva / Easy PowerShell Remoting.md
Last active July 30, 2024 02:54
Easy PowerShell Remoting

Easy PowerShell Remoting

PowerShell Remoting allows you to connect to a remote shell on another Windows computer.

The server is the Windows computer that will host the shell, and that you will connect to. The client is the Windows computer that will create the connection, on which you will see and interact with the shell.

These steps assume a workgroup with Windows 10 or Server 2016 or later on the server, and Windows 7 or later on the client. It assumes that the client is running with a user account that also exists on the server with the same password. Neither the server nor the client need to be joined to a domain or using Kerberos.

Prerequisites

# at least in deb/untu
sudo apt-get install libpam-google-authenticator
# for each user
google-authenticator
@giordanocardillo
giordanocardillo / README.MD
Last active November 17, 2025 15:43
Remove Office 2016 Product Key

Caution

Due to the subject of this Gist there are a lot of spam/scam comments. I try to remove them all as soon as possible. I don't recommend you to click on any link in the comments

How to remove Microsoft Office 2016 Product Key

  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

@roydq
roydq / ubuntu_unattended_upgrades_gmail.markdown
Last active February 2, 2024 17:01 — forked from dwilkie/ubuntu_unattended_upgrades_gmail.markdown
Unattended upgrades on Ubuntu 14.04 with email notifications

Getting Started

Do yourself a favor and login as root to save yourself some time and headaches:

$ sudo su -

Install unattended-upgrades:

@haisum
haisum / postfix-dovecot-ubuntu14.04.sh
Last active July 20, 2024 22:07
Automated bash script to setup dovecot postfix mysql email server on ubuntu 14.04
#!/usr/bin/env bash
#####
# Script to install postfix
#####
DOMAIN="example.com"
EMAIL="[email protected]"
PASSWORD="example.com1*"