Skip to content

Instantly share code, notes, and snippets.

View pedjamusic's full-sized avatar
🐢
I understand nothing.

Predrag Drljaca pedjamusic

🐢
I understand nothing.
View GitHub Profile
@trevsm
trevsm / useFetch.jsx
Created January 5, 2024 18:12
A generic react fetch hook
import { useState } from 'react';
function useFetch({ onSuccess, onError }) {
const [data, setData] = useState(null);
const [loading, setLoading] = useState(false);
const [error, setError] = useState(null);
const handleFetch = async (url, options = {}) => {
setLoading(true);
setError(null);
@dillonchanis
dillonchanis / example.css
Created September 20, 2020 14:44
Tailwind Utility for using gradients with text
@layer utilities {
.text-gradient {
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
@shmup
shmup / torrents.md
Last active April 11, 2024 10:03
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

@padde
padde / SSH-Remote-Port-Forwarding.markdown
Last active September 8, 2022 06:03
SSH Remote Port Forwarding

!!! WIP !!!

SSH Remote Port Forwarding

TODO: intro

Provision Server

  • DigitalOcean
  • 512 MB RAM