Skip to content

Instantly share code, notes, and snippets.

View danielchc's full-sized avatar
🍋

/dani danielchc

🍋
View GitHub Profile
// ==UserScript==
// @name Google Maps Button
// @namespace http://tampermonkey.net/
// @version 2024-08-14
// @description Bring Google Maps button back
// @author danielchc
// @match https://www.google.com/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
// ==/UserScript==
@danielchc
danielchc / VMWareClusterLoadBalancer.ps1
Last active December 31, 2023 15:14
VMwareClusterLoadBalancer
Param(
[parameter(Mandatory = $true)]
[string]
$vCenter,
[parameter(Mandatory = $true)]
[string]
$TargetCluster,
[parameter(Mandatory = $true)]
[string]
$User,
@danielchc
danielchc / vcsa_backup.sh
Last active November 21, 2023 20:04
Backup of the vCenter Server Appliance
#!/bin/bash
#######################################################################################
#
# vCenter Backup - vcsa_backup.sh
# Create a Backup of the vCenter Server Appliance
# 1.0 - [21/11/2023] danielchc
#
#######################################################################################
function echo_log () {
@danielchc
danielchc / docker-emby-bypass.md
Last active November 15, 2024 16:42
Emby Premiere: ByPass Docker container

Emby Premiere ByPass Docker container

❗ All the information provided on this tutorial are for educational purposes only. I'm not responsible for any misuse of this information. If you like the app buy it

Table of Contents

@danielchc
danielchc / elPaisLimite.js
Last active December 19, 2021 10:37
Quitar límite articulos ElPais
// ==UserScript==
// @name Quitar Limite El Pais
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Quitar límite articulos ElPais
// @author danielchc
// @match https://elpais.com/*
// @grant none
// ==/UserScript==
0.0.0.0 a.stat.xiaomi.com
0.0.0.0 abtest.mistat.intl.xiaomi.com
0.0.0.0 abtest.mistat.xiaomi.com
0.0.0.0 ad.mi.com
0.0.0.0 ad.xiaomi.com
0.0.0.0 ad1.xiaomi.com
0.0.0.0 adv.sec.miui.com
0.0.0.0 api.account.xiaomi.com
0.0.0.0 api.ad.xiaomi.com
0.0.0.0 api.admob.xiaomi.com
for /f "skip=4 usebackq tokens=2" %%a in (`nslookup myip.opendns.com resolver1.opendns.com`) do echo %%a
@danielchc
danielchc / dnstool.bat
Created September 8, 2018 18:13
Check ping of diferent DNS Servers
@echo off
set dnsservers=1.1.1.1 1.0.0.1 9.9.9.9 149.112.112.112 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 91.239.100.100 89.233.43.71
(for %%a in (%dnsservers%) do (
ping -n 1 %%a |findstr "TTL="
))
pause
@danielchc
danielchc / ADGroupMember.ps1
Created June 13, 2018 14:51
List members from AD Security Group (without "Domain *" groups)
param([String]$FileName='ADGroups.csv')
Import-Module ActiveDirectory 2>$nul
$groups=ForEach ($i in Get-ADGroup -Filter 'groupcategory -eq "security"' -searchbase "OU=Domain Users,dc=ORGANITATION,dc=local" | Where-Object { !($_.Name -like "*Domain*")} ){
Get-ADGroupMember $i | Where-Object {($_.objectClass -eq "user")} | Select @{n='DistributionName';e={$i.Name}},Name,SamAccountName
}
$groups |Export-CSV $FileName -NoTypeInformation -Encoding UTF8
@danielchc
danielchc / InstallPrinter.ps1
Last active June 13, 2018 14:49
Install printer from Print Server and set as default
param([String]$printerTarget='',[String]$printServer='')
$conex="\\$printServer\$printerTarget"
if ((Get-Printer).Name -eq $conex){
"Printer already installed: $($printerTarget)"
}else{
$printClass = [wmiclass]"Win32_Printer"
$printClass.AddPrinterConnection($conex) | Out-Null
(Get-WmiObject -Class Win32_Printer -Filter "ShareName='$($printerTarget)'").SetDefaultPrinter() | Out-Null
"Installed: $($printerTarget)"