Skip to content

Instantly share code, notes, and snippets.

View djrobby's full-sized avatar

Robby Dhillon djrobby

  • Detroit, MI - USA
View GitHub Profile
@ssamjh
ssamjh / icecastkh-proxy.conf
Last active September 30, 2023 06:24
icecast-kh Nginx config with IP-Forwarding
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/nginx/ssl/example.com.pem;
ssl_certificate_key /etc/nginx/ssl/example.com.key;
@dux
dux / paginate.rb
Last active January 6, 2023 18:21
Trivial and fast (does not execute count or any other unneeded requests) Ruby / Rails / Sinatra / Lux pagination
# @list = Paginate.set User, size: 40, name: :upage
# Paginate.render @list
# using: https://github.com/dux/html-tag/
module Paginate
extend self
def set rset, opts={}
opts[:size] ||= 20
opts[:name] ||= :page
@ssamjh
ssamjh / icecast-kh
Last active July 18, 2025 20:46
icecast-kh init.d Script (Ubuntu 20.04)
#!/bin/bash
### BEGIN INIT INFO
# Provides: icecast-kh
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the icecast-kh audio streaming server daemon
### END INIT INFO
#
@nntrn
nntrn / espn-api-list.md
Last active September 4, 2025 04:09
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

import SwiftUI
struct DialogButton {
enum ButtonType {
case destructive
case cancel
case `default`
}
let title: String
@Priva28
Priva28 / GradientEffect.swift
Last active July 29, 2025 05:01
Gradient effect to emulate Apple Music Lyrics/Now Playing screen.
//
// ContentView.swift
// GradientEffect
//
// Created by Christian Privitelli on 18/7/20.
//
import SwiftUI
struct ContentView: View {
import Foundation
import MapKit
final class MapKitService {
// Map the Apple Category to your own category
private let typesToDrink: [MKPointOfInterestCategory] = [.brewery, .cafe, .winery]
private let typesToEat: [MKPointOfInterestCategory] = [.foodMarket, .restaurant]
func retrieve(from: String, completionBlock: @escaping ([Place]) -> Void) {
@BrunoScheltzke
BrunoScheltzke / AddressViewModel.swift
Created July 6, 2020 21:03
Wrapper class to manage address, location and cep
//
// AddressViewModel.swift
//
// Created by Bruno Scheltzke on 05/06/20.
// Copyright © 2020 Bruno Scheltzke. All rights reserved.
//
import Foundation
import CoreLocation
@end3r117
end3r117 / 20200630-SearchSuggestionsGoogleDemo.swift
Last active July 10, 2020 22:45
20200630 - Combine / SwiftUI - GoogleSearchSuggestions API Demo
//
// GoogleSearchSuggestionsAPI-DEMO.swift
//
// Created by Anthony Rosario on 6/30/20.
// Copyright © 2020 Anthony Rosario. All rights reserved.
//
import Combine
import SwiftUI