Skip to content

Instantly share code, notes, and snippets.

View skyzyx's full-sized avatar
👾
OOICU812

Ryan Parman skyzyx

👾
OOICU812
View GitHub Profile
@skyzyx
skyzyx / jony-ive-on-what-he-misses-most-about-steve-jobs.md
Last active October 27, 2021 17:46
Jony Ive on What He Misses Most About Steve Jobs

Jony Ive on What He Misses Most About Steve Jobs

On the 10th anniversary of Steve Jobs’s death, Sir Jony Ive reflects on their collaborations and friendship: “My understanding of him refuses to remain cozy or still.”

By Jony Ive

https://www.wsj.com/articles/jony-ive-steve-jobs-memories-10th-anniversary-11633354769

Editor’s note: Following Steve Jobs’s death on October 5, 2011, Jony Ive delivered a eulogy in which he referred to the chairman and co-founder of Apple as “my closest and my most loyal friend.” Ive, who later left his post as chief design officer at Apple and went on to launch the creative collective LoveFrom, wrote this remembrance in which he reflects on his memories of Jobs’s last day, the spirit of their collaboration, his friendship with Jobs’s wife, Laurene Powell Jobs, and why his late friend continues to “evade a simple place in my memory.”

@skyzyx
skyzyx / README.md
Last active February 16, 2022 00:19
1Password 8 (Beta) for macOS

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.

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 June 4, 2021 19:36
Rollback a commit, and help others update their copies cleanly. Leverages skyzyx/git-commands

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 18:04
CloudWatch Insights snippets
# 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 January 28, 2021 00:17 — forked from gruber/Liberal Regex Pattern for All URLs
Liberal, Accurate Regex Pattern for Matching 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 January 28, 2021 00:16 — forked from gruber/Liberal Regex Pattern for Web URLs
Liberal, Accurate Regex Pattern for Matching 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 December 15, 2020 22:13 — forked from steve-jansen/docker-inspect.sh
List labels for a docker container
docker inspect -f '{{ range $k, $v := .ContainerConfig.Labels -}}
{{ $k }}={{ $v }}
{{ end -}}' $cid
@skyzyx
skyzyx / Dockerfile
Last active October 15, 2021 12:23
AWS CLI v2 for Alpine Linux
FROM alpine:3.12
RUN apk add make util-linux
WORKDIR /workspace
ENTRYPOINT ["make", "compile"]