Skip to content

Instantly share code, notes, and snippets.

@seb-troiani
seb-troiani / web.config
Created October 18, 2022 08:02
Symfony URL Rewrite rule on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Symfony" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
@seb-troiani
seb-troiani / vars.cmd
Created September 26, 2022 19:43
Command to show environment variables (Windows)
rundll32 sysdm.cpl,EditEnvironmentVariables
@seb-troiani
seb-troiani / README.md
Created August 21, 2022 09:33 — forked from krcm0209/README.md
Using AdGuard DNS over HTTPS (DoH) on Windows 11

Why

You may want to use AdGuard's DNS over HTTPS[^2] service if you

  1. Want to make it harder for your ISP to know what websites you are requesting
  2. Want to block most traditional ads from your web browsing experience across your entire PC

Setup instructions

  1. Open PowerShell

WSL 2 Ip on Windows Hosts

How to use

  • Get the PowerShell script
  • Open Task Scheduler on Windows
  • Add a new folder called Event Viewer Tasks
  • Create a task
  • General tab:
  • Name: Update Windows hosts
@seb-troiani
seb-troiani / gist:efd0cce25e700f3ced5dfcd4c49f918a
Created March 11, 2022 16:40 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@seb-troiani
seb-troiani / upgrade_AdGuardHome.sh
Created January 29, 2022 12:57
How to Upgrade AdGuard Home on Linux (silly way)
#!/bin/sh
cd
echo $(tput setaf 2)"# Backup configuration file" $(tput sgr0)
sudo cp /opt/AdGuardHome/AdGuardHome.yaml /root/
echo $(tput setaf 2)"# Reinstall AdGuardHome - this will empty the /opt/AdGuardHome folder" $(tput sgr0)
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sudo sh -s -- -v -r
echo $(tput setaf 2)"# Since AGH is started, stop it" $(tput sgr0)
sudo /opt/AdGuardHome/AdGuardHome -s stop >NUL
### Keybase proof
I hereby claim:
* I am seb-troiani on github.
* I am myrmex (https://keybase.io/myrmex) on keybase.
* I have a public key whose fingerprint is 0AA6 D894 665E 0790 83DC C006 EBF1 B536 3B5F 13EC
To claim this, I am signing this object: