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 / pokemon.txt
Last active March 16, 2024 10:18
The names of all 1025 species of Pokémon currently known to exist, formatted as a wordlist to be used for password cracking
bulbasaur
ivysaur
venusaur
charmander
charmeleon
charizard
squirtle
wartortle
blastoise
caterpie
@killshot13
killshot13 / thekey.json
Created November 5, 2022 07:54
[TheKey.json]: Base config file for Stack Overflow's The Key and The Key V2 Macropad
{
"version": 1,
"keyboard": {
"bounds": {
"max": {
"x": 3,
"y": 1
},
"min": {
"x": 0,
@killshot13
killshot13 / alias.md
Created October 16, 2022 11:15
git aliases

git aliases

[alias]
 a = add
 aa = add --all
 ai = add -i
 ap = apply
 aps = apply --stat
 apch = apply --check
@killshot13
killshot13 / settings.jsonc
Last active August 8, 2022 12:42
GitLens VSCode settings.json
{
// Specifies whether to copy full or abbreviated commit SHAs to the clipboard. Abbreviates to the length of `gitlens.advanced.abbreviatedShaLength`.
"gitlens.advanced.abbreviateShaOnCopy": true,
// Specifies the length of abbreviated commit SHAs
"gitlens.advanced.abbreviatedShaLength": 7,
// Specifies additional arguments to pass to the `git blame` command
"gitlens.advanced.blame.customArguments": null,
// Specifies the time (in milliseconds) to wait before re-blaming an unsaved document after an edit. Use 0 to specify an infinite wait
"gitlens.advanced.blame.delayAfterEdit": 60000,
// Specifies whether git output will be cached — changing the default is not recommended
@killshot13
killshot13 / forwardRef.jsx
Last active February 4, 2023 01:28
React useRef && forwardRef
// sample use case: scroll to a React component by using a reference.
import React, { forwardRef, useRef } from 'react'
// @ts-ignore
const Article = forwardRef(function Article({ onClick }, ref) {
return (
<article ref={ref}>
<h1>A React article for Latin readers</h1>
// Rest of the article's content...
<button onClick={onClick}>Back to the top</button>

Her - OS1 Loading

Loading animation based on movie "Her" - OS1.

  • Mouse or Finger press on the page to finish loading action.

A Pen by Michael R. on CodePen.

License.

@killshot13
killshot13 / contributing.md
Last active March 30, 2022 05:57
Sample Contributing Guides

Contributors Guide

Interested in contributing? Awesome! Before you do though, please read our Code of Conduct. We take it very seriously, and expect that you will as well.

There are many ways you can contribute! ❤️

Bug Reports and Fixes :bug

@killshot13
killshot13 / server.js
Created February 7, 2022 09:04
Sample express.route config with nested GET, POST, PUT, & DELETE routes.
app
.route('/api')
.get((req, res) => {
res.setHeader('Cache-Control', 'no-cache,no-store,max-age=0,must-revalidate')
res.setHeader('Pragma', 'no-cache')
res.setHeader('Expires', '-1')
res.send('The data was retrieved successfully!')
})
.post((req, res) => {
res.setHeader('Cache-Control', 'no-cache,no-store,max-age=0,must-revalidate')
@killshot13
killshot13 / dummy-web-server.py
Last active February 6, 2022 12:31 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request:
@killshot13
killshot13 / index.html
Created January 22, 2022 07:51
lava lamp
<div class="lamp">
<div class="top-cover"></div>
<div class="bubble1"></div>
<div class="bubble2"></div>
<div class="bubble3"></div>
<div class="blob1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 310 350">
<path d="M156.4,339.5c31.8-2.5,59.4-26.8,80.2-48.5c28.3-29.5,40.5-47,56.1-85.1c14-34.3,20.7-75.6,2.3-111 c-18.1-34.8-55.7-58-90.4-72.3c-11.7-4.8-24.1-8.8-36.8-11.5l-0.9-0.9l-0.6,0.6c-27.7-5.8-56.6-6-82.4,3c-38.8,13.6-64,48.8-66.8,90.3c-3,43.9,17.8,88.3,33.7,128.8c5.3,13.5,10.4,27.1,14.9,40.9C77.5,309.9,111,343,156.4,339.5z" />
</svg>
</div>