Skip to content

Instantly share code, notes, and snippets.

@ovidiu-ionescu
ovidiu-ionescu / split_dns.ps1
Last active June 27, 2023 16:03
Manipulate the Nrpt table in Windows to enable split DNS
# Remove all existing entries
Get-DnsClientNrptRule |ForEach { Remove-DnsClientNrptRule -Name $_.Name -Force }
# Everything ending in domain.com gets resolved by the specified DNS servers
Add-DnsClientNrptRule -Namespace ".domain.com" -NameServers @("10.0.0.10", "10.0.0.11")
# see what's in the table
Get-DnsClientNrptRule
@henrydatei
henrydatei / vcs-downloader.sh
Last active March 9, 2023 09:34
Download a video from Videocampus Sachsen
#file=$1
#videoname=$(echo "$file" | cut -d "." -f1)
#echo "$videoname"
touch playlist.txt
touch urllist.txt
key=$1
videoname=$2
#keystring=$(cat $file | grep -o -E "key=[0-9,a-z]+")
@Brainiarc7
Brainiarc7 / refind-setup.md
Last active May 22, 2024 19:05
Setting up rEFInd on Ubuntu 16.04 LTS for multi-boot purposes with secure boot enabled.

Deploying rEFInd on Ubuntu 16.04 LTS with secure boot enabled

Hello guys,

For these dual-booting Ubuntu 16.04 with an alternate operating system in UEFI boot mode, it may often be necessary to use a third-party boot manager such as rEFInd, as it's significantly superior to grub2's on UEFI-capable systems.

This write-up assumes that:

(a). The user is running a current Ubuntu 16.04LTS operating system installation (preferably on a dual-boot system)

@techslides
techslides / form.html
Last active July 8, 2018 22:51
Form with Client-Side JS
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Form Calculator Add Example</title>
</head>
<body>
<form name="myForm" action="" onsubmit="return calc(this['A'].value,this['B'].value);" method="post">
<input type="text" name="A"> +
<input type="text" name="B"> =