Skip to content

Instantly share code, notes, and snippets.

View blizzrdof77's full-sized avatar

Ben Wagner blizzrdof77

View GitHub Profile
@blizzrdof77
blizzrdof77 / namei-simple
Created November 29, 2017 06:58
Short/simple output of namei
#!/bin/bash
[[ $# -eq 1 ]] || exit 1
FILEPATH="$1"
while true ; do
ls -ld "$FILEPATH"
[[ "$FILEPATH" != "/" ]] || exit
FILEPATH="$( dirname "$FILEPATH" )"
@blizzrdof77
blizzrdof77 / _chrome-client
Last active March 12, 2020 00:26
ZSH Auto-Completion Definition for List of Chrome Driver command line arguments
#compdef chrome-client
# zsh completions for 'chrome-client'
# automatically generated with http://github.com/RobSis/zsh-completion-generator
local arguments
arguments=(
'--1[The values the kOmniboxInlineHistoryQuickProvider switch may have, as in “–omnibox-inline-history-quick-provider-allowed=1” allowed: if HistoryQuickProvider thinks it appropriate, it can inline ( == current behavior as of 2/2012).]'
'--action-box[Enables or disables the “action box” UI in the toolbar.]'
'--allow-cross-origin-auth-prompt[Allows third-party content included on a page to prompt for a HTTP basic auth username/password pair.]'
/**
* Force GFORM Scripts inline next to Form Output
*
* force the script tags inline next to the form. This allows
* us to regex them out each time the form is rendered.
*
* see strip_inline_gform_scripts() function below
* which implements the required regex
*/
function force_gform_inline_scripts() {
@blizzrdof77
blizzrdof77 / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console