Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
sudo exit

David Blue extratone

🗿
sudo exit
View GitHub Profile
@Gargron
Gargron / code.html
Created February 23, 2018 04:27
Code of Conduct of mastodon.social
<p>The following guidelines are not a legal document, and final interpretation is up to the administration of mastodon.social; they are here to provide you with an insight into our content moderation policies:</p>
<ol>
<li>
The following types of content will be removed from the public timeline:
<ol type="a">
<li>Excessive advertising</li>
<li>Uncurated news bots posting from third-party news sources</li>
<li>Untagged nudity, pornography and sexually explicit content, including artistic depictions</li>
<li>Untagged gore and extremely graphic violence, including artistic depictions</li>
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@levigroker
levigroker / URLEncode.sh
Last active August 14, 2024 22:21
A BBEdit Text Filter script to take textual input and produce URL encoded text of the same.
#!/bin/bash
#
# URL Encode
# https://gist.github.com/levigroker/36525010ba0bce15450c89fe6a5f36b1
#
# A BBEdit Text Filter script to take textual input and produce URL encoded text of the same.
# See https://www.bbeditextras.org/text-filters/
# Levi Brown
# @levigroker
# [email protected]
@rsvp
rsvp / git-logur
Created January 12, 2018 19:54
git-logur : get log of GitHub repository without cloning. Shell script in bash for git log using GitHub API.
#!/usr/bin/env bash
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2018-01-12
#
# _______________| git-logur : get log of GitHub repo without cloning.
#
# Usage: $ git-logur [username] [repository] [-m|-c|-v]
# # Format defaults to messages -m, else
# # -c for concise text, or -v for verbose json.
# # Concise includes author and committer, with timestamps.
#
@santisbon
santisbon / Search my gists.md
Last active April 4, 2025 21:29
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@jbwhaley
jbwhaley / MicroBlogger.py
Last active November 5, 2022 10:37
This script facilitates posting to Micro.blog on iOS with Drafts (using Pythonista).
import requests
import sys
import webbrowser
# Replace the 'API_KEY' value below with your API key;
# get one at https://micro.blog/account
API_KEY = "XXXXXXXXXXXXXXXXXXX"
HEADER_VALUE = "Bearer " + API_KEY
@mattcone
mattcone / cheat-sheet.json
Last active November 1, 2022 18:34
cheat-sheet.json
{
"status": "OK",
"last_updated": "2017-11-10",
"cheat_sheet": [
{
"basic_syntax": [
{
"element" : "Blockquotes",
"syntax" : "> blockquote"
@Ryonez
Ryonez / (Unofficial) Discord server rules suggestions list.md
Last active December 29, 2024 07:22
(Unofficial) Discord server rules suggestions list

Discord

(Unofficial) Discord server rules suggestions list

Author's Note

I'll start off with letting you know this is a fork from someone else. However, for some bizarre reason, this is the one everyone finds, so I better get round to updating this. Credit to Cristiano#2233 for the original idea.

Also, I've had a lot of people saying the rules are to strict. If you pick all the rules here, you're right, it would be very strict. However the rules below are guidelines! They are there for you to pick the ones you desire, you can ignore ones you don't want. Hopefully they might help with rules you wouldn't have thought of otherwise.

@cheungnj
cheungnj / script.sh
Last active February 5, 2025 10:21
Convert asciidoc to Github Flavored Markdown
# Adapted from https://tinyapps.org/blog/nix/201701240700_convert_asciidoc_to_markdown.html
# Using asciidoctor 1.5.6.1 and pandoc 2.0.0.1
# Install pandoc and asciidoctor
$ sudo apt install asciidoctor
$ sudo wget https://github.com/jgm/pandoc/releases/download/2.0.0.1/pandoc-2.0.0.1-1-amd64.deb
$ sudo dpkg -i pandoc-2.0.0.1-1-amd64.deb
# Convert asciidoc to docbook using asciidoctor
{
"status": "OK",
"last_updated": "2017-11-04",
"basic_syntax": [
{
"name" : "Blockquotes",
"description" : "To create a blockquote, add a `>` in front of a paragraph.",
"examples" : [
{