This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# onedrive-ubu.sh | |
# A BASH script to set up OneDrive integration with GNOME on Ubuntu | |
# Copyright (C) 2018 Garrett Mills (garrett@glmdev.tech) | |
# This software is licensed under the MIT License. | |
# This sofware is provided without warranty or even any implied intent of purpose. | |
# | |
# OnedriveD: https://github.com/xybu/onedrived-dev | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# https://kradalby.no/setting-up-6rd-on-my-linux-router.html | |
PREFIX=2a01:79c:: | |
PREFIX_LENGTH=30 | |
RELAY_PREFIX=213.167.115.92 | |
RELAY_PREFIX_LENGTH=0 | |
PUBLIC=$(curl http://canihazip.com/s) | |
ipv6calc --action 6rd_local_prefix --6rd_prefix $PREFIX/$PREFIX_LENGTH --6rd_relay_prefix $RELAY_PREFIX/$RELAY_PREFIX_LENGTH $PUBLIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
include /home/webmaster/www/codeable.io.conf; | |
server_name codeable.io; | |
listen 443 ssl spdy default_server; | |
root /home/webmaster/www/codeable.io; | |
index index.php index.html; | |
error_log /var/log/nginx/codeable.io.error.log warn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Title : "Vyos basic configuration" | |
Date : "25/07/2018" | |
Author : "Musha" | |
Reference : "http://soucy.org/vyos/UsingVyOSasaFirewall.pdf" | |
1) Configure network Interface eth0 (internet) | |
set interfaces ethernet eth0 address dhcp | |
set interfaces ethernet eth0 description 'OUTSIDE' | |
2) Configure network interface eth1 (dmz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/vbash | |
# CONFIG | |
wan=dhcp | |
lan=10.10.10.1 | |
lan_segment=10.10.10.0 | |
lan_workstationip1=10.10.10.10 | |
lan_workstationmac1=04-92-26-DA-58-A9 | |
vpn_segment=10.10.15.0 | |
domain=home.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( [ScriptBlock] $scriptBlock ) | |
<# | |
.SYNOPSIS | |
Impersonates a user and executes a script block as that user. This is an interactive script | |
and a window will open in order to securely capture credentials. | |
.EXAMPLE | |
Use-Impersonation.ps1 {Get-ChildItem 'C:\' | Foreach { Write-Host $_.Name }} | |
This writes the contents of 'C:\' impersonating the user that is entered. | |
#> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compress and decompress byte array | |
function Get-CompressedByteArray { | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory,ValueFromPipeline,ValueFromPipelineByPropertyName)] | |
[byte[]] $byteArray = $(Throw("-byteArray is required")) | |
) | |
Process { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -r /etc/vmware/license.cfg | |
cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg | |
/etc/init.d/vpxa restart | |
vim-cmd vimsvc/license --show | grep expirationDate | |
# see https://calvin.me/reset-esxi-evaluation-license/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 3.0 | |
<# | |
.SYNOPSIS | |
My Veeam Report is a flexible reporting script for Veeam Backup and | |
Replication. | |
.DESCRIPTION | |
My Veeam Report is a flexible reporting script for Veeam Backup and | |
Replication. This report can be customized to report on Backup, Replication, |
OlderNewer