Skip to content

Instantly share code, notes, and snippets.

Avatar
🌊
Surfing the open source wave

Dominik Schilling ocean90

🌊
Surfing the open source wave
View GitHub Profile
View block-supports.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
Block,"__experimentalBorder.__experimentalSkipSerialization","__experimentalBorder.color","__experimentalBorder.radius","__experimentalBorder.style","__experimentalBorder.width","__experimentalLayout","__experimentalSelector","__unstablePasteTextInline","align","alignWide","anchor","className","color.__experimentalDuotone","color.__experimentalSkipSerialization","color.background","color.gradients","color.link","color.text","customClassName","html","inserter","multiple","reusable","spacing.margin","spacing.padding","typography.__experimentalFontFamily","typography.__experimentalFontStyle","typography.__experimentalFontWeight","typography.__experimentalLetterSpacing","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.fontSize","typography.lineHeight",
"Archives","—","—","—","—","—","—","—","—","true","—","—","—","—","—","—","—","—","—","—","false","—","—","—","—","—","—","—","—","—","—","—","—","—",
"Audio","—","—","—","—","—","—","—","—","true","—","true","—","—","—
@ocean90
ocean90 / phpcs.yml
Last active Oct 30, 2021
GitHub Action for running PHP_CodeSniffer on pull requests with annotations
View phpcs.yml
name: PHP_CodeSniffer
on: pull_request
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
View _assh
#compdef assh
###############################################################################
# -*- mode:sh; -*-
# Time-stamp: <Thu 2017-03-16 15:37 svarrette>
#
# Zsh completion for [assh](https://github.com/moul/advanced-ssh-config)
#
# Copyright (c) 2017 Sebastien Varrette <Sebastien.Varrette@uni.lu>
###############################################################################
# Enable this completion file by adding somewhere in your zsh configuration (most
View gist:73b537e34353a8874bc9658f480d62d4
Extension: ico
wordpress => image/x-icon
apache => image/vnd.microsoft.icon
Extension: asf
wordpress => video/x-ms-asf
apache => application/vnd.ms-asf
Extension: avi
wordpress => video/avi
apache => video/x-msvideo
Extension: divx
View gist:5d0d0d52a6f3d31be4f821d8f0a6cf4d
Extension: avi
wordpress => video/avi
apache => video/x-msvideo
Extension: divx
wordpress => video/divx
apache =>
Extension: m4v
wordpress => video/mp4
@ocean90
ocean90 / _assh
Last active Dec 11, 2020
zsh completion for assh
View _assh
#compdef assh
# assh autocompletion for oh-my-zsh
# Requires: assh installed
# Author: Dominik Schilling (@ocean90)
# Install:
# Copy the file to ~/.oh-my-zsh/plugins/assh/_assh and add assh to the plugins list in your ~/.zshrc file.
# Resources:
View 21760.php
<?php
# for((i=100;i--;)); do php 21760.php; done
include __DIR__ . '/wp-load.php';
global $wpdb;
$memory = memory_get_usage();
$num_queries = $wpdb->num_queries;
$start = microtime( true );
get_term_by( 'slug', 'tag-117', 'post_tag' );
@ocean90
ocean90 / tree.txt
Created Apr 1, 2016
Tree of node_modules
View tree.txt
.
├── JSONStream
│   ├── examples
│   └── test
│   ├── disabled
│   └── fixtures
├── abbrev
├── acorn
│   ├── bin
│   ├── dist
View theme-update.json
{
"themes": {
"generatepress": {
"theme": "generatepress",
"new_version": "1.3.28",
"url": "https://wordpress.org/themes/generatepress/",
"package": "https://downloads.wordpress.org/theme/generatepress.1.3.28.zip",
"translations": [
{
"type": "theme",
View theme.js
var oldThemesView = wp.themes.view.Themes;
wp.themes.view.Themes = oldThemesView.extend({
initialize: function() {
oldThemesView.prototype.initialize.apply( this, arguments );
this.stopListening( this.parent, 'theme:scroll' );
},
});