Skip to content

Instantly share code, notes, and snippets.

View aoout's full-sized avatar
🍉
Working from home

aoout aoout

🍉
Working from home
View GitHub Profile
@amichuda
amichuda / github-issue-macro.js
Created March 16, 2022 16:46
A Obsidian QuickAdd Macro to output issues by a user and organizations
// To use this with QuickAdd, you need to also create a capture in QuickAdd that reads in the output of this macro
// In the bottom of the capture, in the "Format" box, add {{MACRO:github-issue-macro}} (or however you register the macro.
module.exports = async (params) => {
const { app } = params;
let file = app.workspace.getMostRecentLeaf()?.view?.file;
if (!file) {
return;
}
module.exports = async (params) => {
const {app} = params;
let file = app.workspace.getMostRecentLeaf()?.view?.file;
if (!file) {
return;
}
let frontmatter = app.metadataCache.getFileCache(file)?.frontmatter;
let repo = frontmatter["gh-repo"]
if (!repo) {
return;
@famousgarkin
famousgarkin / powershell-proxy-set-clear.ps1
Last active July 24, 2024 17:04
PowerShell Set-Proxy, Clear-proxy
# NOTE: registry keys for IE 8, may vary for other versions
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
function Clear-Proxy
{
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0
Set-ItemProperty -Path $regPath -Name ProxyServer -Value ''
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value ''
[Environment]::SetEnvironmentVariable('http_proxy', $null, 'User')