Skip to content

Instantly share code, notes, and snippets.

@haydenk
haydenk / reddit_hosts
Created September 26, 2024 13:08
Reddit Blocking Hosts file
# Reddit
0.0.0.0 a.thumbs.redditmedia.com
0.0.0.0 about.reddit.com
0.0.0.0 accounts.reddit.com
0.0.0.0 alb.reddit.com
0.0.0.0 amp-reddit-com.cdn.ampproject.org
0.0.0.0 b.thumbs.redditmedia.com
0.0.0.0 c.thumbs.redditmedia.com
0.0.0.0 d.thumbs.redditmedia.com
0.0.0.0 e.reddit.com
@haydenk
haydenk / bookmarks.csv
Last active August 29, 2024 17:17
Bookmarks
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 3 columns, instead of 2 in line 6.
title,domain,url
One Dallas Center | High Rise Apartments Dallas | Gallery,1dallascenterapartments.com,https://www.1dallascenterapartments.com/one-dallas-center-dallas-tx-1/gallery?scid=3712076cid=3441683tc=21082009491466989rl_key=55577fc6d0d8003db17a3a02ce2313b4pub_cr_id=24102949dynamic_proxy=1primary_serv=www.1dallascenterapartments.comrl_track_landing_pages=1rl_retarget=1
Tac-Magnet,2a4life.com,https://2a4life.com/pages/tac-mag-bs-form-copy
Scoping_Deal Booking_20220503.docx,5forall5-my.sharepoint.com,https://5forall5-my.sharepoint.com/:w:/g/personal/michael_clifton_energyby5_com/EWFYoivnwSJEjjcSvfFMVasBToZ_PcFKAYrdOcgJyTu1mw?rtime=s8oTOhM42kg
Scoping_Deal Booking_20220503.docx,5forall5-my.sharepoint.com,https://5forall5-my.sharepoint.com/:w:/g/personal/michael_clifton_energyby5_com/EWFYoivnwSJEjjcSvfFMVasBToZ_PcFKAYrdOcgJyTu1mw?rtime=duvk3O6t2kg
"Time management for Azure DevOps, TFS, VSTS with 7pace Timetracker",7pace.com,https://www.7pace.com/
Liberty HD-300 Quick Vault – A-1Locksmith.Shop,a-1locksmith.
@haydenk
haydenk / bun.config.js
Created July 21, 2024 03:02
Shopify App Jouney
const config = {
sourcemap: "external",
entrypoints: ["app/javascript/application.js", "app/javascript/shopify.js"],
outdir: path.join(process.cwd(), "app/assets/builds"),
};
@haydenk
haydenk / hosts
Created July 14, 2023 13:27
My Curated Hosts File
# MySpace
0.0.0.0 a1-images.myspacecdn.com
0.0.0.0 a1.ec-images.myspacecdn.com
0.0.0.0 a2-images.myspacecdn.com
0.0.0.0 a2.ec-images.myspacecdn.com
0.0.0.0 a3-images.myspacecdn.com
0.0.0.0 a3.ec-images.myspacecdn.com
0.0.0.0 a4-images.myspacecdn.com
0.0.0.0 a4.ec-images.myspacecdn.com
0.0.0.0 browseusers.myspace.com
@haydenk
haydenk / keyboard_shortcuts.md
Created February 2, 2023 19:56
Windows 11 Tips and Tricks

Windows 11 Keyboard Shortcuts Here

Image denotes Windows key. On older keyboards, it have Image sign.

Keyboard Shortcut Usage
Image Open Start Menu or Screen.
Image + E Open File Explorer.
Image + C Open Chat.
@haydenk
haydenk / infographic.md
Created February 2, 2023 05:49
MCU Movie Timeline

100494620-e2d45e00-3108-11eb-9ce2-a4dfd4facff9

@haydenk
haydenk / file_reader_writer.scala
Last active April 3, 2022 20:12
Scala 2 Exercises
import java.io.{BufferedReader, BufferedWriter, FileReader, FileWriter}
def withFileWriter(filename: String) (handler: BufferedWriter => Unit): Unit = {
val writer = new BufferedWriter(new FileWriter(filename))
try handler(writer)
finally writer.close()
}
def withFileReader(filename: String) (handler: BufferedReader => Unit): Unit = {
val reader = new BufferedReader(new FileReader(filename))
@haydenk
haydenk / fibonacci.py
Created November 29, 2021 15:30
Recursive Fibonacci
def fibonacci(n: int) -> int:
abs_n: int = abs(n)
if abs_n < 2:
return 0
if abs_n < 3:
return 1
return fibonacci(abs_n-1) + fibonacci(abs_n-2)