Skip to content

Instantly share code, notes, and snippets.

View charrismatic's full-sized avatar
☝️
Life is Code

Matt Harris charrismatic

☝️
Life is Code
View GitHub Profile
@charrismatic
charrismatic / EslintNodeJS.md
Created April 10, 2021 20:16 — forked from LucasMallmann/EslintNodeJS.md
Eslint and Prettier configuration for NodeJS and Express projects

Eslint and prettier config for nodejs and express projects

Eslint and Libs

You need to install eslint and some other config libs.

yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D

yarn eslint --init

.eslintrc.js

@charrismatic
charrismatic / test.ipynb
Created July 29, 2020 04:26
test-notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@charrismatic
charrismatic / get-ips.sh
Created May 19, 2020 01:13
ServerOps IP Tools
#!/bin/bash
# FILTERS IP ADDRESSES FROM LOG
# USAGE: find /var/log -type f -exec cat {} \; | get-ips.sh
grep \
--only-matching \
--color=never \
-E "[0-9]{1,3}\.[1-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" \
| sort --version-sort \
@charrismatic
charrismatic / resume.example.toml
Last active April 11, 2020 04:00
Example files for toml-resume package. This Gist can be used to generate demo pages over http requests
# BASIC INFORMATION
# -----------------
# NAME AND CONTACT INFOMATION
[basics]
name = "Job"
firstname = "Job"
lastname = "Seeker"
tagline = "title or job description"
image = ""
email = "jr@email.com"
@charrismatic
charrismatic / resume.toml
Last active September 25, 2020 16:10
Resume data file for the toml-resume package.
[options]
livereload = false
export_path = "/glacier/Dropbox/documents/resume/"
# ===============================================
# - PAGE 1 SIDEBAR - PROFILE INFORMATION
# ===============================================
[basics]
name = "Matt Harris"
@charrismatic
charrismatic / sugh.sh
Created April 4, 2020 04:40 — forked from RCODI/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@charrismatic
charrismatic / README.md
Last active March 6, 2020 08:35
Coronavirus tracking by search engine trends 2020-03-06

"coronavirus" first appeared on the search engine trends on Jan 17, 2020. It seemed to have peaked on Jan 31 and global interest has in decline until Feb. 22, 2020 after reports from new cases in Italy, South Korea, and the Japan Cruise Ship.

7 days later search engine interest in the term is tripled (Feb 22 - 15% to Feb 29 - 77%). The headlines from that day were the Trump press conference, stock market tanking 1200 pts and new cases in United States & Europe, Saudi Arabia suspends entry for pilgrims visiting holy sites.

Search engine interest hits 100% trending on Mar 2.

Nationally the top 5 most concerned metropolitan areas are:

  1. Seattle-Tacoma WA 100%
  2. San Francisco-Oakland-San Jose CA 100%
  3. Honolulu HI 98%
@charrismatic
charrismatic / timelapse.md
Created March 2, 2020 15:32 — forked from alexellis/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality