Skip to content

Instantly share code, notes, and snippets.

View acorn1010's full-sized avatar
🏠
Working from home

Acorn1010 acorn1010

🏠
Working from home
View GitHub Profile
  1. Run the following command to create a kubectlproxy service file.
sudo nano /lib/systemd/system/kubectlproxy.service
  1. Copy these contents into your file and save.
[Unit]
@acorn1010
acorn1010 / createGlobalStore.ts
Last active April 1, 2024 01:11
Easier Zustand store
import {SetStateAction, useCallback} from 'react';
import {create} from "zustand";
export type EqualityFn<T> = (left: T | null | undefined, right: T | null | undefined) => boolean;
export type StoreType<State> = {
use<K extends keyof State>(
key: K,
defaultValue?: State[K],
equalityFn?: EqualityFn<State[K]>,
@junian
junian / twitch-recorder.py
Last active March 26, 2024 12:31
Record Twitch Streams Automatically in Python
# This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch.
# You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html
# original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/
import requests
import os
import time
import json
import sys
import subprocess
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active July 23, 2024 16:24
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.