Skip to content

Instantly share code, notes, and snippets.

View carlwiedemann's full-sized avatar

Carl Wiedemann carlwiedemann

View GitHub Profile
@carlwiedemann
carlwiedemann / README.md
Created June 11, 2021 19:19 — forked from Potherca/README.md
Searching for a generic documentation block convention to use with BASH

Documentation block tags conventions for BASH

For most languages a single standard for documenting functions and methods in block comments (a.k.a. doc-blocks) has emerged.

For BASH, however, there does not seem to be a definitive convention. Several competing conventions exist, which made me think:

Could a list of doc-block tags be distilled from those used across all (or most) languages?

Time to find out!

@carlwiedemann
carlwiedemann / netrw quick reference.md
Created February 18, 2019 22:51 — forked from t-mart/netrw quick reference.md
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
<?php
print "<pre>";
$urls = [
[
'url' => 'https://badssl.com/',
'expected_http' => 200,
'expected_curl_errno' => 0,
'expected_curl_error' => '',
@carlwiedemann
carlwiedemann / component.php
Created November 12, 2012 22:39 — forked from LionsAd/component.php
Theme Component Library - Draft
<?php
/** Disclaimer: in-progress **/
/**
* The component function. c().
* Usage:
* c($component_name, $data, [$attributes], [$options]);
*/
@carlwiedemann
carlwiedemann / find_func.sh
Created October 25, 2012 17:55 — forked from msonnabaum/find_func.sh
Find the given function from anywhere in the Drupal codebase, open in TextMate with cursor on same line
function findfunc {
grep -rn "function $1(" `drush dd`| grep -vP "tags|patch$"| awk -F':' '{print $1,$2}' |
while read FILE LINE
do
mate -l ${LINE} ${FILE}
done
}