Skip to content

Instantly share code, notes, and snippets.

View poa00's full-sized avatar

Peter Abbasi poa00

  • Chicago
  • 06:44 (UTC -05:00)
View GitHub Profile
@poa00
poa00 / gh-org-clone-pull-create-add-push.sh
Created July 16, 2024 11:54 — forked from itsazzad/gh-org-clone-pull-create-add-push.sh
Git Organization: Clone Repo, Pull, Create Repo, Add Remote, Push
#!/usr/bin/env bash
# This script clones all repos in a GitHub org and pushes to the upstream
# It requires the GH CLI: https://cli.github.com
# It can be re-run to collect new repos and pull the latest changes
set -euo pipefail
USAGE="Usage: gh-clone-org <user|org> <target>"
@poa00
poa00 / mbsa.ps1
Created July 15, 2024 06:19 — forked from dfinke/mbsa.ps1
rm srv1.xlsx -ErrorAction Ignore
[xml](gc .\srv1.mbsa) | % secscan |
Export-Excel srv1.xlsx -AutoSize -TableName table -Show
# Read the new spreadsheet
# Import-Excel .\srv1.xlsx
# read, export to csv
# Import-Excel .\srv1.xlsx | Export-Csv -NotType srv1.csv
@poa00
poa00 / Group Policy
Last active July 5, 2024 00:01 — forked from LXGaming/Group Policy
Windows Bullshittery Begone
Windows Components -> News and interests
- Enable news and interests on the taskbar: Enabled
Windows Components -> Search
- Allow Cortana: Disabled
- Do not allow web search: Enabled
- Don't search the web or disable web results in Search: Enabled
Network -> DNS Client
- Turn off smart multi-homed name resolution: Enabled
@poa00
poa00 / Fixes.md
Last active June 15, 2024 05:50 — forked from ELLIOTTCABLE/nerd-patcher-input-mono.sh
Guide: Nerd Font Input Mono Patch

Nerd-Patcher Fixes for Input Mono

Below are all the possible fixes/workarounds I found for potential issues that might arise when attempting to apply the nerd-font patch to InputMono:

[from gist Comments]

Found success with:

  • clone the nerd-fonts repo
  • install fontforge via brew
@poa00
poa00 / github_backup.md
Created June 5, 2024 00:00 — forked from dreikanter/github_backup.md
Keep your 🧳 together

Create Github access token: https://github.com/settings/tokens

Setup backup tool:

pip3 install github-backup

export GITHUB_BACKUP_TOKEN=ghp_bananabananabananabananabananabanana
export GITHUB_BACKUP_USER=dreikanter
export GITHUB_BACKUP_PATH=~/github-backup/$GITHUB_BACKUP_USER
@poa00
poa00 / README.md
Created June 1, 2024 05:19 — forked from typebrook/README.md
A bash script for gist management #bash #gist
const fetch = require("node-fetch");
const qs = require("querystring");
const nodemailer = require("nodemailer");
const cron = require("node-cron");
const EMAIL = "";
const PASSWORD = "";
const searchWord = "canon eos rp";
@Wisdawms
Wisdawms / .bashrc
Last active June 2, 2024 19:58
my custom .bashrc and .gitconfig commands/aliases for git/github
# [put in ~/.bashrc (open with vim or nano)]
alias ghrmr='gh repo delete'
# create repo then push it automatically
alias ghmkr='gh repo create && git push;'
# use this command run custom sub-commands on the backup repo
bkup() {
orig_dir=$(pwd)
if cd $(pwd).bak; then
"$@"
@echo off
if "%~1"=="" goto :USAGE
where /q curl.exe || (
echo Error: curl command not found.
exit /b 1
)
setlocal enabledelayedexpansion
@ninmonkey
ninmonkey / Basic Completions.ps1
Last active June 4, 2024 20:35
Basic powershell completions
function New.CompletionResult {
[Alias('New.CR')]
param(
# original base text
[Alias('Item', 'Text')]
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[ValidateNotNullOrWhiteSpace()]
[string]$ListItemText,