This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PowerShell -ExecutionPolicy bypass -file "C:\Program Files\Stubby\stubby_setdns_windows.ps1" | |
$stubbyexe = "C:\Program Files\Stubby\stubby.exe" | |
$proc = Start-Process -FilePath $stubbyexe -PassThru -WindowStyle Hidden | |
Read-Host -Prompt "Press Enter to exit" | |
Stop-Process -id $proc.ID | |
PowerShell -ExecutionPolicy bypass -file "C:\Program Files\Stubby\stubby_resetdns_windows.ps1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: partohap.ayushka@gmail.com | |
const axios = require("axios") | |
const fs = require("fs") | |
const path = require("path") | |
const URL = "https://api.pushbullet.com/v2/pushes" | |
const ACCESS_TOKEN = process.env["ACCESS_TOKEN"] | |
const FILE_PREFIX = "pb_pushes_" | |
const EXTENSION = ".json" |