Skip to content

Instantly share code, notes, and snippets.

View MP3Martin's full-sized avatar
💭
🇨🇿

MP3Martin

💭
🇨🇿
View GitHub Profile
javascript: (function () {
function c() {
var e = document.createElement("link");
e.setAttribute("type", "text/css");
e.setAttribute("rel", "stylesheet");
e.setAttribute("href", f);
e.setAttribute("class", l);
document.body.appendChild(e)
}
function h() {
@JanSeW
JanSeW / apache 2 error log.txt
Last active April 21, 2022 16:01
Nextcloud Log
[Mon Oct 09 12:57:30.848892 2017] [authz_core:error] [pid 1138] [client ip:49912] AH01630: client denied by server configuration: /home/admin/web/abi19.eu/public_html/data/.ocdata
[Mon Oct 09 12:58:43.983927 2017] [authz_core:error] [pid 32523] [client ip:49984] AH01630: client denied by server configuration: /home/admin/web/abi19.eu/public_html/data/.ocdata
[Mon Oct 09 12:58:51.748225 2017] [authz_core:error] [pid 1137] [client ip:50028] AH01630: client denied by server configuration: /home/admin/web/abi19.eu/public_html/data/.ocdata
[Mon Oct 09 12:58:57.469848 2017] [authz_core:error] [pid 1138] [client ip:50054] AH01630: client denied by server configuration: /home/admin/web/abi19.eu/public_html/data/.ocdata
[Mon Oct 09 12:59:43.926199 2017] [authz_core:error] [pid 1239] [client ip:50168] AH01630: client denied by server configuration: /home/admin/web/abi19.eu/public_html/data/.ocdata
[Mon Oct 09 12:59:51.802676 2017] [authz_core:error] [pid 1133] [client ip:50202] AH01630: client denied by server configur
@matthewzring
matthewzring / markdown-text-101.md
Last active April 19, 2025 22:58
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@MoOx
MoOx / README.md
Last active May 11, 2023 13:59
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
@jimmywarting
jimmywarting / readme.md
Last active April 19, 2025 05:22
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@nicolasdao
nicolasdao / open_source_licenses.md
Last active April 19, 2025 04:59
What you need to know to choose an open source license.
@hediet
hediet / main.md
Last active April 7, 2025 18:00
Proof that TypeScript's Type System is Turing Complete
type StringBool = "true"|"false";


interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };

type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];
@nnja
nnja / how-to-rebase.md
Created May 26, 2016 20:24
How to Rebase

When many different people are working on a project simultaneously, pull requests can go stale quickly. A "stale" pull request is one that is no longer up to date with the main line of development, and it needs to be updated before it can be merged into the project. The most common reason why pull requests go stale is due to conflicts: if two pull requests both modify similar lines in the same file, and one pull request gets merged, the unmerged pull request will now have a conflict. Sometimes, a pull request can go stale without conflicts: perhaps changes in a different file in the codebase require corresponding changes in your pull request to conform to the new architecture, or perhaps the branch was created when someone had accidentally merged failing unit tests to the master branch. Regardless of the reason, if your pull request has gone stale, you will need to rebase your branch onto the latest version of the master branch before it can be merged.

What is a rebase?

@ironboy
ironboy / towers.js
Created August 30, 2015 22:42
Towers of Hanoi - non-recursive
/*
Towers of Hanoi
(non-recursive solution)
https://blog.svpino.com/2015/06/07/programming-challenge-towers-of-hanoi
*/
function solveHanoi(discs){
var towers = {a:[],b:[],c:[]};
@rachelhyman
rachelhyman / gist:b1f109155c9dafffe618
Last active January 3, 2025 00:12
Github README anchor links

To create anchor links that jump down to different sections of a README (as in an interactive table of contents), first create a heading:
#Real Cool Heading

The anchor link for that heading is the lowercase heading name with dashes where there are spaces. You can always get the anchor name by visiting the README on Github.com and clicking on the anchor that appears when you hover to the left of the heading. Copy everything starting at the #:
#real-cool-heading

Wherever you want to link to your Real Cool Heading section, put your desired text in brackets, followed by the anchor link in parentheses:
[Go to Real Cool Heading section](#real-cool-heading)