Skip to content

Instantly share code, notes, and snippets.

View russellvt's full-sized avatar
💭
Probably on Gitlab or my own Hg Server...

Russell VT russellvt

💭
Probably on Gitlab or my own Hg Server...
View GitHub Profile
@russellvt
russellvt / code_colors_discordjs.md
Created October 21, 2023 07:09 — forked from thomasbnt/code_colors_discordjs.md
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C
Blue 3447003 #3498DB
@russellvt
russellvt / INSTALL_pnp4nagios_source.md
Last active May 8, 2023 09:24
Installing PNP4Nagios from Source

Installing PNP4Nagios from Source

Current Status: Draft

This hopes to help with installing PNP4Nagios from source (from my own repository).

By default, this install everything under the /usr/local/pnp4nagios directory.

The first line assumes you want a pnp4nagios directory IN your own home directory. You should modify as necessary.

It also assume Nagios/Icinga Daemon is running under a nagios user and a nagios group. YMMV. Modify accordingly.

@russellvt
russellvt / How_to_disable_ATT_DNS_Redirection.md
Created February 2, 2022 07:58 — forked from CollinChaffin/How_to_disable_ATT_DNS_Redirection.md
How to disable the very little-known AT&T setting that can appear to hijack your home DNS lookups and redirect to 104.239.207.44

How to disable the very little-known AT&T setting that can appear to hijack your home DNS lookups and redirect to 104.239.207.44

Issue

DNS queries on home network suddenly resolving hosts to 104.239.207.44.

Symptoms

You will see SPORADIC mis-resolutions of EVERYTHING to that 104.239.207.44 address if their crappy router happens to hear your PC's DHCP request - EVEN IF ANOTHER DHCP SERVER ON THE NETWORK assigns the ultimate address.

@russellvt
russellvt / Gmail Filter by Search Query.md
Created February 2, 2022 07:43 — forked from dead-claudia/Gmail Filter by Search Query.md
Gmail script filter based on search queries

Gmail Filter by Search Query

This program, in the form of a configuration script and a main script, allows for complicated Gmail search queries to be used as filters. It also lets you do more advanced stuff you can't do with ordinary filters, like label based on whether an email contains a specific kind of attachment.

Installing

  1. Go to script.google.com.
  2. Go to File > New > Script File, and type Main as the title for the new script. This will be for the main script.
  3. Delete any pre-filled text in the script file, and copy main.gs from this gist to that file.
  4. Go to File > New > Script File again, and type Config as the title for the new script. This will be for configuration.
# Credit: Nic Wortel
# Ref: https://localheinz.com/blog/2018/01/24/makefile-for-lazy-developers/
.PHONY: it
it: coding-standards tests
.PHONY: code-coverage
code-coverage: vendor
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text
@russellvt
russellvt / vim_plugins
Created May 10, 2018 07:58
Help manage vim plugins from git repositories, including pathogen, syntastic and pylint (among others)
#!/bin/bash
#
# Install and maintain vim plugins
#
# Russell M. Van Tassell
# [email protected]
#
# Path to Git
GIT=/usr/bin/git
@russellvt
russellvt / playsong.py
Created July 27, 2017 09:09 — forked from ThomasGaubert/playsong.py
Play songs from Google Play Music in VLC.
from gmusicapi import Webclient
from gmusicapi import Mobileclient
import vlc
import urllib
# Use Google account credintials. If two factor is enabled, use application specific password.
email = '[email protected]'
password = 'password'
# Device ID for API queries. Leave blank if unknown.