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 / 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.
@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 = 'user@gmail.com'
password = 'password'
# Device ID for API queries. Leave blank if unknown.