Skip to content

Instantly share code, notes, and snippets.

@Pe46dro
Pe46dro / chromedriver.ps1
Created September 6, 2022 07:27
Keep Chrome Driver updated
$cver = Invoke-WebRequest https://chromedriver.storage.googleapis.com/LATEST_RELEASE
Invoke-WebRequest https://chromedriver.storage.googleapis.com/$cver/chromedriver_win32.zip -OutFile $Outpath
Expand-Archive $Outpath -DestinationPath $Dstpath -Force
@Pe46dro
Pe46dro / no_print_share.ps1
Created January 11, 2022 13:59
Disable sharing on all printers
Get-Printer | Where-Object {($_.Type -eq 'Local') -and ($_.Shared -eq 'True')} | ForEach-Object {Set-Printer -Name $_.Name -Shared $False}
@Pe46dro
Pe46dro / keybase.md
Created November 19, 2016 11:55
My Keybase.io GitHub prove

Keybase proof

I hereby claim:

  • I am pe46dro on github.
  • I am pe46dro (https://keybase.io/pe46dro) on keybase.
  • I have a public key ASAy_6a033wdO33j5VNfXtfkInfcqckcqUNARgIrzTPQ8wo

To claim this, I am signing this object:

@Pe46dro
Pe46dro / Bookmarklet.MD
Last active November 6, 2016 18:49
Radio 105 Download

#Radio 105 Download Un semplice bookmarklet per aggiungere un link per il download della traccia audio presente sul sito di Radio 105

javascript:(function(){
	$( document ).ready(function() {
		var url = $('.audio meta[itemprop="contentUrl"]').attr("content");
		$("div.breadcrumbs_orizzontale ul").append(
			'<li><a href="'+url+'" download>'+
 ' <i class="fa fa-download" aria-hidden="true"></i>'+
@Pe46dro
Pe46dro / test.sh
Created September 19, 2016 09:48
NextCloudVM - Test Script
#!/bin/bash
echo "THE OTHER SCRIPT RECIVE: $1"
@Pe46dro
Pe46dro / test-new-config.sh
Created September 19, 2016 09:47
NextCloudVM - Start Script
#!/bin/bash
echo
# Ask for domain name
cat << ENTERDOMAIN
+---------------------------------------------------------------+
| Please enter the domain name you will use for Nextcloud: |
| Like this: example.com, or nextcloud.example.com (1/2) |
+---------------------------------------------------------------+
ENTERDOMAIN