Skip to content

Instantly share code, notes, and snippets.

View rdlugosz's full-sized avatar

Ryan Dlugosz rdlugosz

View GitHub Profile
@rdlugosz
rdlugosz / simhub_javascript_func.js
Created October 26, 2024 19:03
Simhub formula to calculate the number of degrees to rotate a watchface second hand, with 8 beats per second
let date = new Date()
let sec = date.getSeconds()
let mil = date.getMilliseconds()
let deg = (sec / 60) * 360 - 90
let fractionalSecond = Math.round(mil / 1000 * 8) / 8 // Common Rolex 8 ticks per sec
let fracDeg = fractionalSecond * 6 // 6 degrees between seconds
return deg + fracDeg
us.rdx2.lgtvsdp.com
us.info.lgsmartad.com
us.ibs.lgappstv.com
us.lgtvsdp.com
ad.lgappstv.com
smartshare.lgtvsdp.com
ibis.lgappstv.com
# added after fork
# from https://www.reddit.com/r/pihole/comments/6qmpv6/blacklists_for_lg_webos_tvs/ and others

Keybase proof

I hereby claim:

  • I am rdlugosz on github.
  • I am rdlugosz (https://keybase.io/rdlugosz) on keybase.
  • I have a public key ASC8lBpSQNetiUqYjtq76neS9XjlVFQ-wVX4Yg6Ys31Rwgo

To claim this, I am signing this object:

@rdlugosz
rdlugosz / rails_code_tools.md
Last active July 14, 2017 00:48
Rails Code and Security Tools

Security Tools

Here are some actions to take on a regular basis to ensure the various dependencies in the codebase are kept clean from a security standpoint. Even better would be to schedule these tasks to run automatically via cron.

Security Scanners

@rdlugosz
rdlugosz / gist:9116490
Created February 20, 2014 15:36 — forked from paulv/gist:9116133
Jim Weirich collecting infinite loops
Date: Mon, 8 Mar 1999 21:44:30 -0500
From: Jim Weirich <[email protected]>
To: [email protected]
Subject: Infinite Loops
I'm packing up my basement in preparation for some construction next
week. In cleaning off my computer bookself, I came across a number of
really old items, some of which may be interesting.
I used to collect infinite loops. I came across my list of loops