Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
OOICU812

Ryan Parman skyzyx

👾
OOICU812
View GitHub Profile
@skyzyx
skyzyx / README.md
Last active Sep 21, 2021
1Password 8 (Beta) for macOS
View README.md

Things I Like

  • Adding tags now works correctly. Previously, the tagging auto-correct would constantly fuck up.

Frustrations

  • Bug where 1P window floats over other full-screen app windows.
  • Bug where 1P dialog box floats over other app windows.
View Setting_up_Debian_repositories_with_JFrog_Artifactory.md

Setting up Debian repositories with JFrog Artifactory

While I was searching for how I use Artifactory as Debian repository, I came across official Artifactory documentation: How do I cache artifacts from a remote Debian repository?. But, it did not work because there is no apt-add-repository command as documentation mentioned. I had to figure out the correct way by myself and following steps worked for me.

Resources

@skyzyx
skyzyx / git-rollback.md
Created Jun 4, 2021
Rollback a commit, and help others update their copies cleanly. Leverages skyzyx/git-commands
View git-rollback.md

Removing a commit from a branch is similar to removing an item from a slice in Golang. You need to select the ranges you want to keep then append the latter to the former.


Go to the branch you want to work on.

git checkout {branch}
@skyzyx
skyzyx / json-bool.
Last active May 18, 2021
CloudWatch Insights snippets
View json-bool.
# WHERE logs are json AND fields are boolean...
# BOOL fields are converted to 1 for true, and 0 for false.
# So let's count them.
fields `httpVersions.HTTP/1.1`, `httpVersions.HTTP/2`, `httpVersions.HTTP/3`
| stats sum(`httpVersions.HTTP/1.1`) as http1, sum(`httpVersions.HTTP/2`) as http2, sum(`httpVersions.HTTP/3`) as http3
# OR parse the JSON as plain text.
parse '"HTTP/1.1":true' as @h1
@skyzyx
skyzyx / Liberal Regex Pattern for All URLs
Created Jan 28, 2021 — forked from gruber/Liberal Regex Pattern for All URLs
Liberal, Accurate Regex Pattern for Matching All URLs
View Liberal Regex Pattern for All URLs
The regex patterns in this gist are intended to match any URLs,
including "mailto:foo@example.com", "x-whatever://foo", etc. For a
pattern that attempts only to match web URLs (http, https), see:
https://gist.github.com/gruber/8891611
# Single-line version of pattern:
(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))
@skyzyx
skyzyx / Liberal Regex Pattern for Web URLs
Created Jan 28, 2021 — forked from gruber/Liberal Regex Pattern for Web URLs
Liberal, Accurate Regex Pattern for Matching Web URLs
View Liberal Regex Pattern for Web URLs
The regex patterns in this gist are intended only to match web URLs -- http,
https, and naked domains like "example.com". For a pattern that attempts to
match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502
# Single-line version:
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|s
@skyzyx
skyzyx / docker-inspect.sh
Created Dec 15, 2020 — forked from steve-jansen/docker-inspect.sh
List labels for a docker container
View docker-inspect.sh
docker inspect -f '{{ range $k, $v := .ContainerConfig.Labels -}}
{{ $k }}={{ $v }}
{{ end -}}' $cid
@skyzyx
skyzyx / Dockerfile
Last active Dec 10, 2020
AWS CLI v2 for Alpine Linux
View Dockerfile
FROM alpine:3.12
RUN apk add make util-linux
WORKDIR /workspace
ENTRYPOINT ["make", "compile"]
@skyzyx
skyzyx / ffmpeg.md
Created Nov 29, 2020 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
View ffmpeg.md
@skyzyx
skyzyx / LICENSE.md
Created Nov 16, 2020
An implementation of Bash and Zsh autocompletion.
View LICENSE.md

Copyright 2020 Ryan Parman

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER