Skip to content

Instantly share code, notes, and snippets.

@amg1127
amg1127 / DNS-Adjustments.ps1
Last active April 18, 2022 06:21
Modify DNS records with idempotence
function Adjust-DNSServerResourceRecord {
param(
[Parameter(Mandatory=$true)][string]$ZoneName,
[Parameter(Mandatory=$true)][string]$Name,
[Parameter(Mandatory=$true)][string]$RRType,
[Parameter(Mandatory=$true)]$Data,
$TimeToLive = $null
)
# Initialize local variables
@amg1127
amg1127 / download_git_repo.bat
Last active January 27, 2022 00:19
Sample script that downloads files from a Git repository published on Github
@echo off
REM Sample script that downloads files from a Git repository published on Github
REM This script assumes that Git client is installed.
REM If it is not, please download the official Git client from https://www.git-scm.com/download/win and install it.
REM Files from public repositories can be downloaded straight away.
REM However, Git client will need a personal access token in order to download files from private repositories.
REM Please follow these articles for guidance:
---
all:
children:
LBs:
children:
LBs_PRD_east:
hosts:
LBs_PRD_east_A:
pos: 10
LBs_PRD_east_B:
@amg1127
amg1127 / LinkedIn - Remove crap posts.js
Last active April 16, 2020 04:12 — forked from GFoley83/LinkedIn - Remove crap posts.js
Unlike facebook, LinkedIn creates entire posts just for likes and comments which fills up the feed with crap. This snippet removes those posts from the feed. Best used with an Chrome extension like "Custom JavaScript for Websites".
// ==UserScript==
// @name LinkedIn - Remove crap posts
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Unlike facebook, LinkedIn creates entire posts just for likes and comments which fills up the feed with crap. This snippet removes those posts from the feed. Best used with an Chrome extension like "Custom JavaScript for Websites".
// @author GFoley83
// @author amg1127
// @match https://linkedin.com/feed/
// @match https://*.linkedin.com/feed/
// @run-at document-idle