Skip to content

Instantly share code, notes, and snippets.

View pirafrank's full-sized avatar

Francesco Pira pirafrank

View GitHub Profile
@pirafrank
pirafrank / disable-web-search.reg
Created November 4, 2024 08:55
Disable Web Search feature in Windows 10 and Windows 11 for faster searching in the Start Menu. Tested on Win 11 Pro, should work on all editions.
Windows Registry Editor Version 5.00
; Disable Web Search in Windows Search
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"DisableWebSearch"=dword:00000001
"ConnectedSearchUseWeb"=dword:00000000
"AllowCortana"=dword:00000000
; Additional Web Search Settings
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search]
@pirafrank
pirafrank / cloudflareDoH.mobileconfig
Last active February 3, 2026 00:47
iOS, iPadOS and tvOS 14 support MDM profile to set encrypted DNS requests (DNS-over-HTTPS and DNS-over-TLS) on cellular and Wi-Fi connection. To install, open this page from your device and click ‘Raw’ on the one of your choice in the GitHub page. Then continue installation in Settings app. Browse https://1.1.1.1/help after installing to check it
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>DNSSettings</key>
<dict>
<key>DNSProtocol</key>
@pirafrank
pirafrank / .lftp.mockup.rc
Created December 10, 2016 12:05 — forked from gaubert/.lftp.mockup.rc
~/.lftp.rc parameters detailed
########## SETTINGS
# On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands
# there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on.
# Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount
# (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g.
# 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g.
# 'sleep forever' or 'set dns:cache-expire never'.
@pirafrank
pirafrank / vim_install.sh
Last active December 1, 2025 14:42
Install vim from source (+python3 +ruby and more) on Ubuntu 20.04 Focal Fossa (GUI options enabled)
#!/bin/bash
# Remove old vim installs
sudo apt-get remove vim vim-runtime gvim vim-tiny \
vim-common vim-gui-common vim-nox gvim
# install vim-gtk deps
sudo apt-get build-dep vim-gtk
# install some more deps
@pirafrank
pirafrank / uninstall_office_2016.sh
Last active April 23, 2025 18:45
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@pirafrank
pirafrank / check_psmodule_updates.ps1
Created July 30, 2024 08:00
Check for updated versions of user installed PowerShell modules
#
# check_psmodule_updates.ps1
#
# Check for updated versions of user installed PowerShell modules.
#
# Author: github.com/pirafrank
#
# get listed of user installed PowerShell modules
$installedModules = Get-ChildItem -Path "$env:USERPROFILE\Documents\PowerShell\Modules" -Directory | Select-Object Name
@pirafrank
pirafrank / dns_wsl_nic_ivanti.ps1
Last active May 20, 2024 10:16
Restore Internet access and restore WSL 2 network after connecting to Pulse-Ivanti networks. Tested on Windows 11 23H2 and WSL 2 (v.2.1.5.0)
# Define the interface names and the two DNS IPs
# edit the followin two lines
$internet_interface1 = "Ethernet 6"
$internet_interface2 = "Wi-Fi"
##### do not edit below this line #####
$dns1 = "1.1.1.1"
$dns2 = "10.19.56.151"
@pirafrank
pirafrank / ios_scriptable_codespaces.js
Last active March 22, 2024 08:35
iOS Scriptable widget and table to summarize, list, start, and stop your GitHub Codespaces
// *********
// constants
// *********
// Go to GitHub > Settings > Developer Settings > Personal access tokens > Tokens
// and create a new one with the following scopes:
// - codespaces (Full control over codespaces)
// - read:user
// - user:email
const token = "ghp_123secretToken"

$argon2id$v=19$m=8192,t=2,p=4$Y+r8NKkXj0fRU5SXsnU5wQ$ElL+7Y53Kfl1537JUzTvl2h8FwCttAsX

@pirafrank
pirafrank / fix_outlook_copy_events.reg
Created December 6, 2023 13:10
A fix to restore Copy Calendar Events functionality in Microsoft Outlook 365 for Windows
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\Calendar]
"EnableMeetingCopy"=dword:00000001