Skip to content

Instantly share code, notes, and snippets.

@eddy-22
eddy-22 / cloudflare-delete-all-records.sh
Created October 4, 2022 04:12 — forked from slayer/cloudflare-delete-all-records.sh
Delete all DNS records for specified zone
#!/bin/bash
TOKEN="xxxxxxxxxxxxxxxxxxx"
ZONE_ID=2222222222222222222222222
# EMAIL=me@gmail.com
# KEY=11111111111111111111111111
# Replace with
# -H "X-Auth-Email: ${EMAIL}" \
# -H "X-Auth-Key: ${KEY}" \
@zachlagden
zachlagden / error_handling.py
Last active December 9, 2022 21:55
pycord - Error handling useful code, because noone can remember everything :)
"""
Copyright (c) 2022, Zach Lagden
All rights reserved.
"""
import discord
from discord.ext import commands
from datetime import datetime
import coloredlogs
@eddy-22
eddy-22 / ve.sh
Last active June 14, 2021 02:15 — forked from erszk/ve.sh
[VE.sh] virtualenv wrapper in bash #virtualenv #shell
# -*- mode: sh -*-
# vim: syn=sh
# check to make sure virtualenv installed
if ! command which -s virtualenv; then
>&2 echo "You don't have virtualenv installed in your path. To install it:"
>&2 echo "pip install virtualenv"
return 1
fi
@aelk00
aelk00 / remove-likes.md
Last active March 1, 2024 00:58
Remove all your facebook likes
@br3ndonland
br3ndonland / github-actions-notes.md
Last active July 24, 2024 05:29
Getting the Gist of GitHub Actions
@bynect
bynect / bot.py
Last active May 2, 2024 19:08
Simple and effective example of bot and cogs made with discord.py (rewrite).
"""
This example bot is structured in multiple files and is made with the goal of showcasing commands, events and cogs.
Although this example is not intended as a complete bot, but as a reference aimed to give you a basic understanding for
creating your bot, feel free to use these examples and point out any issue.
+ These examples are made with educational purpose and there are plenty of docstrings and explanation about most of the code.
+ This example is made with Python 3.8.5 and Discord.py 1.4.0a (rewrite).
Documentation:
@Zhendryk
Zhendryk / The Ultimate Windows Development Environment.md
Last active May 18, 2024 03:01
How to set up the ultimate Windows development environment
@bzerangue
bzerangue / json-to-ndjson.md
Last active January 31, 2024 20:57
JSON to NDJSON

NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.

  • Each line is a valid JSON value
  • Line separator is ‘\n’

1. Convert JSON to NDJSON?

cat test.json | jq -c '.[]' > testNDJSON.json
@thefranke
thefranke / RSS.md
Last active July 23, 2024 21:31
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@scragly
scragly / discord_emoji.md
Last active July 3, 2024 20:57
Emoji for Discord Bots

Discord Emoji

Note: This is written for those using Python 3 and discord.py, so if you're using something else please reference the relevant documentation for your language or library if you choose to use this as a general reference.

On Discord, there are two different emoji types:

Each needs to be handled differently, as while unicode emoji are just simple unicode characters, Discord custom emoji are special objects available only in Discord, belonging to a specific Discord guild and having their own snowflake ID.