Skip to content

Instantly share code, notes, and snippets.

View 3ackdoor's full-sized avatar
🏠
Working from home

3ackdoor

🏠
Working from home
View GitHub Profile
@3ackdoor
3ackdoor / search.sh
Created March 5, 2021 05:59 — forked from jonlabelle/search.sh
Bash script to search file contents (by file extension) for the specified search term. Uses grep under the hood.
#!/usr/bin/env bash
# shellcheck disable=SC2034,SC2086,SC2155,SC2001,SC2048
#
# Search file contents (by file extension) for the specified search term.
#
# grep options:
#
# -i Perform case insensitive matching.
# −r Recursively search subdirectories listed.
@3ackdoor
3ackdoor / string-utils.js
Created March 5, 2021 05:56 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str) {
return str.toLowerCase();