Skip to content

Instantly share code, notes, and snippets.

View ayushkamadji's full-sized avatar

Ayushka Partohap ayushkamadji

View GitHub Profile
@ayushkamadji
ayushkamadji / runstubby.ps1
Created October 23, 2020 16:41
runstubby ps1 script
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"
@ayushkamadji
ayushkamadji / index.js
Created September 21, 2019 05:50
Download Pushbullet Pushes Into Files
// 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"