Skip to content

Instantly share code, notes, and snippets.

@heyalexej
heyalexej / pytz-time-zones.py
Created November 16, 2016 09:14
list of pytz time zones
>>> import pytz
>>>
>>> for tz in pytz.all_timezones:
... print tz
...
...
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
@Eldrick19
Eldrick19 / code-scanning-merge-queue.yml
Last active April 26, 2024 14:33
Code Scanning & Merge Queue Workaround
name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
jobs:
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 14:32
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@eRQee
eRQee / indonesia-radio.m3u
Last active April 26, 2024 14:31
Indonesian Online Radio Playlists (Supported Player: Radio++, GoodVibes). More lists is coming.
#EXTM3U
#EXTINF:0,Andika FM
#EXTVLCOPT:network-caching=1000
http://stream2.andikafm.com:1057/andikafm
#EXTINF:0,Ardan Radio
#EXTVLCOPT:network-caching=1000
http://listento.ardanradio.com:1059/;
#EXTINF:0,Attaqwa FM
#EXTVLCOPT:network-caching=1000
http://103.28.148.18:8840/;
@alexanderson1993
alexanderson1993 / createR2UploadHandler.ts
Created April 5, 2024 15:22
A Remix upload handler for R2 buckets
import type { UploadHandlerPart } from "@remix-run/cloudflare";
export class MaxPartSizeExceededError extends Error {
constructor(public field: string, public maxBytes: number) {
super(`Field "${field}" exceeded upload size of ${maxBytes} bytes.`);
}
}
export function createR2UploadHandler({
bucket,