Skip to content

Instantly share code, notes, and snippets.

View xunker's full-sized avatar

Matthew Nielsen xunker

View GitHub Profile
@xunker
xunker / 4482058945_scam.md
Created July 9, 2025 19:04
Text/SMS employment scam spam from 448-205-8945

Received July 9, 2025. It is a version of https://www.bbb.org/scamtracker/lookupscam/1006659 . Addressed to "[email protected]", which is not me.

Adding this here so it shows up in search requests for others in the future.

Hello, I'm Judy from the ebay Recruiting team.

Your profile caught our attention through multiple recruiting platforms and we believe you'd be a good fit for our current part-time remote job opportunity.

This position focuses on helping merchants on ebay manage and update their product information to increase visibility and engagement. The hours are very flexible - just 60 to 90 minutes per day, 4 days per week. You can work anywhere and will be paid between $250 and $500 per day. The base pay is $1,000 per 4 working days.

@xunker
xunker / reset_branch_from_origin.sh
Last active March 12, 2025 17:57
Shell script to auomate resetting a local git branch to be the same as the remote branch
# This script will reset your current local git branch to be the same as the remote branch with the same name.
# Usage:
# ./reset_branch_from_origin.sh
#
# Remember to make the script executable first: `chmod +x reset_branch_from_origin.sh`
#
# Credit for the bash conformation prompt: https://stackoverflow.com/a/1885534
# Update local branches from origin
git fetch origin
@xunker
xunker / ruler.sh
Last active October 11, 2024 18:23
"ruler" function for Bash/Zsh, print a ruler of given length to your terminal
# Print out a line of text of given length to use as a rulter to resize your
# terminal. Requires some version of `ruby` to be installed on your system;
# I'm pretty sure it will work with versions as old as 1.8.3 up to the newest
# version 3.3.
#
# Install in your terminal by adding `source ruler.sh` (change filename as
# appropriate) to your .bashrc/.bash_profile or .zshrc/.zprofile file.
# Alternately, simply copy the function below in to one of those files.
#
# usage:
@xunker
xunker / 656801836.txt
Created July 10, 2024 19:24
Skyloong GK64X-RGB config for pixeltris/GK6X
# Custom Keyboard map for my Skyloong "GK64X-RGB" keyboard,
# model: 656801836, fw: v1.19, S/N beginning with "GK6X206".
# Keyboard is is set up in "Split Spacebar" mode.
#
# Uses https://github.com/pixeltris/GK6X. This config file is based on
# https://github.com/Alejo1707/GK6X/blob/master/Build/UserData/Alejo1707%20-%20656801836.txt
#
# Usage of this file:
#
# from GK6X-master/Build directory, assumes this file is UserData/656801836.txt:
@xunker
xunker / .ec2instances.bash
Last active May 28, 2024 19:03
Get IP address of EC2 Instance via the "Name" Tag, using "aws cli"
# Uses `aws cli` to get list of *running* EC2 instances, queried by the "Value"
# of the Tag "Name".
# In the case of Beanstalk EC2 instances, that "Name" is usually the same as the
# name of the Beanstalk cluster.
#
# To install, either copy this function to your .bashrc/.bash_profile/.zprofile,
# or save the file in your home directory and add `source .ec2instances.bash` to
# one of the files above or whatever file is correct for your shell.
#
# Usage:
@xunker
xunker / cisco_pro_2503_info.txt
Last active April 9, 2024 00:15
Cisco CPA2503 (CiscoPro) ISDN Router System Information, IOS 11.1(5)
This is the boot log and other interesting information from a Cisco CPA2503
ISDN Router.
It was uncovered during the last days of Computer Reset in Texas, in
April 2022.
I don't know how nor why this box ended up at Computer Reset. The
configuration wasn't wiped so there might still be some stories hidden in the
flash memory.
@xunker
xunker / cisco_2501_info.txt
Last active April 8, 2024 23:53
Cisco 2501 Router System Information, IOS 12.0(3)
This is the boot log and some other interesting information from a Cisco 2501
Router that was rescued from a junk pile at Weber State University in
April 2024. I paid $1 for it. That's all I know about it.
It appears this box was fully wiped before it was stricken from the inventory.
Kudos to the WSU techs!
==== ROM-MONITOR ====
System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
@xunker
xunker / integer_with_indifferent_comparison.rb
Last active March 14, 2024 22:12
Ruby IntegerWithIndifferentComparison - An experiment to show how to make an Integer-like class in Ruby without subclassing the Integer class directly
# IntegerWithIndifferentComparison
# --------------------------------
# https://gist.github.com/xunker/6c92e3fff3d81a8245caf2ee4994f884
#
# An experiment to show how to make an Integer-like class in Ruby without
# subclassing the Integer class directly.
#
# Instances of this class will behave like an Integer, but will allow direct
# equality comparison with Strings and other objects without explicit casting.
#
@xunker
xunker / example.txt
Created February 1, 2024 20:19
Simply having an EMPTY directory will make Rails 5.2 automatically add a module namespace
$ ls app/lib/salesforce/subscriptions
ls: app/lib/salesforce/subscriptions: No such file or directory
$ rails c
> Salesforce::Subscriptions
NameError: uninitialized constant Salesforce::Subscriptions
> exit
$ mkdir app/lib/salesforce/subscriptions
$ rails c
> Salesforce::Subscriptions
=> Salesforce::Subscriptions
@xunker
xunker / helloer.sh
Created December 9, 2023 01:05
Make a single MP3 audio file of all the voices from MacOS `say` command
#!/bin/bash
# set -o xtrace
# generates an MP3 file of every voice in MacOS saying the appropriate 'Hello'
# Requires ffmpeg to be install, by homebrew is preferred.
OUTPUT="everyone_hello" # extension will be added below
OUTPUT_AIFF="$OUTPUT.aiff"
OUTPUT_MP3="$OUTPUT.mp3"