Skip to content

Instantly share code, notes, and snippets.

marshyski /
Created January 17, 2024 23:16
Download latest golang version for linux amd64
GO_VERSION=$(curl -fsSL '' | head -n1)
cd /usr/local || exit 1
curl -fsSLO "$GO_URL"
tar -zxvf "$GO_FILE"
rm -f "$GO_FILE"
marshyski /
Created March 20, 2022 19:29
Update Cloudflare DNS Record with Dynamic IP
PUB_IP=$(dig @ ch txt whoami.cloudflare +short | cut -d\" -f 2)
curl -XPUT "$ZONE_ID/dns_records/$SITE_ID" \
-H "Authorization: Bearer $CF_TOKEN" -H "Content-Type: application/json" \

First make sure Windows Update is caught up with all the system updates.

Follow the following steps below in order.

Snappy Driver Installer

  1. Download SDI Lite version
  2. Extract Zip to Downloads or Documents
  3. Right-click SDI_x64_*.exe and Run as Administrator
  4. Download Indexes Only
marshyski /
Last active June 21, 2020 22:27
yum-nginx-api 2020 v1 proposal

Move API routes:

Old New
/api/health /v1/health
/api/upload /v1/rpm/upload /v1/deb/upload
/api/repo /v1/rpm/repo /v1/deb/repo

/rep will default to a single repo/xml directory. The goal would be manage multiple repos by utlizing a name query parameter as such:

marshyski / Windows 10 Gaming
Last active March 25, 2024 08:42
Windows 10 Gaming Optimizations

Windows 10 Gaming Performance

Tested On: MSI GS66 Stealth 10SFS-037 Laptop | Intel i7-10750H | Nvidia RTX 2070 Super

Date Updated: 28JUN2020

Est. Time to Completion: 1 hour

Expected improvement from stock Windows 10 install for gaming is 1-3x network improvement and reduction in OS overhead.

exists: true
owner: root
group: root
linked-to: /usr/share/aws/bin/aws
filetype: symlink
exists: true
mode: "0755"
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
export http_proxy=#{ENV['http_proxy']}
export https_proxy=#{ENV['https_proxy']}
export HTTP_PROXY=#{ENV['http_proxy']}
export HTTPS_PROXY=#{ENV['https_proxy']}
echo "export http_proxy=#{ENV['http_proxy']}" > /etc/profile.d/
echo "export https_proxy=#{ENV['https_proxy']}" >> /etc/profile.d/
server {
listen 80;
location ~ /(.git|.svn| {
deny all;
log_not_found off;
access_log off;
return 404;
WORKERS=`lscpu | grep ^'CPU(s)' | awk '{ print $2 }'`
if [[ `grep ^nginx /etc/passwd` = "" ]]; then
if [[ `grep ^www-data /etc/passwd` = "" ]]; then