Skip to content

Instantly share code, notes, and snippets.

View giampaolo44's full-sized avatar

Giampaolo Ferradini giampaolo44

View GitHub Profile
javascript:(() => {
const requestURL = "http://127.0.0.1:8080/api/readingList";
const token = "dfgkjlhsdfgkljghklhj";
const pageTitle = document.title;
const pageURL = window.location.href;
let metaImage = "";
let metaDescription = "";
function getMetaValue(propName) {
@getify
getify / 1.md
Last active March 2, 2023 21:24
In defense of using blocks to create localized scope for variables... (part 1 of 2)
@frafra
frafra / nmcli-remove-manual-dns.sh
Created February 18, 2015 10:50
Remove manual DNS entries from active connections using nmcli
#!/bin/bash
for id in $(nmcli -t -f UUID c s -a)
do
dnss=$(nmcli -t -f ipv4.dns c s $id | cut -d: -f2- | tr -d ,)
for dns in $dnss
do
nmcli c m $id -ipv4.dns 0
done
done