Skip to content

Instantly share code, notes, and snippets.

View FabianSchmick's full-sized avatar
💭
¯\_(ツ)_/¯

Fabian FabianSchmick

💭
¯\_(ツ)_/¯
View GitHub Profile
@mpdude
mpdude / fix-cs-php.yml
Last active May 14, 2024 22:20
GitHub Actions workflow to open PRs for php-cs-fixer changes
# Update this by running
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml
on:
push:
branches:
- master
pull_request:
name: Coding Standards
@GAS85
GAS85 / http2_apache2_ubuntu16.04.md
Last active February 7, 2023 16:17
How to Enable HTTP/2 in Apache 2.4 on Ubuntu 16.04

Requirements

  • A self-managed VPS or dedicated server with Ubuntu 16.04 running Apache 2.4.xx.
  • For Ubuntu 18.04 please read here --> https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831
  • A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 5, 2024 17:37
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ShNURoK42
ShNURoK42 / MyParsedown
Last active February 6, 2023 20:18
Mention for Parsedown
<?php
class MyParsedown extends \Parsedown
{
function __construct()
{
$this->InlineTypes['@'][]= 'UserMention';
$this->inlineMarkerList .= '@';
}
@sineld
sineld / clock.js
Last active February 19, 2018 14:45
Create Your Own jQuery Digital Clock
/*
Create Your Own jQuery Digital Clock
http://www.sitepoint.com/create-jquery-digital-clock-jquery4u/
*/
<script>
function updateClock()
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
@tracker1
tracker1 / 01-directory-structure.md
Last active June 4, 2024 14:31
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
@ocean90
ocean90 / box-shadow.html
Last active April 11, 2024 13:54
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;