Skip to content

Instantly share code, notes, and snippets.

View killshot13's full-sized avatar
Working remotely

Michael R. killshot13

Working remotely
View GitHub Profile
@killshot13
killshot13 / common.md
Last active August 14, 2022 13:32
bash_scripts

common.md

Documents scripts that a developer might have need to run frequently. Includes all functions from ~/.bash_functions, along with any related aliases.

Table of Contents

  1. cl() — Combines the cd and ls commands into one; adds a trailing slash to directories making them easier to identify in no-color terminals.

@killshot13
killshot13 / README.md
Last active April 23, 2021 17:50
Custom README template
@killshot13
killshot13 / pandoc-install-intro.md
Last active October 23, 2024 01:49
A guide to installing and configuring Pandoc on the Windows & the Linux OS.

What is Pandoc?

Pandoc is open-source software used to transform various filetypes such as .md into more user-friendly filetypes including .pdf, .docx, and .html.

@killshot13
killshot13 / block-level.md
Last active June 3, 2021 05:58
HTML Elements

block level elements

Based on the Mozilla Web Docs

block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).

The complete list of all HTML "block-level" elements (although block and inline elements are no longer defined in HTML 5, use content categories instead).

Note: "block-level" is not technically defined for elements new in HTML5.

@killshot13
killshot13 / stale.yml
Created June 28, 2021 12:39
GitHub Repo Workflows & Files
name: Mark stale issues and pull requests
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
@killshot13
killshot13 / .gitmessage
Last active January 9, 2022 05:24
my-commit-message-convention
##################################################
# TEMPLATE #
##################################################
[Subject:]
[Body:]
[References:]
##################################################
# EXAMPLE #
@killshot13
killshot13 / mongoObjIdGen.js
Last active January 12, 2022 06:35 — forked from solenoid/gist:1372386
MongoDB ObjectId generator script
const mongoObjectId = () => {
const timestamp = ((new Date().getTime() / 1000) | 0).toString(16)
return (
timestamp +
'xxxxxxxxxxxxxxxx'
.replace(/[x]/g, () => ((Math.random() * 16) | 0).toString(16))
.toLowerCase()
)
}
@killshot13
killshot13 / exec.js
Last active July 26, 2021 11:42
nodeFunctions();
const { exec } = require('child_process')
exec('ls -ltra', (error, stdout, stderr) => {
if(error) {
// if an error occurs during exec process
console.error("Error", error.message);
return;
} else if(stderr) {
@killshot13
killshot13 / config.json
Last active June 20, 2022 08:35
Quokka config.json for VSCode
{
"autoLog": true,
"babel": true,
"delay": 1500,
"logLimit": 300,
"node": "~/.nvm/versions/node/v16.15.1/bin/node",
"plugins": [
"alias-quokka-plugin",
"babel-alias-quokka-plugin",
"quokka-plugin-subdir",
@killshot13
killshot13 / jsconfig.json
Last active June 20, 2022 09:07
.vscode>workflows
{
"baseline":
// baseline jsconfig.json version
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": true
},
"exclude": [